From f13814dd6001f8ac81f7ecda6a96cf41f78f884c Mon Sep 17 00:00:00 2001 From: matthewpeterkort Date: Mon, 30 Dec 2024 14:51:41 -0800 Subject: [PATCH] Add custom unmarshallers for every node type --- go.mod | 3 +- go.sum | 5 + gql-gen/generated/exec.go | 118723 +++++++-------- gql-gen/gqlgen.yml | 9 - gql-gen/graph/collectFields.go | 5 +- gql-gen/graph/resolver.go | 231 +- gql-gen/graph/schema.graphql | 4870 +- gql-gen/model/bodystructuretype.go | 58 + gql-gen/model/codegen/README.md | 12 + gql-gen/model/codegen/codegen.go | 301 + gql-gen/model/conditiontype.go | 96 + gql-gen/model/diagnosticreporttype.go | 96 + gql-gen/model/documentreferencetype.go | 94 + gql-gen/model/familymemberhistorytype.go | 100 + gql-gen/model/generated.go | 3402 +- gql-gen/model/grouptype.go | 68 + gql-gen/model/imagingstudytype.go | 80 + gql-gen/model/medicationadministrationtype.go | 90 + gql-gen/model/medicationrequesttype.go | 118 + gql-gen/model/medicationstatementtype.go | 90 + gql-gen/model/medicationtype.go | 58 + gql-gen/model/observationtype.go | 138 + gql-gen/model/organizationtype.go | 60 + gql-gen/model/patienttype.go | 82 + gql-gen/model/practitionerroletype.go | 64 + gql-gen/model/practitionertype.go | 66 + gql-gen/model/proceduretype.go | 122 + gql-gen/model/researchstudytype.go | 114 + gql-gen/model/researchsubjecttype.go | 60 + gql-gen/model/specimentype.go | 78 + gql-gen/model/substancedefinitiontype.go | 82 + gql-gen/model/substancetype.go | 60 + gql-gen/model/tasktype.go | 112 + gql-gen/model/test.go | 102 - gql-gen/model/unmarshalSlice.go | 374 + gql-gen/model/unmarshaller.go | 87 + 36 files changed, 64778 insertions(+), 65332 deletions(-) create mode 100644 gql-gen/model/bodystructuretype.go create mode 100644 gql-gen/model/codegen/README.md create mode 100644 gql-gen/model/codegen/codegen.go create mode 100644 gql-gen/model/conditiontype.go create mode 100644 gql-gen/model/diagnosticreporttype.go create mode 100644 gql-gen/model/documentreferencetype.go create mode 100644 gql-gen/model/familymemberhistorytype.go create mode 100644 gql-gen/model/grouptype.go create mode 100644 gql-gen/model/imagingstudytype.go create mode 100644 gql-gen/model/medicationadministrationtype.go create mode 100644 gql-gen/model/medicationrequesttype.go create mode 100644 gql-gen/model/medicationstatementtype.go create mode 100644 gql-gen/model/medicationtype.go create mode 100644 gql-gen/model/observationtype.go create mode 100644 gql-gen/model/organizationtype.go create mode 100644 gql-gen/model/patienttype.go create mode 100644 gql-gen/model/practitionerroletype.go create mode 100644 gql-gen/model/practitionertype.go create mode 100644 gql-gen/model/proceduretype.go create mode 100644 gql-gen/model/researchstudytype.go create mode 100644 gql-gen/model/researchsubjecttype.go create mode 100644 gql-gen/model/specimentype.go create mode 100644 gql-gen/model/substancedefinitiontype.go create mode 100644 gql-gen/model/substancetype.go create mode 100644 gql-gen/model/tasktype.go delete mode 100644 gql-gen/model/test.go create mode 100644 gql-gen/model/unmarshalSlice.go create mode 100644 gql-gen/model/unmarshaller.go diff --git a/go.mod b/go.mod index d156bc4..12eb5b0 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,6 @@ require ( github.com/mongodb/mongo-tools v0.0.0-20240715143021-aa6a140d3f17 github.com/patrickmn/go-cache v2.1.0+incompatible github.com/spf13/pflag v1.0.5 - github.com/vektah/gqlparser v1.3.1 github.com/vektah/gqlparser/v2 v2.5.20 go.mongodb.org/mongo-driver v1.11.9 google.golang.org/protobuf v1.35.2 @@ -47,6 +46,7 @@ require ( github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/influxdata/tdigest v0.0.1 // indirect github.com/jessevdk/go-flags v1.6.1 // indirect github.com/jmoiron/sqlx v1.4.0 // indirect @@ -72,6 +72,7 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/sosodev/duration v1.3.1 // indirect github.com/spf13/cast v1.6.0 // indirect + github.com/spf13/cobra v1.8.1 // indirect github.com/ugorji/go/codec v1.2.7 // indirect github.com/urfave/cli/v2 v2.27.5 // indirect github.com/xdg-go/pbkdf2 v1.0.0 // indirect diff --git a/go.sum b/go.sum index 9aa59a7..5aa6f0c 100644 --- a/go.sum +++ b/go.sum @@ -33,6 +33,7 @@ github.com/bufbuild/protoyaml-go v0.1.5/go.mod h1:P6mVGDTZ9gcKGr+tf1xgvSLx5VWBn+ github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.5 h1:ZtcqGrnekaHpVLArFSe4HK5DoKx1T0rq2DwVB0alcyc= github.com/cpuguy83/go-md2man/v2 v2.0.5/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= @@ -124,6 +125,8 @@ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+l github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/tdigest v0.0.1 h1:XpFptwYmnEKUqmkcDjrzffswZ3nvNeevbUSLPP/ZzIY= github.com/influxdata/tdigest v0.0.1/go.mod h1:Z0kXnxzbTC2qrx4NaIzYkE1k66+6oEDQTvL95hQFh5Y= github.com/jessevdk/go-flags v1.6.1 h1:Cvu5U8UGrLay1rZfv/zP7iLpSHGUZ/Ou68T0iX1bBK4= @@ -213,6 +216,8 @@ github.com/sosodev/duration v1.3.1 h1:qtHBDMQ6lvMQsL15g4aopM4HEfOaYuhWBw3NPTtlqq github.com/sosodev/duration v1.3.1/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg= github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= +github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stoewer/go-strcase v1.3.0 h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs= diff --git a/gql-gen/generated/exec.go b/gql-gen/generated/exec.go index fca7c17..a11da09 100644 --- a/gql-gen/generated/exec.go +++ b/gql-gen/generated/exec.go @@ -2423,7 +2423,7 @@ type QueryResolver interface { MedicationRequest(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.MedicationRequestType, error) Procedure(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ProcedureType, error) DocumentReference(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.DocumentReferenceType, error) - Task(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]*model.TaskType, error) + Task(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.TaskType, error) ImagingStudy(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ImagingStudyType, error) FamilyMemberHistory(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.FamilyMemberHistoryType, error) BodyStructure(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.BodyStructureType, error) @@ -16803,453 +16803,487 @@ enum Format { tsv csv } -union GroupManagingEntityUnion = - OrganizationType - | PractitionerType +union ConditionSubjectUnion = PatientType | GroupType +union ConditionNoteUnion = + PractitionerType | PractitionerRoleType -union GroupMemberUnion = - GroupType - | OrganizationType | PatientType - | PractitionerType + | OrganizationType +union ConditionParticipantUnion = + PractitionerType | PractitionerRoleType - | SpecimenType -type GroupType { - member( + | PatientType + | OrganizationType +union ConditionStageUnion = DiagnosticReportType | ObservationType +type ConditionType { + bodySite: [CodeableConcept] + verificationStatus: CodeableConcept + contained: [ResourceUnion] + identifier: [Identifier] + onsetRange: Range + category: [CodeableConcept] + language: String + abatementAge: Age + id: String + onsetAge: Age + clinicalStatus: CodeableConcept + modifierExtension: [Extension] + abatementPeriod: Period + implicitRules: String + recordedDate: String + stage( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [GroupMemberUnion] - extension: [Extension] + ): ConditionStageUnion! + onsetDateTime: String + onsetString: String meta: Meta - contained: [ResourceUnion] - membership: String - resourceType: String - characteristic: [GroupCharacteristic] - quantity: String - type: String - active: String - description: String + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ConditionSubjectUnion! code: CodeableConcept - id: String - language: String - modifierExtension: [Extension] - name: String - implicitRules: String + resourceType: String + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ConditionNoteUnion! + evidence: [CodeableReference] + onsetPeriod: Period + abatementString: String + severity: CodeableConcept text: Narrative - managingEntity( + abatementDateTime: String + abatementRange: Range + participant( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [GroupManagingEntityUnion] - identifier: [Identifier] -} -type Immunization { - statusReason: CodeableConcept - administeredProduct: CodeableReference - doseQuantity: Quantity - lotNumber: String - status: String - manufacturer: CodeableReference + ): ConditionParticipantUnion! extension: [Extension] - expirationDate: String - identifier: [Identifier] - note: [Annotation] - reaction: [ImmunizationReaction] - protocolApplied: [ImmunizationProtocolApplied] - site: CodeableConcept - occurrenceDateTime: String - reason: [CodeableReference] - fundingSource: CodeableConcept - meta: Meta - subpotentReason: [CodeableConcept] - resourceType: String - vaccineCode: CodeableConcept - text: Narrative - implicitRules: String - informationSource: CodeableReference - occurrenceString: String - performer: [ImmunizationPerformer] - programEligibility: [ImmunizationProgramEligibility] - route: CodeableConcept - contained: [ResourceUnion] - id: String - primarySource: String - isSubpotent: String - language: String - modifierExtension: [Extension] } -type MedicationIngredient { - strengthCodeableConcept: CodeableConcept - id: String +type SubstanceDefinitionCharacterization { modifierExtension: [Extension] resourceType: String + technique: CodeableConcept + description: String extension: [Extension] - isActive: String - item: CodeableReference - strengthQuantity: Quantity - strengthRatio: Ratio -} -type ObservationReferenceRange { - extension: [Extension] - high: Quantity + file: [Attachment] + form: CodeableConcept id: String - type: CodeableConcept - appliesTo: [CodeableConcept] - age: Range - text: String - low: Quantity - normalValue: CodeableConcept - resourceType: String - modifierExtension: [Extension] } -type Encounter { - length: Duration - actualPeriod: Period - priority: CodeableConcept - class: [CodeableConcept] - plannedEndDate: String - serviceType: [CodeableReference] - admission: EncounterAdmission - meta: Meta - id: String - identifier: [Identifier] - plannedStartDate: String - type: [CodeableConcept] - diagnosis: [EncounterDiagnosis] - text: Narrative - participant: [EncounterParticipant] +union ResearchSubjectSubjectUnion = + PatientType + | GroupType + | SpecimenType + | MedicationType + | SubstanceType +type ResearchSubjectType { + study( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchStudyType! + implicitRules: String status: String - virtualService: [VirtualServiceDetail] + meta: Meta modifierExtension: [Extension] - specialCourtesy: [CodeableConcept] resourceType: String - specialArrangement: [CodeableConcept] - extension: [Extension] - contained: [ResourceUnion] - location: [EncounterLocation] - implicitRules: String - dietPreference: [CodeableConcept] - reason: [EncounterReason] - subjectStatus: CodeableConcept language: String + text: Narrative + identifier: [Identifier] + contained: [ResourceUnion] + extension: [Extension] + actualComparisonGroup: String + assignedComparisonGroup: String + progress: [ResearchSubjectProgress] + period: Period + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchSubjectSubjectUnion! + id: String } -type MedicationBatch { - modifierExtension: [Extension] +type ContactPoint { resourceType: String - expirationDate: String + system: String + use: String + value: String extension: [Extension] id: String - lotNumber: String + period: Period + rank: String } -type MedicationAdministrationPerformer { +type ContactDetail { + extension: [Extension] id: String - modifierExtension: [Extension] + name: String resourceType: String - actor: CodeableReference - extension: [Extension] - function: CodeableConcept + telecom: [ContactPoint] } -type LocationPosition { - altitude: String - extension: [Extension] +type ResearchSubjectProgress { + subjectState: CodeableConcept id: String - latitude: String - longitude: String + milestone: CodeableConcept + reason: CodeableConcept + startDate: String + type: CodeableConcept + extension: [Extension] modifierExtension: [Extension] resourceType: String + endDate: String } -type PatientContact { - relationship: [CodeableConcept] - telecom: [ContactPoint] - extension: [Extension] - name: HumanName - address: Address - gender: String +union ResearchStudyResultUnion = DiagnosticReportType +union ResearchStudySiteUnion = ResearchStudyType | OrganizationType +union ResearchStudyAssociatedPartyUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType +union ResearchStudyNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union ResearchStudyRecruitmentUnion = GroupType +type ResearchStudyType { + language: String + region: [CodeableConcept] + identifier: [Identifier] + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchStudyNoteUnion! + focus: [CodeableReference] + primaryPurposeType: CodeableConcept + progressStatus: [ResearchStudyProgressStatus] + whyStopped: CodeableConcept + result( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchStudyResultUnion! + version: String + url: String + relatedArtifact: [RelatedArtifact] + name: String + studyDesign: [CodeableConcept] + objective: [ResearchStudyObjective] + recruitment( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchStudyRecruitmentUnion! + title: String + associatedParty( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchStudyAssociatedPartyUnion! id: String - modifierExtension: [Extension] - organization( + contained: [ResourceUnion] + description: String + comparisonGroup: [ResearchStudyComparisonGroup] + implicitRules: String + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - resourceType: String + ): ResearchStudyType! + classifier: [CodeableConcept] + label: [ResearchStudyLabel] + keyword: [CodeableConcept] + modifierExtension: [Extension] period: Period -} -type PractitionerCommunication { - preferred: String resourceType: String + date: String + descriptionSummary: String + extension: [Extension] + text: Narrative + meta: Meta + phase: CodeableConcept + condition: [CodeableConcept] + status: String + outcomeMeasure: [ResearchStudyOutcomeMeasure] + site( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchStudySiteUnion! +} +type Timing { + code: CodeableConcept + event: String extension: [Extension] id: String - language: CodeableConcept modifierExtension: [Extension] + repeat: TimingRepeat + resourceType: String } -union ProcedurePerformerActorUnion = +union MedicationRequestDispenseRequestDispenserInstructionUnion = PractitionerType | PractitionerRoleType - | OrganizationType | PatientType -type ProcedurePerformer { - function: CodeableConcept - id: String - modifierExtension: [Extension] - onBehalfOf( + | OrganizationType +type MedicationRequestDispenseRequest { + dispenserInstruction( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - period: Period - resourceType: String - actor( + ): MedicationRequestDispenseRequestDispenserInstructionUnion! + id: String + dispenseInterval: Duration + doseAdministrationAid: CodeableConcept + initialFill: MedicationRequestDispenseRequestInitialFill + quantity: Quantity + validityPeriod: Period + expectedSupplyDuration: Duration + modifierExtension: [Extension] + numberOfRepeatsAllowed: String + dispenser( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedurePerformerActorUnion] - extension: [Extension] -} -type ResearchSubjectProgress { - endDate: String - modifierExtension: [Extension] - type: CodeableConcept + ): OrganizationType! extension: [Extension] - milestone: CodeableConcept resourceType: String - reason: CodeableConcept - startDate: String - subjectState: CodeableConcept - id: String } -type SpecimenContainer { - modifierExtension: [Extension] +type MedicationIngredient { + item: CodeableReference + strengthQuantity: Quantity + strengthRatio: Ratio resourceType: String - specimenQuantity: Quantity - extension: [Extension] - id: String -} -type SubstanceDefinitionMolecularWeight { + strengthCodeableConcept: CodeableConcept id: String - method: CodeableConcept + isActive: String modifierExtension: [Extension] - resourceType: String - type: CodeableConcept - amount: Quantity extension: [Extension] } type Location { - meta: Meta name: String - contained: [ResourceUnion] - form: CodeableConcept language: String - extension: [Extension] - resourceType: String + text: Narrative id: String - characteristic: [CodeableConcept] - modifierExtension: [Extension] - address: Address - implicitRules: String - mode: String operationalStatus: Coding - position: LocationPosition - virtualService: [VirtualServiceDetail] - text: Narrative + modifierExtension: [Extension] + type: [CodeableConcept] + characteristic: [CodeableConcept] + form: CodeableConcept contact: [ExtendedContactDetail] - status: String - hoursOfOperation: [Availability] identifier: [Identifier] + resourceType: String + position: LocationPosition + extension: [Extension] + meta: Meta + mode: String alias: String - type: [CodeableConcept] + virtualService: [VirtualServiceDetail] + implicitRules: String + contained: [ResourceUnion] + status: String description: String + hoursOfOperation: [Availability] + address: Address } -union SubstanceDefinitionNoteUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type SubstanceDefinitionType { - text: Narrative - moiety: [SubstanceDefinitionMoiety] - implicitRules: String +type ObservationComponent { + dataAbsentReason: CodeableConcept + interpretation: [CodeableConcept] + valueAttachment: Attachment + extension: [Extension] + valueCodeableConcept: CodeableConcept + valueTime: String + valueBoolean: String + valuePeriod: Period modifierExtension: [Extension] - characterization: [SubstanceDefinitionCharacterization] - supplier( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [OrganizationType] - note( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [SubstanceDefinitionNoteUnion] - description: String - structure: SubstanceDefinitionStructure + valueInteger: String + resourceType: String + referenceRange: [ObservationReferenceRange] + code: CodeableConcept + valueRatio: Ratio + valueSampledData: SampledData + valueDateTime: String + valueRange: Range + valueString: String + valueQuantity: Quantity id: String - language: String - contained: [ResourceUnion] - domain: CodeableConcept +} +type TriggerDefinition { + data: [DataRequirement] + id: String + name: String + code: CodeableConcept + condition: Expression + timingTiming: Timing + subscriptionTopic: String + timingDate: String + timingDateTime: String extension: [Extension] - identifier: [Identifier] - version: String - relationship: [SubstanceDefinitionRelationship] - manufacturer( + resourceType: String + type: String +} +type DiagnosticReportMedia { + comment: String + extension: [Extension] + id: String + link( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - grade: [CodeableConcept] + ): DocumentReferenceType! + modifierExtension: [Extension] resourceType: String - name: [SubstanceDefinitionName] - status: CodeableConcept - meta: Meta - molecularWeight: [SubstanceDefinitionMolecularWeight] - sourceMaterial: SubstanceDefinitionSourceMaterial - classification: [CodeableConcept] - code: [SubstanceDefinitionCode] - property: [SubstanceDefinitionProperty] } -type BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark { - device: [CodeableReference] - extension: [Extension] +type MedicationBatch { id: String + lotNumber: String modifierExtension: [Extension] resourceType: String - value: [Quantity] + expirationDate: String + extension: [Extension] } -type MedicationRequestSubstitution { - reason: CodeableConcept +type SubstanceType { + status: String + quantity: Quantity + text: Narrative + identifier: [Identifier] + language: String + implicitRules: String resourceType: String - allowedBoolean: String - allowedCodeableConcept: CodeableConcept + instance: String + modifierExtension: [Extension] + category: [CodeableConcept] + expiry: String + ingredient: [SubstanceIngredient] + meta: Meta + code: CodeableReference + description: String extension: [Extension] + contained: [ResourceUnion] id: String - modifierExtension: [Extension] } -type SubstanceDefinitionName { - status: CodeableConcept - synonym: [SubstanceDefinitionName] - modifierExtension: [Extension] - translation: [SubstanceDefinitionName] - type: CodeableConcept - official: [SubstanceDefinitionNameOfficial] - name: String - id: String - language: [CodeableConcept] - domain: [CodeableConcept] +type DataRequirementSort { + path: String + resourceType: String + direction: String extension: [Extension] - jurisdiction: [CodeableConcept] - preferred: String - source( + id: String +} +union ResearchStudyRecruitmentEligibilityUnion = GroupType +type ResearchStudyRecruitment { + actualNumber: String + eligibility( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] - resourceType: String -} -type SubstanceDefinitionSourceMaterial { - genus: CodeableConcept - type: CodeableConcept + ): ResearchStudyRecruitmentEligibilityUnion! extension: [Extension] - modifierExtension: [Extension] - resourceType: String - countryOfOrigin: [CodeableConcept] id: String - species: CodeableConcept - part: CodeableConcept -} -union ConditionParticipantActorUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type ConditionParticipant { modifierExtension: [Extension] resourceType: String - actor( + targetNumber: String + actualGroup( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ConditionParticipantActorUnion] + ): GroupType! +} +type Count { + id: String + resourceType: String + system: String + unit: String + value: String + code: String + comparator: String extension: [Extension] - function: CodeableConcept +} +type VirtualServiceDetail { + maxParticipants: String + resourceType: String + additionalInfo: String + extension: [Extension] + sessionKey: String + addressContactPoint: ContactPoint + addressString: String + addressExtendedContactDetail: ExtendedContactDetail + addressUrl: String id: String + channelType: Coding } -union FamilyMemberHistoryParticipantActorUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type FamilyMemberHistoryParticipant { - actor( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [FamilyMemberHistoryParticipantActorUnion] +type ImmunizationPerformer { + resourceType: String extension: [Extension] function: CodeableConcept id: String modifierExtension: [Extension] - resourceType: String } -union MedicationAdministrationNoteUnion = +union SpecimenNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union MedicationAdministrationPartOfUnion = - MedicationAdministrationType - | ProcedureType -union MedicationAdministrationSubjectUnion = PatientType | GroupType -type MedicationAdministrationType { - subPotentReason: [CodeableConcept] - device: [CodeableReference] - category: [CodeableConcept] - occurenceDateTime: String - medication: CodeableReference - occurencePeriod: Period - isSubPotent: String - identifier: [Identifier] - meta: Meta - modifierExtension: [Extension] - dosage: MedicationAdministrationDosage - performer: [MedicationAdministrationPerformer] - status: String - recorded: String - id: String - occurenceTiming: Timing +union SpecimenSubjectUnion = PatientType | GroupType | SubstanceType +union SpecimenCollectionUnion = + PractitionerType + | PractitionerRoleType + | PatientType +type SpecimenType { + resourceType: String subject( offset: Int first: Int @@ -17257,608 +17291,606 @@ type MedicationAdministrationType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationAdministrationSubjectUnion] - language: String - request( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [MedicationRequestType] - note( + ): SpecimenSubjectUnion! + combined: String + accessionIdentifier: Identifier + modifierExtension: [Extension] + type: CodeableConcept + text: Narrative + container: [SpecimenContainer] + implicitRules: String + parent( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationAdministrationNoteUnion] - text: Narrative - resourceType: String - statusReason: [CodeableConcept] - implicitRules: String - partOf( + ): SpecimenType! + meta: Meta + condition: [CodeableConcept] + feature: [SpecimenFeature] + contained: [ResourceUnion] + id: String + processing: [SpecimenProcessing] + extension: [Extension] + identifier: [Identifier] + collection( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationAdministrationPartOfUnion] - reason: [CodeableReference] - supportingInformation( + ): SpecimenCollectionUnion! + receivedTime: String + role: [CodeableConcept] + language: String + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - extension: [Extension] - contained: [ResourceUnion] + ): SpecimenNoteUnion! + status: String } -union PatientLinkOtherUnion = PatientType -type PatientLink { - modifierExtension: [Extension] - other( +type PractitionerQualification { + code: CodeableConcept + extension: [Extension] + id: String + identifier: [Identifier] + issuer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [PatientLinkOtherUnion] + ): OrganizationType! + modifierExtension: [Extension] + period: Period resourceType: String - type: String - extension: [Extension] +} +type Immunization { + reaction: [ImmunizationReaction] + note: [Annotation] + programEligibility: [ImmunizationProgramEligibility] + occurrenceDateTime: String + vaccineCode: CodeableConcept + language: String + contained: [ResourceUnion] + statusReason: CodeableConcept + text: Narrative + reason: [CodeableReference] + performer: [ImmunizationPerformer] + meta: Meta + protocolApplied: [ImmunizationProtocolApplied] + administeredProduct: CodeableReference + fundingSource: CodeableConcept + subpotentReason: [CodeableConcept] + manufacturer: CodeableReference + occurrenceString: String + doseQuantity: Quantity + identifier: [Identifier] + primarySource: String + informationSource: CodeableReference id: String + isSubpotent: String + site: CodeableConcept + lotNumber: String + resourceType: String + extension: [Extension] + implicitRules: String + expirationDate: String + route: CodeableConcept + modifierExtension: [Extension] + status: String } -type RatioRange { +type Attachment { + frames: String + size: String + title: String + creation: String + height: String + data: String + language: String + hash: String resourceType: String - denominator: Quantity extension: [Extension] - highNumerator: Quantity + pages: String + duration: String + contentType: String id: String - lowNumerator: Quantity + url: String + width: String } -type ResearchStudyLabel { - value: String +type ImagingStudySeriesInstance { + title: String + uid: String extension: [Extension] id: String modifierExtension: [Extension] + number: String + resourceType: String + sopClass: Coding +} +type SubstanceDefinitionName { + id: String + modifierExtension: [Extension] + name: String + source( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): DocumentReferenceType! + preferred: String + translation: [SubstanceDefinitionName] + jurisdiction: [CodeableConcept] resourceType: String + domain: [CodeableConcept] + official: [SubstanceDefinitionNameOfficial] + synonym: [SubstanceDefinitionName] + extension: [Extension] type: CodeableConcept + language: [CodeableConcept] + status: CodeableConcept } -type DataRequirementSort { - direction: String +type Address { + country: String extension: [Extension] - id: String - path: String + use: String + district: String + period: Period resourceType: String + text: String + city: String + postalCode: String + line: String + state: String + type: String + id: String } -type FHIRPrimitiveExtension { +type Narrative { extension: [Extension] id: String resourceType: String + status: String + div: String } -union ResearchStudyAssociatedPartyPartyUnion = - PractitionerType - | PractitionerRoleType - | OrganizationType -type ResearchStudyAssociatedParty { - party( +type SpecimenProcessing { + extension: [Extension] + description: String + modifierExtension: [Extension] + resourceType: String + additive( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyAssociatedPartyPartyUnion] - extension: [Extension] - modifierExtension: [Extension] - name: String - role: CodeableConcept - id: String - period: [Period] - resourceType: String - classifier: [CodeableConcept] -} -type CodeableConcept { - text: String - coding: [Coding] - extension: [Extension] + ): SubstanceType! + method: CodeableConcept + timeDateTime: String id: String - resourceType: String + timePeriod: Period } -union DocumentReferenceAuthorUnion = - PractitionerType +union GroupManagingEntityUnion = + OrganizationType + | PractitionerType | PractitionerRoleType +union GroupMemberUnion = + GroupType | OrganizationType | PatientType -union DocumentReferenceBasedOnUnion = MedicationRequestType -union DocumentReferenceAttesterUnion = - PatientType | PractitionerType | PractitionerRoleType - | OrganizationType -type DocumentReferenceType { - version: String + | SpecimenType +type GroupType { language: String + extension: [Extension] implicitRules: String - bodySite: [CodeableReference] - practiceSetting: CodeableConcept - author( + identifier: [Identifier] + member( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceAuthorUnion] - basedOn( + ): GroupMemberUnion! + id: String + quantity: String + name: String + text: Narrative + contained: [ResourceUnion] + code: CodeableConcept + description: String + modifierExtension: [Extension] + active: String + resourceType: String + membership: String + type: String + characteristic: [GroupCharacteristic] + managingEntity( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceBasedOnUnion] - resourceType: String - status: String - type: CodeableConcept - modality: [CodeableConcept] - period: Period - attester( + ): GroupManagingEntityUnion! + meta: Meta +} +union PatientGeneralPractitionerUnion = + OrganizationType + | PractitionerType + | PractitionerRoleType +union PatientLinkUnion = PatientType +type PatientType { + managingOrganization( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceAttesterUnion] - docStatus: String - meta: Meta - custodian( + ): OrganizationType! + contact: [PatientContact] + gender: String + link( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - event: [CodeableReference] - relatesTo: [DocumentReferenceRelatesTo] - facilityType: CodeableConcept + ): PatientLinkUnion! + implicitRules: String + multipleBirthInteger: String id: String - securityLabel: [CodeableConcept] - identifier: [Identifier] - modifierExtension: [Extension] - description: String - extension: [Extension] - category: [CodeableConcept] - text: Narrative + meta: Meta contained: [ResourceUnion] - subject( + communication: [PatientCommunication] + birthDate: String + identifier: [Identifier] + resourceType: String + generalPractitioner( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - content: [DocumentReferenceContent] - date: String + ): PatientGeneralPractitionerUnion! + language: String + deceasedDateTime: String + telecom: [ContactPoint] + photo: [Attachment] + text: Narrative + multipleBirthBoolean: String + address: [Address] + maritalStatus: CodeableConcept + modifierExtension: [Extension] + extension: [Extension] + name: [HumanName] + active: String + deceasedBoolean: String } -type DosageDoseAndRate { +union FamilyMemberHistoryConditionNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryCondition { + onsetPeriod: Period id: String - doseRange: Range + outcome: CodeableConcept resourceType: String - rateRange: Range - type: CodeableConcept - doseQuantity: Quantity - rateRatio: Ratio + onsetRange: Range + code: CodeableConcept + modifierExtension: [Extension] extension: [Extension] - rateQuantity: Quantity + onsetString: String + contributedToDeath: String + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): FamilyMemberHistoryConditionNoteUnion! + onsetAge: Age } type EncounterReason { - resourceType: String - use: [CodeableConcept] value: [CodeableReference] extension: [Extension] id: String modifierExtension: [Extension] + resourceType: String + use: [CodeableConcept] } -type Expression { - expression: String - extension: [Extension] +type Dosage { + doseAndRate: [DosageDoseAndRate] + additionalInstruction: [CodeableConcept] + route: CodeableConcept + timing: Timing id: String - language: String - name: String - reference: String + modifierExtension: [Extension] resourceType: String - description: String + text: String + sequence: String + asNeeded: String + site: CodeableConcept + extension: [Extension] + patientInstruction: String + asNeededFor: [CodeableConcept] + maxDosePerLifetime: Quantity + method: CodeableConcept + maxDosePerPeriod: [Ratio] + maxDosePerAdministration: Quantity } -type MedicationType { - doseForm: CodeableConcept - code: CodeableConcept - identifier: [Identifier] - text: Narrative - meta: Meta - resourceType: String - status: String - language: String - modifierExtension: [Extension] - contained: [ResourceUnion] - batch: MedicationBatch - implicitRules: String - totalVolume: Quantity +type ImmunizationProgramEligibility { extension: [Extension] - ingredient: [MedicationIngredient] id: String - marketingAuthorizationHolder( + modifierExtension: [Extension] + program: CodeableConcept + programStatus: CodeableConcept + resourceType: String +} +union ConditionStageAssessmentUnion = DiagnosticReportType | ObservationType +type ConditionStage { + resourceType: String + summary: CodeableConcept + type: CodeableConcept + assessment( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] + ): ConditionStageAssessmentUnion! + extension: [Extension] + id: String + modifierExtension: [Extension] } -type ObservationComponent { +type BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark { id: String - valuePeriod: Period - valueQuantity: Quantity - valueRange: Range - valueAttachment: Attachment - extension: [Extension] - valueSampledData: SampledData - valueString: String modifierExtension: [Extension] - code: CodeableConcept - dataAbsentReason: CodeableConcept - valueBoolean: String - valueDateTime: String - valueInteger: String - valueTime: String - interpretation: [CodeableConcept] - referenceRange: [ObservationReferenceRange] resourceType: String - valueCodeableConcept: CodeableConcept - valueRatio: Ratio + value: [Quantity] + device: [CodeableReference] + extension: [Extension] } -type SubstanceType { - id: String - language: String - ingredient: [SubstanceIngredient] - category: [CodeableConcept] - identifier: [Identifier] - contained: [ResourceUnion] +type SampledData { + intervalUnit: String resourceType: String - instance: String - implicitRules: String - modifierExtension: [Extension] - expiry: String - description: String - status: String - meta: Meta - code: CodeableReference + lowerLimit: String + factor: String + id: String extension: [Extension] - quantity: Quantity - text: Narrative + upperLimit: String + dimensions: String + interval: String + offsets: String + origin: Quantity + codeMap: String + data: String } -type Coding { - extension: [Extension] +union ImagingStudySeriesPerformerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type ImagingStudySeries { + laterality: CodeableConcept + uid: String + description: String id: String - resourceType: String - system: String - userSelected: String - version: String - code: String - display: String -} -type SubstanceDefinitionRelationship { - substanceDefinitionReference( + instance: [ImagingStudySeriesInstance] + modality: CodeableConcept + performer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SubstanceDefinitionType] - amountQuantity: Quantity - amountRatio: Ratio - id: String - ratioHighLimitAmount: Ratio - source( + ): ImagingStudySeriesPerformerUnion! + resourceType: String + started: String + extension: [Extension] + modifierExtension: [Extension] + numberOfInstances: String + bodySite: CodeableReference + number: String + specimen( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] - resourceType: String - amountString: String - isDefining: String - modifierExtension: [Extension] - comparator: CodeableConcept - type: CodeableConcept - extension: [Extension] - substanceDefinitionCodeableConcept: CodeableConcept + ): SpecimenType! } -union SubstanceDefinitionCodeNoteUnion = +union MedicationStatementInformationSourceUnion = + PatientType + | PractitionerType + | PractitionerRoleType + | OrganizationType +union MedicationStatementPartOfUnion = ProcedureType | MedicationStatementType +union MedicationStatementRelatedClinicalInformationUnion = + ObservationType + | ConditionType +union MedicationStatementSubjectUnion = PatientType | GroupType +union MedicationStatementNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type SubstanceDefinitionCode { - source( +type MedicationStatementType { + text: Narrative + identifier: [Identifier] + reason: [CodeableReference] + implicitRules: String + medication: CodeableReference + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] - status: CodeableConcept - resourceType: String - modifierExtension: [Extension] - statusDate: String - extension: [Extension] - note( + ): MedicationStatementNoteUnion! + category: [CodeableConcept] + id: String + informationSource( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SubstanceDefinitionCodeNoteUnion] - code: CodeableConcept - id: String -} -type AvailabilityNotAvailableTime { - resourceType: String - description: String - during: Period - extension: [Extension] - id: String -} -type GroupCharacteristic { - period: Period - code: CodeableConcept - valueBoolean: String - valueQuantity: Quantity - valueRange: Range - extension: [Extension] - modifierExtension: [Extension] - resourceType: String - exclude: String - valueCodeableConcept: CodeableConcept - id: String -} -type MedicationAdministrationDosage { - id: String - modifierExtension: [Extension] - rateQuantity: Quantity - text: String - extension: [Extension] - dose: Quantity - site: CodeableConcept - method: CodeableConcept - rateRatio: Ratio - route: CodeableConcept - resourceType: String -} -union MedicationRequestDispenseRequestDispenserInstructionUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type MedicationRequestDispenseRequest { - expectedSupplyDuration: Duration - initialFill: MedicationRequestDispenseRequestInitialFill - modifierExtension: [Extension] - resourceType: String - validityPeriod: Period - doseAdministrationAid: CodeableConcept - id: String - dispenseInterval: Duration - dispenser( + ): MedicationStatementInformationSourceUnion! + relatedClinicalInformation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - dispenserInstruction( + ): MedicationStatementRelatedClinicalInformationUnion! + effectiveTiming: Timing + effectiveDateTime: String + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestDispenseRequestDispenserInstructionUnion] - quantity: Quantity - extension: [Extension] - numberOfRepeatsAllowed: String -} -type ResearchStudyProgressStatus { - resourceType: String - state: CodeableConcept - actual: String - extension: [Extension] - id: String + ): MedicationStatementSubjectUnion! + effectivePeriod: Period modifierExtension: [Extension] - period: Period -} -type SubstanceDefinitionStructureRepresentation { - document( + derivedFrom( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] - extension: [Extension] - format: CodeableConcept - id: String - modifierExtension: [Extension] - representation: String - resourceType: String - type: CodeableConcept -} -type TimingRepeat { - boundsRange: Range - countMax: String - durationUnit: String - duration: String - periodUnit: String - resourceType: String - count: String - extension: [Extension] - when: String - id: String - durationMax: String - period: String - boundsDuration: Duration - frequencyMax: String - frequency: String - periodMax: String - boundsPeriod: Period - dayOfWeek: String - timeOfDay: String - offset: String -} -type Age { - code: String - comparator: String - extension: [Extension] - id: String - resourceType: String - system: String - unit: String - value: String -} -type VirtualServiceDetail { + ): ResourceUnion! + adherence: MedicationStatementAdherence + language: String resourceType: String - additionalInfo: String - addressContactPoint: ContactPoint - addressExtendedContactDetail: ExtendedContactDetail - sessionKey: String + renderedDosageInstruction: String + contained: [ResourceUnion] + meta: Meta + dosage: [Dosage] + status: String + dateAsserted: String extension: [Extension] - id: String - addressString: String - addressUrl: String - channelType: Coding - maxParticipants: String + partOf( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): MedicationStatementPartOfUnion! } -type DocumentReferenceContentProfile { - valueUri: String +type OrganizationQualification { extension: [Extension] id: String + identifier: [Identifier] + issuer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): OrganizationType! modifierExtension: [Extension] + period: Period resourceType: String - valueCanonical: String - valueCoding: Coding + code: CodeableConcept } -type Count { +type FHIRPrimitiveExtension { + resourceType: String extension: [Extension] id: String - resourceType: String - system: String - unit: String - value: String - code: String - comparator: String } -union SignatureOnBehalfOfUnion = +union DiagnosticReportSubjectUnion = + PatientType + | GroupType + | OrganizationType + | PractitionerType + | MedicationType + | SubstanceType +union DiagnosticReportNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union SignatureWhoUnion = +union DiagnosticReportSupportingInfoUnion = + ProcedureType + | ObservationType + | DiagnosticReportType +union DiagnosticReportBasedOnUnion = MedicationRequestType +union DiagnosticReportPerformerUnion = PractitionerType | PractitionerRoleType - | PatientType | OrganizationType -type Signature { - who( +union DiagnosticReportResultsInterpreterUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType +union DiagnosticReportStudyUnion = ImagingStudyType +type DiagnosticReportType { + supportingInfo( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SignatureWhoUnion] - data: String - resourceType: String - sigFormat: String - id: String - when: String - onBehalfOf( + ): DiagnosticReportSupportingInfoUnion! + specimen( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SignatureOnBehalfOfUnion] - type: [Coding] - extension: [Extension] - targetFormat: String -} -union UsageContextValueReferenceUnion = - ResearchStudyType - | GroupType - | OrganizationType -type UsageContext { - extension: [Extension] - id: String - resourceType: String - valueCodeableConcept: CodeableConcept - valueQuantity: Quantity - valueRange: Range - valueReference( + ): SpecimenType! + contained: [ResourceUnion] + language: String + meta: Meta + resultsInterpreter( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [UsageContextValueReferenceUnion] - code: Coding -} -type ContactPoint { - extension: [Extension] - id: String - period: Period - rank: String - resourceType: String - system: String - use: String - value: String -} -type Duration { - code: String - comparator: String - extension: [Extension] + ): DiagnosticReportResultsInterpreterUnion! id: String - resourceType: String - system: String - unit: String - value: String -} -union FamilyMemberHistoryProcedureNoteUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type FamilyMemberHistoryProcedure { - modifierExtension: [Extension] + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): DiagnosticReportBasedOnUnion! note( offset: Int first: Int @@ -17866,252 +17898,189 @@ type FamilyMemberHistoryProcedure { sort: JSON accessibility: Accessibility = all format: Format = json - ): [FamilyMemberHistoryProcedureNoteUnion] - performedDateTime: String - performedRange: Range - contributedToDeath: String - performedAge: Age - performedPeriod: Period - performedString: String + ): DiagnosticReportNoteUnion! + modifierExtension: [Extension] + effectiveDateTime: String + category: [CodeableConcept] + identifier: [Identifier] + effectivePeriod: Period resourceType: String - id: String - extension: [Extension] code: CodeableConcept - outcome: CodeableConcept -} -union ResearchStudyRecruitmentEligibilityUnion = GroupType -type ResearchStudyRecruitment { - targetNumber: String - actualGroup( + extension: [Extension] + presentedForm: [Attachment] + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [GroupType] - actualNumber: String - eligibility( + ): DiagnosticReportSubjectUnion! + study( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyRecruitmentEligibilityUnion] - extension: [Extension] - id: String - modifierExtension: [Extension] - resourceType: String -} -union TaskRestrictionRecipientUnion = - PatientType - | PractitionerType - | PractitionerRoleType - | GroupType - | OrganizationType -type TaskRestriction { - resourceType: String - extension: [Extension] - id: String - modifierExtension: [Extension] - period: Period - recipient( + ): DiagnosticReportStudyUnion! + media: [DiagnosticReportMedia] + text: Narrative + conclusionCode: [CodeableConcept] + result( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskRestrictionRecipientUnion] - repetitions: String -} -type DataRequirementValueFilter { - extension: [Extension] - id: String - path: String - comparator: String - resourceType: String - searchParam: String - valueDateTime: String - valueDuration: Duration - valuePeriod: Period -} -type SubstanceIngredient { - substanceReference( + ): ObservationType! + implicitRules: String + issued: String + performer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SubstanceType] + ): DiagnosticReportPerformerUnion! + status: String + conclusion: String +} +type PatientCommunication { + preferred: String + resourceType: String + extension: [Extension] + id: String + language: CodeableConcept + modifierExtension: [Extension] +} +type SpecimenContainer { extension: [Extension] id: String modifierExtension: [Extension] - quantity: Ratio resourceType: String - substanceCodeableConcept: CodeableConcept + specimenQuantity: Quantity } -union SpecimenSubjectUnion = PatientType | GroupType | SubstanceType -union SpecimenCollectionUnion = - PractitionerType - | PractitionerRoleType - | PatientType -union SpecimenNoteUnion = +union MedicationAdministrationPartOfUnion = + MedicationAdministrationType + | ProcedureType +union MedicationAdministrationSubjectUnion = PatientType | GroupType +union MedicationAdministrationNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type SpecimenType { - identifier: [Identifier] - text: Narrative - contained: [ResourceUnion] - combined: String - role: [CodeableConcept] - extension: [Extension] - type: CodeableConcept - resourceType: String - id: String - parent( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [SpecimenType] - modifierExtension: [Extension] - status: String - condition: [CodeableConcept] - meta: Meta - receivedTime: String - feature: [SpecimenFeature] - collection( +type MedicationAdministrationType { + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenCollectionUnion] - subject( + ): MedicationAdministrationNoteUnion! + dosage: MedicationAdministrationDosage + language: String + request( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenSubjectUnion] - accessionIdentifier: Identifier - container: [SpecimenContainer] - language: String - processing: [SpecimenProcessing] + ): MedicationRequestType! + reason: [CodeableReference] + occurencePeriod: Period + resourceType: String + text: Narrative + medication: CodeableReference implicitRules: String - note( + category: [CodeableConcept] + meta: Meta + isSubPotent: String + recorded: String + performer: [MedicationAdministrationPerformer] + statusReason: [CodeableConcept] + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenNoteUnion] -} -type DiagnosticReportMedia { - modifierExtension: [Extension] - resourceType: String - comment: String + ): MedicationAdministrationSubjectUnion! + contained: [ResourceUnion] extension: [Extension] - id: String - link( + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] -} -type Identifier { - type: CodeableConcept - extension: [Extension] - period: Period - system: String - value: String - assigner( + ): MedicationAdministrationPartOfUnion! + occurenceTiming: Timing + subPotentReason: [CodeableConcept] + supportingInformation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] + ): ResourceUnion! + status: String id: String - resourceType: String - use: String + occurenceDateTime: String + modifierExtension: [Extension] + device: [CodeableReference] + identifier: [Identifier] } -type PatientCommunication { +type SubstanceDefinitionMolecularWeight { resourceType: String + type: CodeableConcept + amount: Quantity extension: [Extension] id: String - language: CodeableConcept + method: CodeableConcept modifierExtension: [Extension] - preferred: String } -type Reference { - resourceType: String - type: String - display: String +type Meta { + lastUpdated: String + security: [Coding] extension: [Extension] + resourceType: String + versionId: String + tag: [Coding] id: String - identifier: Identifier - reference: String + profile: String + source: String } -union SpecimenCollectionCollectorUnion = - PractitionerType - | PractitionerRoleType - | PatientType -type SpecimenCollection { - extension: [Extension] - method: CodeableConcept - modifierExtension: [Extension] - quantity: Quantity - bodySite: CodeableReference - collector( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [SpecimenCollectionCollectorUnion] - fastingStatusCodeableConcept: CodeableConcept - collectedPeriod: Period - fastingStatusDuration: Duration - procedure( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ProcedureType] - device: CodeableReference - collectedDateTime: String - duration: Duration +type ParameterDefinition { + max: String + name: String + documentation: String id: String resourceType: String -} -type BodyStructureIncludedStructure { extension: [Extension] - id: String - laterality: CodeableConcept - modifierExtension: [Extension] - qualifier: [CodeableConcept] - resourceType: String - structure: CodeableConcept - bodyLandmarkOrientation: [BodyStructureIncludedStructureBodyLandmarkOrientation] + profile: String + use: String + min: String + type: String } +union MedicationRequestNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union MedicationRequestBasedOnUnion = MedicationRequestType +union MedicationRequestInformationSourceUnion = + PatientType + | PractitionerType + | PractitionerRoleType + | OrganizationType union MedicationRequestPerformerUnion = PractitionerType | PractitionerRoleType @@ -18124,823 +18093,897 @@ union MedicationRequestRequesterUnion = | OrganizationType | PatientType union MedicationRequestSubjectUnion = PatientType | GroupType -union MedicationRequestNoteUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union MedicationRequestBasedOnUnion = MedicationRequestType -union MedicationRequestInformationSourceUnion = - PatientType - | PractitionerType - | PractitionerRoleType - | OrganizationType type MedicationRequestType { - medication: CodeableReference - resourceType: String - reason: [CodeableReference] - statusChanged: String - courseOfTherapyType: CodeableConcept - effectiveDosePeriod: Period - device: [CodeableReference] - supportingInformation( + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - performer( + ): MedicationRequestSubjectUnion! + dosageInstruction: [Dosage] + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestPerformerUnion] - authoredOn: String - note( + ): MedicationRequestNoteUnion! + category: [CodeableConcept] + medication: CodeableReference + priority: String + contained: [ResourceUnion] + modifierExtension: [Extension] + courseOfTherapyType: CodeableConcept + dispenseRequest: MedicationRequestDispenseRequest + text: Narrative + effectiveDosePeriod: Period + extension: [Extension] + performerType: CodeableConcept + groupIdentifier: Identifier + substitution: MedicationRequestSubstitution + status: String + supportingInformation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestNoteUnion] - text: Narrative - id: String - language: String - status: String - implicitRules: String - requester( + ): ResourceUnion! + informationSource( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestRequesterUnion] - groupIdentifier: Identifier - statusReason: CodeableConcept - intent: String - dosageInstruction: [Dosage] - informationSource( + ): MedicationRequestInformationSourceUnion! + doNotPerform: String + reported: String + performer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestInformationSourceUnion] - performerType: CodeableConcept - identifier: [Identifier] - modifierExtension: [Extension] - category: [CodeableConcept] - recorder( + ): MedicationRequestPerformerUnion! + basedOn( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestRecorderUnion] - priorPrescription( + ): MedicationRequestBasedOnUnion! + identifier: [Identifier] + statusReason: CodeableConcept + renderedDosageInstruction: String + recorder( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestType] + ): MedicationRequestRecorderUnion! + authoredOn: String + intent: String + language: String + reason: [CodeableReference] meta: Meta - basedOn( + requester( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestBasedOnUnion] - extension: [Extension] - renderedDosageInstruction: String - reported: String - substitution: MedicationRequestSubstitution - doNotPerform: String - contained: [ResourceUnion] - subject( + ): MedicationRequestRequesterUnion! + priorPrescription( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestSubjectUnion] - dispenseRequest: MedicationRequestDispenseRequest - priority: String -} -type ImmunizationReaction { - manifestation: CodeableReference - modifierExtension: [Extension] - reported: String + ): MedicationRequestType! + device: [CodeableReference] resourceType: String - date: String - extension: [Extension] + statusChanged: String + implicitRules: String id: String } -type Ratio { +type AvailabilityNotAvailableTime { + during: Period extension: [Extension] id: String - numerator: Quantity resourceType: String - denominator: Quantity + description: String } -type Dosage { - asNeededFor: [CodeableConcept] - doseAndRate: [DosageDoseAndRate] - route: CodeableConcept - method: CodeableConcept - modifierExtension: [Extension] - patientInstruction: String - text: String +type ProcedureFocalDevice { extension: [Extension] - site: CodeableConcept - maxDosePerAdministration: Quantity - maxDosePerLifetime: Quantity - resourceType: String - additionalInstruction: [CodeableConcept] - asNeeded: String - timing: Timing id: String - sequence: String - maxDosePerPeriod: [Ratio] + modifierExtension: [Extension] + resourceType: String + action: CodeableConcept } -union PatientGeneralPractitionerUnion = - OrganizationType - | PractitionerType - | PractitionerRoleType -union PatientLinkUnion = PatientType -type PatientType { +type ObservationReferenceRange { + resourceType: String + type: CodeableConcept + extension: [Extension] + low: Quantity + high: Quantity + normalValue: CodeableConcept + appliesTo: [CodeableConcept] + id: String + text: String + age: Range modifierExtension: [Extension] - gender: String +} +union PatientLinkOtherUnion = PatientType +type PatientLink { + resourceType: String + type: String extension: [Extension] - deceasedBoolean: String - address: [Address] - link( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [PatientLinkUnion] - identifier: [Identifier] - generalPractitioner( + id: String + modifierExtension: [Extension] + other( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [PatientGeneralPractitionerUnion] - implicitRules: String - meta: Meta - multipleBirthInteger: String - multipleBirthBoolean: String - text: Narrative - managingOrganization( + ): PatientLinkOtherUnion! +} +type PatientContact { + extension: [Extension] + period: Period + gender: String + id: String + telecom: [ContactPoint] + name: HumanName + organization( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - active: String - birthDate: String - deceasedDateTime: String + ): OrganizationType! + relationship: [CodeableConcept] + resourceType: String + address: Address + modifierExtension: [Extension] +} +type ResearchStudyLabel { + type: CodeableConcept + value: String + extension: [Extension] id: String - name: [HumanName] - photo: [Attachment] - contained: [ResourceUnion] - contact: [PatientContact] - maritalStatus: CodeableConcept - communication: [PatientCommunication] - telecom: [ContactPoint] - language: String + modifierExtension: [Extension] resourceType: String } -type SubstanceDefinitionStructure { - sourceDocument( +type MedicationType { + meta: Meta + text: Narrative + marketingAuthorizationHolder( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] + ): OrganizationType! modifierExtension: [Extension] - molecularFormula: String + totalVolume: Quantity + language: String + doseForm: CodeableConcept resourceType: String - id: String - stereochemistry: CodeableConcept - technique: [CodeableConcept] - opticalActivity: CodeableConcept - molecularFormulaByMoiety: String - molecularWeight: SubstanceDefinitionMolecularWeight - representation: [SubstanceDefinitionStructureRepresentation] - extension: [Extension] -} -type AvailabilityAvailableTime { - availableStartTime: String - daysOfWeek: String + implicitRules: String + ingredient: [MedicationIngredient] + contained: [ResourceUnion] extension: [Extension] + identifier: [Identifier] id: String - resourceType: String - allDay: String - availableEndTime: String + status: String + batch: MedicationBatch + code: CodeableConcept } -type ContactDetail { - telecom: [ContactPoint] - extension: [Extension] +type Duration { id: String - name: String resourceType: String + system: String + unit: String + value: String + code: String + comparator: String + extension: [Extension] } -union MedicationStatementInformationSourceUnion = - PatientType - | PractitionerType - | PractitionerRoleType - | OrganizationType -union MedicationStatementPartOfUnion = ProcedureType | MedicationStatementType -union MedicationStatementRelatedClinicalInformationUnion = - ObservationType - | ConditionType -union MedicationStatementSubjectUnion = PatientType | GroupType -union MedicationStatementNoteUnion = +union AnnotationAuthorReferenceUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type MedicationStatementType { - relatedClinicalInformation( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [MedicationStatementRelatedClinicalInformationUnion] - meta: Meta - effectivePeriod: Period - dosage: [Dosage] - category: [CodeableConcept] - contained: [ResourceUnion] - effectiveDateTime: String - identifier: [Identifier] - note( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [MedicationStatementNoteUnion] - implicitRules: String - medication: CodeableReference - renderedDosageInstruction: String - derivedFrom( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ResourceUnion] - subject( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [MedicationStatementSubjectUnion] - adherence: MedicationStatementAdherence - reason: [CodeableReference] - text: Narrative - language: String - partOf( +type Annotation { + resourceType: String + text: String + time: String + authorReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationStatementPartOfUnion] - modifierExtension: [Extension] - dateAsserted: String + ): AnnotationAuthorReferenceUnion! + authorString: String extension: [Extension] id: String - effectiveTiming: Timing - informationSource( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [MedicationStatementInformationSourceUnion] - status: String - resourceType: String } -type MedicationStatementAdherence { - extension: [Extension] - id: String - modifierExtension: [Extension] - reason: CodeableConcept +union DiagnosticReportSupportingInfoReferenceUnion = + ProcedureType + | ObservationType + | DiagnosticReportType +type DiagnosticReportSupportingInfo { resourceType: String - code: CodeableConcept -} -type ProcedureFocalDevice { - action: CodeableConcept + type: CodeableConcept extension: [Extension] id: String modifierExtension: [Extension] - resourceType: String -} -type Attachment { - width: String - pages: String - extension: [Extension] - data: String - size: String - duration: String - title: String - creation: String - height: String - frames: String - hash: String - url: String - resourceType: String - id: String - contentType: String - language: String -} -type PractitionerQualification { - issuer( + reference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - modifierExtension: [Extension] - period: Period - resourceType: String - code: CodeableConcept - extension: [Extension] - id: String - identifier: [Identifier] + ): DiagnosticReportSupportingInfoReferenceUnion! } -type ResearchStudyObjective { - description: String +type Period { + start: String + end: String extension: [Extension] id: String - modifierExtension: [Extension] - name: String resourceType: String - type: CodeableConcept } -union GroupMemberEntityUnion = - GroupType - | OrganizationType - | PatientType - | PractitionerType - | PractitionerRoleType - | SpecimenType -type GroupMember { - entity( +type SubstanceIngredient { + resourceType: String + substanceCodeableConcept: CodeableConcept + substanceReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [GroupMemberEntityUnion] + ): SubstanceType! extension: [Extension] id: String - inactive: String modifierExtension: [Extension] - period: Period - resourceType: String + quantity: Ratio } -union ConditionSubjectUnion = PatientType | GroupType -union ConditionNoteUnion = +union TaskInputValueAnnotationUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ConditionParticipantUnion = +union TaskInputValueSignatureUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ConditionStageUnion = DiagnosticReportType | ObservationType -type ConditionType { - contained: [ResourceUnion] - abatementAge: Age - onsetDateTime: String - verificationStatus: CodeableConcept - code: CodeableConcept - language: String - text: Narrative - abatementString: String - clinicalStatus: CodeableConcept - modifierExtension: [Extension] - abatementRange: Range - resourceType: String - recordedDate: String - severity: CodeableConcept - implicitRules: String - onsetAge: Age - evidence: [CodeableReference] - meta: Meta - stage( +union TaskInputValueUsageContextUnion = + ResearchStudyType + | GroupType + | OrganizationType +type TaskInput { + valueBase64Binary: String + valueCode: String + valueTriggerDefinition: TriggerDefinition + valueUsageContext( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ConditionStageUnion] - category: [CodeableConcept] - onsetRange: Range - subject( + ): TaskInputValueUsageContextUnion! + valueDataRequirement: DataRequirement + valueUuid: String + valueOid: String + valueRatio: Ratio + type: CodeableConcept + valueCodeableReference: CodeableReference + valueId: String + valueInstant: String + valueHumanName: HumanName + valueMoney: Money + valueSignature( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ConditionSubjectUnion] - abatementPeriod: Period - id: String - bodySite: [CodeableConcept] - onsetString: String - abatementDateTime: String - extension: [Extension] - participant( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ConditionParticipantUnion] - note( + ): TaskInputValueSignatureUnion! + valueAvailability: Availability + valueUnsignedInt: String + valueMarkdown: String + valueString: String + valueSampledData: SampledData + valueDistance: Distance + valueAge: Age + valueTime: String + valueRange: Range + valueAnnotation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ConditionNoteUnion] - identifier: [Identifier] - onsetPeriod: Period -} -type EncounterDiagnosis { + ): TaskInputValueAnnotationUnion! + valueUrl: String + modifierExtension: [Extension] + valueInteger64: String + valueAttachment: Attachment + valueInteger: String + valueDosage: Dosage + valueExpression: Expression + valueContactPoint: ContactPoint + valueMeta: Meta resourceType: String - use: [CodeableConcept] - condition: [CodeableReference] - extension: [Extension] + valueDate: String + valueDateTime: String + valueExtendedContactDetail: ExtendedContactDetail + valueRatioRange: RatioRange + valueAddress: Address id: String - modifierExtension: [Extension] + valueQuantity: Quantity + valueTiming: Timing + valuePositiveInt: String + valuePeriod: Period + valueCount: Count + valueDuration: Duration + valueCanonical: String + valueParameterDefinition: ParameterDefinition + valueRelatedArtifact: RelatedArtifact + extension: [Extension] + valueContactDetail: ContactDetail + valueUri: String + valueDecimal: String + valueBoolean: String + valueIdentifier: Identifier + valueCodeableConcept: CodeableConcept + valueCoding: Coding } -union FamilyMemberHistoryConditionNoteUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type FamilyMemberHistoryCondition { - onsetPeriod: Period +type HumanName { + given: String + resourceType: String + use: String + family: String + suffix: String + id: String + period: Period + prefix: String extension: [Extension] - note( + text: String +} +type SubstanceDefinitionStructure { + stereochemistry: CodeableConcept + modifierExtension: [Extension] + resourceType: String + technique: [CodeableConcept] + molecularWeight: SubstanceDefinitionMolecularWeight + opticalActivity: CodeableConcept + sourceDocument( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [FamilyMemberHistoryConditionNoteUnion] - onsetAge: Age - onsetRange: Range - resourceType: String - contributedToDeath: String + ): DocumentReferenceType! + extension: [Extension] id: String - code: CodeableConcept - onsetString: String - outcome: CodeableConcept - modifierExtension: [Extension] + molecularFormula: String + representation: [SubstanceDefinitionStructureRepresentation] + molecularFormulaByMoiety: String } -type RelatedArtifact { - display: String - publicationDate: String - publicationStatus: String - classifier: [CodeableConcept] - document: Attachment - resourceReference( +union TaskPerformerActorUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type TaskPerformer { + actor( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] + ): TaskPerformerActorUnion! extension: [Extension] + function: CodeableConcept id: String - label: String - citation: String - resource: String - type: String + modifierExtension: [Extension] resourceType: String } -type CodeableReference { +type AvailabilityAvailableTime { + availableStartTime: String + daysOfWeek: String extension: [Extension] id: String resourceType: String - concept: CodeableConcept + allDay: String + availableEndTime: String } -type ImmunizationProtocolApplied { - seriesDoses: String - targetDisease: [CodeableConcept] - doseNumber: String +type Reference { + identifier: Identifier + reference: String + resourceType: String + type: String + display: String + extension: [Extension] + id: String +} +type DataRequirementDateFilter { + resourceType: String + searchParam: String + valueDateTime: String + valueDuration: Duration + valuePeriod: Period + extension: [Extension] + id: String + path: String +} +type DocumentReferenceRelatesTo { + code: CodeableConcept extension: [Extension] id: String modifierExtension: [Extension] resourceType: String - series: String + target( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): DocumentReferenceType! } -union ObservationSpecimenUnion = SpecimenType | GroupType -union ObservationSubjectUnion = - PatientType - | GroupType - | OrganizationType - | ProcedureType - | PractitionerType - | MedicationType - | SubstanceType -union ObservationNoteUnion = +union FamilyMemberHistoryParticipantActorUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ObservationBasedOnUnion = MedicationRequestType -union ObservationDerivedFromUnion = - DocumentReferenceType - | ImagingStudyType - | ObservationType -union ObservationHasMemberUnion = ObservationType -union ObservationPartOfUnion = - MedicationAdministrationType - | MedicationStatementType - | ProcedureType - | ImagingStudyType -union ObservationPerformerUnion = +type FamilyMemberHistoryParticipant { + extension: [Extension] + function: CodeableConcept + id: String + modifierExtension: [Extension] + resourceType: String + actor( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): FamilyMemberHistoryParticipantActorUnion! +} +union TaskOutputValueAnnotationUnion = PractitionerType | PractitionerRoleType + | PatientType | OrganizationType +union TaskOutputValueSignatureUnion = + PractitionerType + | PractitionerRoleType | PatientType -type ObservationType { - effectivePeriod: Period - derivedFrom( + | OrganizationType +union TaskOutputValueUsageContextUnion = + ResearchStudyType + | GroupType + | OrganizationType +type TaskOutput { + type: CodeableConcept + valueIdentifier: Identifier + valueRange: Range + valueUri: String + valueCodeableConcept: CodeableConcept + valueContactDetail: ContactDetail + valueInstant: String + valueDuration: Duration + id: String + valueTime: String + valueMoney: Money + valueRatioRange: RatioRange + valueInteger: String + valueDate: String + valueCount: Count + valueCodeableReference: CodeableReference + valueBoolean: String + valuePositiveInt: String + resourceType: String + valueDateTime: String + valueUnsignedInt: String + valueAddress: Address + valueTriggerDefinition: TriggerDefinition + valueDataRequirement: DataRequirement + valueParameterDefinition: ParameterDefinition + valueMeta: Meta + valueCode: String + valueExpression: Expression + valueSampledData: SampledData + valueMarkdown: String + valueDecimal: String + valueUrl: String + valueHumanName: HumanName + valueRelatedArtifact: RelatedArtifact + valueInteger64: String + valueAnnotation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationDerivedFromUnion] - effectiveInstant: String - valuePeriod: Period - instantiatesCanonical: String - referenceRange: [ObservationReferenceRange] - code: CodeableConcept - category: [CodeableConcept] - valueBoolean: String - performer( + ): TaskOutputValueAnnotationUnion! + valueUsageContext( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationPerformerUnion] - bodySite: CodeableConcept - text: Narrative + ): TaskOutputValueUsageContextUnion! + valueDosage: Dosage + valueDistance: Distance + valueAge: Age + valueRatio: Ratio + valueOid: String + valueExtendedContactDetail: ExtendedContactDetail + valueBase64Binary: String + modifierExtension: [Extension] + valueContactPoint: ContactPoint + valueSignature( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): TaskOutputValueSignatureUnion! + valueAvailability: Availability + valuePeriod: Period valueQuantity: Quantity + valueCoding: Coding + valueTiming: Timing + valueCanonical: String + valueAttachment: Attachment + extension: [Extension] valueString: String + valueUuid: String + valueId: String +} +type BodyStructureIncludedStructureBodyLandmarkOrientation { + resourceType: String + surfaceOrientation: [CodeableConcept] + clockFacePosition: [CodeableConcept] + distanceFromLandmark: [BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark] + extension: [Extension] + id: String + landmarkDescription: [CodeableConcept] + modifierExtension: [Extension] +} +type ImmunizationProtocolApplied { + modifierExtension: [Extension] + resourceType: String + series: String + seriesDoses: String + targetDisease: [CodeableConcept] + doseNumber: String + extension: [Extension] + id: String +} +type MedicationRequestDispenseRequestInitialFill { + duration: Duration + extension: [Extension] id: String modifierExtension: [Extension] + quantity: Quantity + resourceType: String +} +type Distance { + comparator: String + extension: [Extension] + id: String + resourceType: String + system: String + unit: String + value: String + code: String +} +union ImagingStudyBasedOnUnion = TaskType +union ImagingStudyReferrerUnion = PractitionerType | PractitionerRoleType +union ImagingStudySubjectUnion = PatientType | GroupType +union ImagingStudyNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type ImagingStudyType { + description: String + identifier: [Identifier] contained: [ResourceUnion] - valueAttachment: Attachment - issued: String - implicitRules: String - meta: Meta - method: CodeableConcept - bodyStructure( + id: String + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [BodyStructureType] - effectiveDateTime: String - valueRatio: Ratio - interpretation: [CodeableConcept] - valueDateTime: String - valueTime: String - dataAbsentReason: CodeableConcept + ): ImagingStudySubjectUnion! + status: String + text: Narrative + meta: Meta + series: [ImagingStudySeries] + extension: [Extension] + implicitRules: String + reason: [CodeableReference] + modality: [CodeableConcept] resourceType: String - note( + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationNoteUnion] - basedOn( + ): ProcedureType! + modifierExtension: [Extension] + referrer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationBasedOnUnion] - focus( + ): ImagingStudyReferrerUnion! + procedure: [CodeableReference] + started: String + numberOfSeries: String + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): ResourceUnion - valueCodeableConcept: CodeableConcept - hasMember( + ): ImagingStudyNoteUnion! + basedOn( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationHasMemberUnion] - valueInteger: String + ): ImagingStudyBasedOnUnion! language: String - identifier: [Identifier] - valueSampledData: SampledData - subject( + numberOfInstances: String +} +type EncounterDiagnosis { + use: [CodeableConcept] + condition: [CodeableReference] + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String +} +union ImagingStudySeriesPerformerActorUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type ImagingStudySeriesPerformer { + resourceType: String + actor( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): ObservationSubjectUnion + ): ImagingStudySeriesPerformerActorUnion! extension: [Extension] - triggeredBy: [ObservationTriggeredBy] - specimen( + function: CodeableConcept + id: String + modifierExtension: [Extension] +} +type GroupCharacteristic { + valueRange: Range + code: CodeableConcept + extension: [Extension] + period: Period + resourceType: String + valueBoolean: String + exclude: String + valueCodeableConcept: CodeableConcept + id: String + modifierExtension: [Extension] + valueQuantity: Quantity +} +type SubstanceDefinitionNameOfficial { + id: String + modifierExtension: [Extension] + resourceType: String + status: CodeableConcept + authority: CodeableConcept + date: String + extension: [Extension] +} +type RatioRange { + resourceType: String + denominator: Quantity + extension: [Extension] + highNumerator: Quantity + id: String + lowNumerator: Quantity +} +union SignatureOnBehalfOfUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union SignatureWhoUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type Signature { + targetFormat: String + when: String + onBehalfOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationSpecimenUnion] - partOf( + ): SignatureOnBehalfOfUnion! + type: [Coding] + extension: [Extension] + sigFormat: String + data: String + id: String + resourceType: String + who( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationPartOfUnion] - component: [ObservationComponent] - effectiveTiming: Timing - valueRange: Range - status: String + ): SignatureWhoUnion! } -union ProcedureFocusUnion = - PatientType - | GroupType - | PractitionerType - | OrganizationType - | PractitionerRoleType - | SpecimenType -union ProcedurePartOfUnion = - ProcedureType - | ObservationType - | MedicationAdministrationType -union ProcedureRecorderUnion = - PatientType - | PractitionerType - | PractitionerRoleType -union ProcedureReportUnion = DiagnosticReportType | DocumentReferenceType -union ProcedureReportedReferenceUnion = - PatientType - | PractitionerType +type ResearchStudyOutcomeMeasure { + name: String + resourceType: String + type: [CodeableConcept] + description: String + extension: [Extension] + id: String + modifierExtension: [Extension] +} +type CodeableReference { + resourceType: String + concept: CodeableConcept + extension: [Extension] + id: String +} +type PractitionerCommunication { + preferred: String + resourceType: String + extension: [Extension] + id: String + language: CodeableConcept + modifierExtension: [Extension] +} +union TaskOwnerUnion = + PractitionerType | PractitionerRoleType | OrganizationType -union ProcedureSubjectUnion = - PatientType - | GroupType + | PatientType +union TaskRequesterUnion = + OrganizationType + | PatientType | PractitionerType - | OrganizationType -union ProcedureNoteUnion = + | PractitionerRoleType +union TaskNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ProcedurePerformerUnion = +union TaskPerformerUnion = PractitionerType | PractitionerRoleType | OrganizationType | PatientType -type ProcedureType { - resourceType: String - recorder( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ProcedureRecorderUnion] - occurrenceTiming: Timing - occurrenceString: String - outcome: CodeableConcept - reason: [CodeableReference] - reportedReference( +union TaskRestrictionUnion = + PatientType + | PractitionerType + | PractitionerRoleType + | GroupType + | OrganizationType +type TaskType { + instantiatesUri: String + owner( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureReportedReferenceUnion] - occurrencePeriod: Period - reportedBoolean: String - extension: [Extension] - report( + ): TaskOwnerUnion! + id: String + intent: String + code: CodeableConcept + requestedPeriod: Period + restriction( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureReportUnion] - code: CodeableConcept - category: [CodeableConcept] - used: [CodeableReference] - recorded: String - partOf( + ): TaskRestrictionUnion! + authoredOn: String + modifierExtension: [Extension] + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedurePartOfUnion] - statusReason: CodeableConcept - modifierExtension: [Extension] - occurrenceRange: Range - followUp: [CodeableConcept] - occurrenceAge: Age - bodySite: [CodeableConcept] - id: String - focalDevice: [ProcedureFocalDevice] + ): TaskNoteUnion! + doNotPerform: String text: Narrative + identifier: [Identifier] + language: String + output: [TaskOutput] + extension: [Extension] + instantiatesCanonical: String + status: String + businessStatus: CodeableConcept + executionPeriod: Period meta: Meta - supportingInfo( + implicitRules: String + basedOn( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - language: String - note( + ): ResourceUnion! + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureNoteUnion] - status: String - implicitRules: String + ): TaskType! + statusReason: CodeableReference contained: [ResourceUnion] performer( offset: Int @@ -18949,20 +18992,18 @@ type ProcedureType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedurePerformerUnion] - instantiatesCanonical: String - complication: [CodeableReference] - occurrenceDateTime: String - identifier: [Identifier] - instantiatesUri: String - subject( + ): TaskPerformerUnion! + input: [TaskInput] + requester( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureSubjectUnion] + ): TaskRequesterUnion! + description: String + groupIdentifier: Identifier focus( offset: Int first: Int @@ -18970,250 +19011,181 @@ type ProcedureType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureFocusUnion] + ): ResourceUnion! + priority: String + lastModified: String + resourceType: String + requestedPerformer: [CodeableReference] + reason: [CodeableReference] } -union ResearchSubjectSubjectUnion = - PatientType - | GroupType - | SpecimenType - | MedicationType - | SubstanceType -type ResearchSubjectType { - subject( +type Availability { + notAvailableTime: [AvailabilityNotAvailableTime] + resourceType: String + availableTime: [AvailabilityAvailableTime] + extension: [Extension] + id: String +} +type ExtendedContactDetail { + period: Period + telecom: [ContactPoint] + address: Address + organization( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchSubjectSubjectUnion] - text: Narrative + ): OrganizationType! + purpose: CodeableConcept resourceType: String - implicitRules: String - meta: Meta - status: String + name: [HumanName] + extension: [Extension] id: String - contained: [ResourceUnion] - identifier: [Identifier] - progress: [ResearchSubjectProgress] - actualComparisonGroup: String - language: String - modifierExtension: [Extension] - study( +} +union ExtensionValueSignatureUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union ExtensionValueUsageContextUnion = + ResearchStudyType + | GroupType + | OrganizationType +union ExtensionValueAnnotationUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type Extension { + valuePeriod: Period + valueQuantity: Quantity + valueExpression: Expression + valueSampledData: SampledData + valueContactDetail: ContactDetail + valueCodeableReference: CodeableReference + valueRelatedArtifact: RelatedArtifact + valueParameterDefinition: ParameterDefinition + valueInstant: String + valueExtendedContactDetail: ExtendedContactDetail + valueId: String + valueCount: Count + valueCoding: Coding + valueUsageContext( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyType] - extension: [Extension] - period: Period - assignedComparisonGroup: String -} -type SpecimenFeature { - extension: [Extension] - id: String - modifierExtension: [Extension] - resourceType: String - type: CodeableConcept - description: String -} -type Address { - text: String - use: String + ): ExtensionValueUsageContextUnion! + valueInteger: String + valueUuid: String + valueMeta: Meta + valueOid: String + valueTriggerDefinition: TriggerDefinition id: String - line: String - country: String - postalCode: String - state: String - city: String - district: String - period: Period - resourceType: String - type: String + valueMarkdown: String + valueIdentifier: Identifier + valueRange: Range + valueAttachment: Attachment + valueDate: String + valueRatio: Ratio + valueBoolean: String + valueString: String + valueDuration: Duration + valueDataRequirement: DataRequirement + valueCodeableConcept: CodeableConcept + valueContactPoint: ContactPoint + valueAvailability: Availability + valueDosage: Dosage + valueUnsignedInt: String + valueAge: Age + valueHumanName: HumanName + valueInteger64: String + valueUrl: String extension: [Extension] -} -type DocumentReferenceRelatesTo { - modifierExtension: [Extension] + valueBase64Binary: String + valueCode: String resourceType: String - target( + valueDecimal: String + valuePositiveInt: String + valueAddress: Address + valueUri: String + valueSignature( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] - code: CodeableConcept - extension: [Extension] - id: String -} -type EncounterLocation { - period: Period - resourceType: String - status: String - extension: [Extension] - form: CodeableConcept - id: String - modifierExtension: [Extension] -} -type SampledData { - resourceType: String - origin: Quantity - codeMap: String - intervalUnit: String - lowerLimit: String - upperLimit: String - extension: [Extension] - id: String - dimensions: String - factor: String - interval: String - offsets: String - data: String -} -type TriggerDefinition { - condition: Expression - name: String - data: [DataRequirement] - extension: [Extension] - id: String - timingTiming: Timing - code: CodeableConcept - timingDateTime: String - type: String - resourceType: String - timingDate: String - subscriptionTopic: String -} -type Availability { - availableTime: [AvailabilityAvailableTime] - extension: [Extension] - id: String - notAvailableTime: [AvailabilityNotAvailableTime] - resourceType: String -} -type HumanName { - suffix: String - use: String - family: String - given: String - id: String - prefix: String - extension: [Extension] - resourceType: String - period: Period - text: String -} -union ImagingStudySeriesPerformerUnion = - PractitionerType - | PractitionerRoleType - | OrganizationType - | PatientType -type ImagingStudySeries { - bodySite: CodeableReference - resourceType: String - id: String - started: String - extension: [Extension] - numberOfInstances: String - uid: String - laterality: CodeableConcept - modality: CodeableConcept - performer( + ): ExtensionValueSignatureUnion! + valueDateTime: String + valueTime: String + valueMoney: Money + valueDistance: Distance + valueTiming: Timing + valueRatioRange: RatioRange + valueCanonical: String + url: String + valueAnnotation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudySeriesPerformerUnion] - modifierExtension: [Extension] - description: String - number: String - instance: [ImagingStudySeriesInstance] - specimen( + ): ExtensionValueAnnotationUnion! +} +union GroupMemberEntityUnion = + GroupType + | OrganizationType + | PatientType + | PractitionerType + | PractitionerRoleType + | SpecimenType +type GroupMember { + period: Period + resourceType: String + entity( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenType] -} -type Narrative { - div: String + ): GroupMemberEntityUnion! extension: [Extension] id: String - resourceType: String - status: String -} -type PractitionerType { - meta: Meta - deceasedBoolean: String - birthDate: String - id: String - extension: [Extension] - gender: String - qualification: [PractitionerQualification] - contained: [ResourceUnion] - telecom: [ContactPoint] - identifier: [Identifier] - address: [Address] + inactive: String modifierExtension: [Extension] - resourceType: String - implicitRules: String - language: String - name: [HumanName] - photo: [Attachment] - text: Narrative - active: String - communication: [PractitionerCommunication] - deceasedDateTime: String -} -type Range { - resourceType: String - extension: [Extension] - high: Quantity - id: String - low: Quantity } -type DocumentReferenceContent { - attachment: Attachment +type DosageDoseAndRate { extension: [Extension] + type: CodeableConcept id: String - modifierExtension: [Extension] - profile: [DocumentReferenceContentProfile] + doseRange: Range resourceType: String + rateQuantity: Quantity + doseQuantity: Quantity + rateRatio: Ratio + rateRange: Range } -type Period { +type ResearchStudyObjective { extension: [Extension] id: String - resourceType: String - start: String - end: String -} -type SubstanceDefinitionProperty { - extension: [Extension] modifierExtension: [Extension] - valueAttachment: Attachment - valueQuantity: Quantity - id: String + name: String resourceType: String type: CodeableConcept - valueBoolean: String - valueCodeableConcept: CodeableConcept - valueDate: String + description: String } -union TaskPerformerActorUnion = +union ProcedurePerformerActorUnion = PractitionerType | PractitionerRoleType | OrganizationType | PatientType -type TaskPerformer { - id: String - modifierExtension: [Extension] +type ProcedurePerformer { resourceType: String actor( offset: Int @@ -19222,309 +19194,186 @@ type TaskPerformer { sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskPerformerActorUnion] + ): ProcedurePerformerActorUnion! extension: [Extension] function: CodeableConcept + id: String + modifierExtension: [Extension] + onBehalfOf( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): OrganizationType! + period: Period } -union FamilyMemberHistoryNoteUnion = - PractitionerType +union DocumentReferenceBasedOnUnion = MedicationRequestType +union DocumentReferenceAttesterUnion = + PatientType + | PractitionerType | PractitionerRoleType - | PatientType | OrganizationType -union FamilyMemberHistoryParticipantUnion = +union DocumentReferenceAuthorUnion = PractitionerType | PractitionerRoleType - | PatientType | OrganizationType -type FamilyMemberHistoryType { - condition: [FamilyMemberHistoryCondition] - ageAge: Age - deceasedRange: Range - deceasedAge: Age - status: String - language: String - identifier: [Identifier] - sex: CodeableConcept - note( + | PatientType +type DocumentReferenceType { + modality: [CodeableConcept] + securityLabel: [CodeableConcept] + meta: Meta + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [FamilyMemberHistoryNoteUnion] - contained: [ResourceUnion] + ): ResourceUnion! id: String - resourceType: String - deceasedString: String - relationship: CodeableConcept - bornDate: String - dataAbsentReason: CodeableConcept - estimatedAge: String modifierExtension: [Extension] + contained: [ResourceUnion] + event: [CodeableReference] + practiceSetting: CodeableConcept + bodySite: [CodeableReference] + identifier: [Identifier] date: String - patient( + language: String + author( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [PatientType] - extension: [Extension] - procedure: [FamilyMemberHistoryProcedure] - meta: Meta - ageRange: Range - name: String - deceasedDate: String - deceasedBoolean: String - instantiatesCanonical: String - ageString: String - text: Narrative + ): DocumentReferenceAuthorUnion! + type: CodeableConcept + category: [CodeableConcept] + period: Period + facilityType: CodeableConcept + attester( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): DocumentReferenceAttesterUnion! implicitRules: String - reason: [CodeableReference] - instantiatesUri: String - bornString: String - participant( + docStatus: String + custodian( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [FamilyMemberHistoryParticipantUnion] - bornPeriod: Period + ): OrganizationType! + description: String + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): DocumentReferenceBasedOnUnion! + relatesTo: [DocumentReferenceRelatesTo] + resourceType: String + status: String + text: Narrative + content: [DocumentReferenceContent] + version: String + extension: [Extension] } type DataRequirementCodeFilter { - extension: [Extension] id: String path: String resourceType: String searchParam: String valueSet: String code: [Coding] + extension: [Extension] } -type ImmunizationPerformer { - function: CodeableConcept +type ImmunizationReaction { id: String + manifestation: CodeableReference modifierExtension: [Extension] + reported: String resourceType: String + date: String extension: [Extension] } -type MedicationRequestDispenseRequestInitialFill { - duration: Duration - extension: [Extension] +type DataRequirement { + type: String + valueFilter: [DataRequirementValueFilter] id: String - modifierExtension: [Extension] - quantity: Quantity - resourceType: String -} -union ConditionStageAssessmentUnion = DiagnosticReportType | ObservationType -type ConditionStage { - resourceType: String - summary: CodeableConcept - type: CodeableConcept - assessment( + profile: String + subjectReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ConditionStageAssessmentUnion] + ): GroupType! + codeFilter: [DataRequirementCodeFilter] + limit: String + subjectCodeableConcept: CodeableConcept + mustSupport: String extension: [Extension] - id: String - modifierExtension: [Extension] -} -type ImmunizationProgramEligibility { - programStatus: CodeableConcept resourceType: String - extension: [Extension] - id: String - modifierExtension: [Extension] - program: CodeableConcept + sort: [DataRequirementSort] + dateFilter: [DataRequirementDateFilter] } -type ParameterDefinition { - profile: String - min: String - name: String - type: String - documentation: String +union SubstanceDefinitionNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type SubstanceDefinitionType { + version: String extension: [Extension] - id: String - max: String - resourceType: String - use: String -} -type ResearchStudyOutcomeMeasure { - id: String - modifierExtension: [Extension] - name: String - resourceType: String - type: [CodeableConcept] - description: String - extension: [Extension] -} -union TaskInputValueAnnotationUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union TaskInputValueSignatureUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union TaskInputValueUsageContextUnion = - ResearchStudyType - | GroupType - | OrganizationType -type TaskInput { - valueAddress: Address - valueUrl: String - valueDosage: Dosage - valueRelatedArtifact: RelatedArtifact - valueDateTime: String - valueExpression: Expression - valueCanonical: String - valueContactPoint: ContactPoint - valueUnsignedInt: String - valueInstant: String - valueMoney: Money - valueParameterDefinition: ParameterDefinition - valueUuid: String - valueAttachment: Attachment - valueUsageContext( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [TaskInputValueUsageContextUnion] - valueTime: String - valueUri: String - valueSignature( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [TaskInputValueSignatureUnion] - valueQuantity: Quantity - valueContactDetail: ContactDetail - valueMeta: Meta - valueCode: String - valueTriggerDefinition: TriggerDefinition - valueOid: String - valueInteger64: String - valueDataRequirement: DataRequirement - valueBoolean: String - valueCoding: Coding - valueDecimal: String - valueAnnotation( + manufacturer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskInputValueAnnotationUnion] - valueCount: Count - valueBase64Binary: String - valueCodeableReference: CodeableReference - valueDistance: Distance - valueHumanName: HumanName - valueId: String - resourceType: String - valueRatio: Ratio - valueExtendedContactDetail: ExtendedContactDetail - valueRatioRange: RatioRange - valueMarkdown: String - type: CodeableConcept - id: String - valueSampledData: SampledData - extension: [Extension] - modifierExtension: [Extension] - valueTiming: Timing - valueIdentifier: Identifier - valuePositiveInt: String - valueAvailability: Availability - valueDuration: Duration - valueString: String - valueCodeableConcept: CodeableConcept - valueAge: Age - valueDate: String - valuePeriod: Period - valueInteger: String - valueRange: Range -} -type DataRequirement { - type: String - valueFilter: [DataRequirementValueFilter] - dateFilter: [DataRequirementDateFilter] - limit: String - subjectCodeableConcept: CodeableConcept - extension: [Extension] - mustSupport: String - sort: [DataRequirementSort] + ): OrganizationType! id: String - profile: String - subjectReference( + meta: Meta + classification: [CodeableConcept] + code: [SubstanceDefinitionCode] + characterization: [SubstanceDefinitionCharacterization] + supplier( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [GroupType] + ): OrganizationType! resourceType: String - codeFilter: [DataRequirementCodeFilter] -} -union ImagingStudyBasedOnUnion = TaskType -union ImagingStudyReferrerUnion = PractitionerType | PractitionerRoleType -union ImagingStudySubjectUnion = PatientType | GroupType -union ImagingStudyNoteUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type ImagingStudyType { - partOf( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ProcedureType] - text: Narrative - meta: Meta - extension: [Extension] + sourceMaterial: SubstanceDefinitionSourceMaterial + contained: [ResourceUnion] + status: CodeableConcept + property: [SubstanceDefinitionProperty] language: String - basedOn( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ImagingStudyBasedOnUnion] - numberOfInstances: String - procedure: [CodeableReference] - identifier: [Identifier] + name: [SubstanceDefinitionName] + structure: SubstanceDefinitionStructure + description: String + text: Narrative + molecularWeight: [SubstanceDefinitionMolecularWeight] implicitRules: String - referrer( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ImagingStudyReferrerUnion] - modality: [CodeableConcept] - resourceType: String + identifier: [Identifier] + relationship: [SubstanceDefinitionRelationship] + domain: CodeableConcept + modifierExtension: [Extension] + moiety: [SubstanceDefinitionMoiety] note( offset: Int first: Int @@ -19532,779 +19381,790 @@ type ImagingStudyType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudyNoteUnion] + ): SubstanceDefinitionNoteUnion! + grade: [CodeableConcept] +} +type OrganizationType { + identifier: [Identifier] contained: [ResourceUnion] + active: String modifierExtension: [Extension] - series: [ImagingStudySeries] - reason: [CodeableReference] - started: String - status: String - subject( + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudySubjectUnion] + ): OrganizationType! + resourceType: String + extension: [Extension] description: String + meta: Meta + name: String + type: [CodeableConcept] + implicitRules: String id: String - numberOfSeries: String + qualification: [OrganizationQualification] + alias: String + contact: [ExtendedContactDetail] + text: Narrative + language: String } -type ObservationTriggeredBy { - id: String - modifierExtension: [Extension] - observation( +type SubstanceDefinitionStructureRepresentation { + document( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationType] - reason: String + ): DocumentReferenceType! + extension: [Extension] + format: CodeableConcept + id: String + modifierExtension: [Extension] + representation: String resourceType: String - type: String + type: CodeableConcept +} +type SubstanceDefinitionMoiety { + amountString: String + stereochemistry: CodeableConcept extension: [Extension] + identifier: Identifier + name: String + role: CodeableConcept + id: String + measurementType: CodeableConcept + modifierExtension: [Extension] + molecularFormula: String + amountQuantity: Quantity + opticalActivity: CodeableConcept + resourceType: String } -type PractitionerRoleType { - availability: [Availability] - identifier: [Identifier] - practitioner( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [PractitionerType] - contained: [ResourceUnion] - language: String - code: [CodeableConcept] - implicitRules: String - specialty: [CodeableConcept] +type MedicationAdministrationPerformer { + function: CodeableConcept id: String + modifierExtension: [Extension] resourceType: String + actor: CodeableReference extension: [Extension] - organization( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [OrganizationType] +} +type SpecimenFeature { + description: String + extension: [Extension] + id: String modifierExtension: [Extension] - communication: [CodeableConcept] - active: String - characteristic: [CodeableConcept] - contact: [ExtendedContactDetail] - meta: Meta - period: Period - text: Narrative + resourceType: String + type: CodeableConcept } -union ResearchStudyAssociatedPartyUnion = - PractitionerType - | PractitionerRoleType - | OrganizationType -union ResearchStudyNoteUnion = +type Age { + unit: String + value: String + code: String + comparator: String + extension: [Extension] + id: String + resourceType: String + system: String +} +type TimingRepeat { + resourceType: String + boundsRange: Range + countMax: String + boundsDuration: Duration + durationUnit: String + count: String + frequencyMax: String + periodMax: String + when: String + durationMax: String + id: String + timeOfDay: String + period: String + dayOfWeek: String + offset: String + frequency: String + duration: String + boundsPeriod: Period + extension: [Extension] + periodUnit: String +} +union SubstanceDefinitionCodeNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ResearchStudyRecruitmentUnion = GroupType -union ResearchStudyResultUnion = DiagnosticReportType -union ResearchStudySiteUnion = ResearchStudyType | OrganizationType -type ResearchStudyType { - region: [CodeableConcept] - title: String - condition: [CodeableConcept] - contained: [ResourceUnion] - period: Period - descriptionSummary: String - primaryPurposeType: CodeableConcept - comparisonGroup: [ResearchStudyComparisonGroup] - whyStopped: CodeableConcept - date: String - recruitment( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ResearchStudyRecruitmentUnion] - classifier: [CodeableConcept] - phase: CodeableConcept - language: String - meta: Meta - name: String - text: Narrative - result( +type SubstanceDefinitionCode { + extension: [Extension] + code: CodeableConcept + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyResultUnion] - progressStatus: [ResearchStudyProgressStatus] + ): SubstanceDefinitionCodeNoteUnion! + statusDate: String + id: String modifierExtension: [Extension] - associatedParty( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ResearchStudyAssociatedPartyUnion] - description: String - site( + resourceType: String + source( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudySiteUnion] - url: String - implicitRules: String - version: String - outcomeMeasure: [ResearchStudyOutcomeMeasure] + ): DocumentReferenceType! + status: CodeableConcept +} +type Range { id: String - identifier: [Identifier] - objective: [ResearchStudyObjective] + low: Quantity resourceType: String - keyword: [CodeableConcept] - note( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ResearchStudyNoteUnion] - status: String - label: [ResearchStudyLabel] - relatedArtifact: [RelatedArtifact] - studyDesign: [CodeableConcept] extension: [Extension] - focus: [CodeableReference] - partOf( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ResearchStudyType] + high: Quantity } -type ResearchStudyComparisonGroup { +type ResearchStudyProgressStatus { + extension: [Extension] + id: String modifierExtension: [Extension] - observedGroup( + period: Period + resourceType: String + state: CodeableConcept + actual: String +} +type LocationPosition { + extension: [Extension] + id: String + latitude: String + longitude: String + modifierExtension: [Extension] + resourceType: String + altitude: String +} +union UsageContextValueReferenceUnion = + ResearchStudyType + | GroupType + | OrganizationType +type UsageContext { + id: String + resourceType: String + valueCodeableConcept: CodeableConcept + valueQuantity: Quantity + valueRange: Range + valueReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [GroupType] - name: String + ): UsageContextValueReferenceUnion! + code: Coding + extension: [Extension] +} +type Coding { + userSelected: String + version: String + code: String + display: String + extension: [Extension] + id: String resourceType: String + system: String +} +type PractitionerType { + birthDate: String id: String - description: String - linkId: String - type: CodeableConcept + language: String + qualification: [PractitionerQualification] + address: [Address] + modifierExtension: [Extension] + active: String + contained: [ResourceUnion] + gender: String + name: [HumanName] + text: Narrative + deceasedDateTime: String extension: [Extension] -} -type SubstanceDefinitionNameOfficial { + meta: Meta + photo: [Attachment] + telecom: [ContactPoint] resourceType: String - status: CodeableConcept - authority: CodeableConcept - date: String + communication: [PractitionerCommunication] + identifier: [Identifier] + deceasedBoolean: String + implicitRules: String +} +type MedicationStatementAdherence { + code: CodeableConcept extension: [Extension] id: String modifierExtension: [Extension] -} -type Distance { + reason: CodeableConcept resourceType: String - system: String - unit: String - value: String - code: String - comparator: String +} +type Expression { + expression: String extension: [Extension] id: String + language: String + name: String + reference: String + resourceType: String + description: String } -union DocumentReferenceAttesterPartyUnion = - PatientType - | PractitionerType - | PractitionerRoleType - | OrganizationType -type DocumentReferenceAttester { - id: String - mode: CodeableConcept - modifierExtension: [Extension] - party( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [DocumentReferenceAttesterPartyUnion] +type CodeableConcept { resourceType: String - time: String + text: String + coding: [Coding] extension: [Extension] + id: String } -union ExtensionValueAnnotationUnion = +union FamilyMemberHistoryNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ExtensionValueSignatureUnion = +union FamilyMemberHistoryParticipantUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ExtensionValueUsageContextUnion = - ResearchStudyType - | GroupType - | OrganizationType -type Extension { - valueUri: String - valueInteger: String - valueAttachment: Attachment - valueParameterDefinition: ParameterDefinition - valueInteger64: String - valueHumanName: HumanName - valueAge: Age - valueCodeableConcept: CodeableConcept - valueSampledData: SampledData - valueDateTime: String - valueExtendedContactDetail: ExtendedContactDetail - valueMarkdown: String - valueTriggerDefinition: TriggerDefinition - valueString: String - valueContactPoint: ContactPoint - valueAnnotation( +type FamilyMemberHistoryType { + ageRange: Range + patient( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ExtensionValueAnnotationUnion] - valueContactDetail: ContactDetail - valueQuantity: Quantity - valueUuid: String - valueRange: Range - valueCanonical: String - valueCodeableReference: CodeableReference + ): PatientType! + name: String + deceasedBoolean: String + instantiatesUri: String + modifierExtension: [Extension] + instantiatesCanonical: String + text: Narrative id: String - valueRatio: Ratio - valueOid: String - valueRatioRange: RatioRange - valueInstant: String - valueDuration: Duration - valueRelatedArtifact: RelatedArtifact - valueSignature( + bornString: String + deceasedAge: Age + ageAge: Age + date: String + sex: CodeableConcept + language: String + contained: [ResourceUnion] + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ExtensionValueSignatureUnion] - valueDate: String - valueDosage: Dosage - valueBase64Binary: String - valuePeriod: Period - valueMoney: Money - valueIdentifier: Identifier - url: String - valueCode: String - valuePositiveInt: String - valueId: String - valueUnsignedInt: String - valueDataRequirement: DataRequirement - valueTime: String - valueCoding: Coding - valueTiming: Timing - valueExpression: Expression - valueDistance: Distance - valueCount: Count - resourceType: String - valueAvailability: Availability - valueUrl: String - valueBoolean: String - valueDecimal: String - valueMeta: Meta - valueAddress: Address - valueUsageContext( + ): FamilyMemberHistoryNoteUnion! + reason: [CodeableReference] + relationship: CodeableConcept + condition: [FamilyMemberHistoryCondition] + extension: [Extension] + meta: Meta + deceasedString: String + status: String + ageString: String + identifier: [Identifier] + participant( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ExtensionValueUsageContextUnion] - extension: [Extension] -} -type OrganizationType { - name: String - contact: [ExtendedContactDetail] + ): FamilyMemberHistoryParticipantUnion! + deceasedDate: String + estimatedAge: String + dataAbsentReason: CodeableConcept + procedure: [FamilyMemberHistoryProcedure] + bornPeriod: Period implicitRules: String - type: [CodeableConcept] + deceasedRange: Range + resourceType: String + bornDate: String +} +type SubstanceDefinitionProperty { extension: [Extension] - text: Narrative - language: String + modifierExtension: [Extension] + valueAttachment: Attachment + valueCodeableConcept: CodeableConcept + valueDate: String resourceType: String - partOf( + type: CodeableConcept + valueQuantity: Quantity + id: String + valueBoolean: String +} +type BodyStructureType { + description: String + implicitRules: String + patient( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - alias: String - contained: [ResourceUnion] + ): PatientType! + language: String meta: Meta - id: String - qualification: [OrganizationQualification] - description: String modifierExtension: [Extension] + includedStructure: [BodyStructureIncludedStructure] + text: Narrative + contained: [ResourceUnion] + excludedStructure: [BodyStructureIncludedStructure] identifier: [Identifier] + id: String active: String -} -type OrganizationQualification { + morphology: CodeableConcept extension: [Extension] - id: String - identifier: [Identifier] - issuer( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [OrganizationType] - modifierExtension: [Extension] - period: Period resourceType: String - code: CodeableConcept + image: [Attachment] } -type Quantity { - code: String - comparator: String +type MedicationAdministrationDosage { + route: CodeableConcept + text: String extension: [Extension] + method: CodeableConcept + rateQuantity: Quantity + rateRatio: Ratio id: String + dose: Quantity resourceType: String - system: String - unit: String - value: String + site: CodeableConcept + modifierExtension: [Extension] } -type BodyStructureType { - patient( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [PatientType] - contained: [ResourceUnion] +type BodyStructureIncludedStructure { + laterality: CodeableConcept modifierExtension: [Extension] - active: String - identifier: [Identifier] - image: [Attachment] + qualifier: [CodeableConcept] + resourceType: String + structure: CodeableConcept + bodyLandmarkOrientation: [BodyStructureIncludedStructureBodyLandmarkOrientation] extension: [Extension] - excludedStructure: [BodyStructureIncludedStructure] + id: String +} +type SubstanceDefinitionSourceMaterial { resourceType: String + extension: [Extension] + genus: CodeableConcept id: String - meta: Meta - includedStructure: [BodyStructureIncludedStructure] - implicitRules: String - morphology: CodeableConcept - text: Narrative - description: String - language: String + species: CodeableConcept + type: CodeableConcept + countryOfOrigin: [CodeableConcept] + modifierExtension: [Extension] + part: CodeableConcept } -union ImagingStudySeriesPerformerActorUnion = +union ResearchStudyAssociatedPartyPartyUnion = PractitionerType | PractitionerRoleType | OrganizationType - | PatientType -type ImagingStudySeriesPerformer { - modifierExtension: [Extension] - resourceType: String - actor( +type ResearchStudyAssociatedParty { + extension: [Extension] + id: String + party( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudySeriesPerformerActorUnion] - extension: [Extension] - function: CodeableConcept - id: String -} -type Meta { - profile: String - security: [Coding] - source: String - tag: [Coding] - versionId: String - lastUpdated: String - resourceType: String - extension: [Extension] - id: String -} -type SubstanceDefinitionCharacterization { + ): ResearchStudyAssociatedPartyPartyUnion! + role: CodeableConcept modifierExtension: [Extension] resourceType: String - technique: CodeableConcept - description: String - extension: [Extension] - file: [Attachment] - form: CodeableConcept - id: String + period: [Period] + name: String + classifier: [CodeableConcept] } -union DiagnosticReportNoteUnion = +union ProcedureNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union DiagnosticReportSupportingInfoUnion = - ProcedureType - | ObservationType - | DiagnosticReportType -union DiagnosticReportBasedOnUnion = MedicationRequestType -union DiagnosticReportPerformerUnion = +union ProcedurePerformerUnion = PractitionerType | PractitionerRoleType | OrganizationType -union DiagnosticReportResultsInterpreterUnion = - PractitionerType + | PatientType +union ProcedureFocusUnion = + PatientType + | GroupType + | PractitionerType + | OrganizationType + | PractitionerRoleType + | SpecimenType +union ProcedurePartOfUnion = + ProcedureType + | ObservationType + | MedicationAdministrationType +union ProcedureRecorderUnion = + PatientType + | PractitionerType + | PractitionerRoleType +union ProcedureReportUnion = DiagnosticReportType | DocumentReferenceType +union ProcedureReportedReferenceUnion = + PatientType + | PractitionerType | PractitionerRoleType | OrganizationType -union DiagnosticReportStudyUnion = ImagingStudyType -union DiagnosticReportSubjectUnion = +union ProcedureSubjectUnion = PatientType | GroupType - | OrganizationType | PractitionerType - | MedicationType - | SubstanceType -type DiagnosticReportType { - result( + | OrganizationType +type ProcedureType { + recorder( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationType] - implicitRules: String - language: String - performer( + ): ProcedureRecorderUnion! + report( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportPerformerUnion] - presentedForm: [Attachment] - text: Narrative - subject( + ): ProcedureReportUnion! + implicitRules: String + meta: Meta + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportSubjectUnion] - specimen( + ): ProcedureNoteUnion! + bodySite: [CodeableConcept] + instantiatesUri: String + occurrenceTiming: Timing + occurrenceAge: Age + occurrenceDateTime: String + reportedBoolean: String + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenType] - identifier: [Identifier] - code: CodeableConcept - effectiveDateTime: String - media: [DiagnosticReportMedia] - effectivePeriod: Period - study( + ): ProcedureSubjectUnion! + occurrenceRange: Range + modifierExtension: [Extension] + resourceType: String + contained: [ResourceUnion] + text: Narrative + status: String + reportedReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportStudyUnion] - resourceType: String - meta: Meta - contained: [ResourceUnion] - id: String - note( + ): ProcedureReportedReferenceUnion! + reason: [CodeableReference] + outcome: CodeableConcept + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportNoteUnion] - modifierExtension: [Extension] - basedOn( + ): ProcedurePartOfUnion! + used: [CodeableReference] + code: CodeableConcept + identifier: [Identifier] + category: [CodeableConcept] + supportingInfo( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportBasedOnUnion] - conclusionCode: [CodeableConcept] - supportingInfo( + ): ResourceUnion! + language: String + focalDevice: [ProcedureFocalDevice] + id: String + occurrenceString: String + recorded: String + performer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportSupportingInfoUnion] - conclusion: String - status: String + ): ProcedurePerformerUnion! + statusReason: CodeableConcept + followUp: [CodeableConcept] + complication: [CodeableReference] extension: [Extension] - category: [CodeableConcept] - issued: String - resultsInterpreter( + focus( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportResultsInterpreterUnion] -} -type DataRequirementDateFilter { - id: String - path: String - resourceType: String - searchParam: String - valueDateTime: String - valueDuration: Duration - valuePeriod: Period - extension: [Extension] -} -type ImagingStudySeriesInstance { - sopClass: Coding - title: String - uid: String - extension: [Extension] - id: String - modifierExtension: [Extension] - number: String - resourceType: String -} -type Timing { - repeat: TimingRepeat - resourceType: String - code: CodeableConcept - event: String - extension: [Extension] - id: String - modifierExtension: [Extension] + ): ProcedureFocusUnion! + occurrencePeriod: Period + instantiatesCanonical: String } -union AnnotationAuthorReferenceUnion = - PractitionerType +union DocumentReferenceAttesterPartyUnion = + PatientType + | PractitionerType | PractitionerRoleType - | PatientType | OrganizationType -type Annotation { - authorString: String +type DocumentReferenceAttester { + time: String extension: [Extension] id: String - resourceType: String - text: String - time: String - authorReference( + mode: CodeableConcept + modifierExtension: [Extension] + party( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [AnnotationAuthorReferenceUnion] + ): DocumentReferenceAttesterPartyUnion! + resourceType: String } -union DiagnosticReportSupportingInfoReferenceUnion = - ProcedureType - | ObservationType - | DiagnosticReportType -type DiagnosticReportSupportingInfo { +type PractitionerRoleType { + communication: [CodeableConcept] + active: String id: String - modifierExtension: [Extension] - reference( + organization( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportSupportingInfoReferenceUnion] - resourceType: String - type: CodeableConcept + ): OrganizationType! + contained: [ResourceUnion] extension: [Extension] -} -type ExtendedContactDetail { - name: [HumanName] - organization( + period: Period + code: [CodeableConcept] + modifierExtension: [Extension] + specialty: [CodeableConcept] + resourceType: String + identifier: [Identifier] + implicitRules: String + language: String + meta: Meta + contact: [ExtendedContactDetail] + text: Narrative + practitioner( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - purpose: CodeableConcept - resourceType: String - telecom: [ContactPoint] - address: Address + ): PractitionerType! + availability: [Availability] + characteristic: [CodeableConcept] +} +type DocumentReferenceContentProfile { + extension: [Extension] id: String + modifierExtension: [Extension] + resourceType: String + valueCanonical: String + valueCoding: Coding + valueUri: String +} +type Ratio { + denominator: Quantity extension: [Extension] - period: Period + id: String + numerator: Quantity + resourceType: String } -type Money { - currency: String +type ObservationTriggeredBy { + type: String extension: [Extension] id: String + modifierExtension: [Extension] + observation( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ObservationType! + reason: String resourceType: String - value: String } -type SubstanceDefinitionMoiety { - measurementType: CodeableConcept - name: String - amountString: String +type MedicationRequestSubstitution { extension: [Extension] - identifier: Identifier - molecularFormula: String - opticalActivity: CodeableConcept - stereochemistry: CodeableConcept - role: CodeableConcept id: String modifierExtension: [Extension] + reason: CodeableConcept resourceType: String - amountQuantity: Quantity + allowedBoolean: String + allowedCodeableConcept: CodeableConcept } -union TaskOutputValueAnnotationUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union TaskOutputValueSignatureUnion = - PractitionerType +type Encounter { + meta: Meta + text: Narrative + plannedEndDate: String + language: String + reason: [EncounterReason] + status: String + resourceType: String + virtualService: [VirtualServiceDetail] + subjectStatus: CodeableConcept + specialArrangement: [CodeableConcept] + admission: EncounterAdmission + specialCourtesy: [CodeableConcept] + identifier: [Identifier] + class: [CodeableConcept] + implicitRules: String + plannedStartDate: String + modifierExtension: [Extension] + contained: [ResourceUnion] + extension: [Extension] + priority: CodeableConcept + diagnosis: [EncounterDiagnosis] + serviceType: [CodeableReference] + length: Duration + participant: [EncounterParticipant] + type: [CodeableConcept] + location: [EncounterLocation] + dietPreference: [CodeableConcept] + actualPeriod: Period + id: String +} +union TaskRestrictionRecipientUnion = + PatientType + | PractitionerType | PractitionerRoleType - | PatientType - | OrganizationType -union TaskOutputValueUsageContextUnion = - ResearchStudyType | GroupType | OrganizationType -type TaskOutput { - valuePeriod: Period +type TaskRestriction { + repetitions: String + resourceType: String + extension: [Extension] id: String - valueString: String - valueOid: String - valueRatio: Ratio - valueAge: Age - valueSampledData: SampledData - valueBase64Binary: String - valueMeta: Meta - valueSignature( + modifierExtension: [Extension] + period: Period + recipient( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskOutputValueSignatureUnion] - valueTime: String - valueDistance: Distance - valueDate: String - valueTiming: Timing - valueAnnotation( - offset: Int + ): TaskRestrictionRecipientUnion! +} +union FamilyMemberHistoryProcedureNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryProcedure { + note( + offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskOutputValueAnnotationUnion] - valueCanonical: String - valueMarkdown: String - valueUrl: String - valueContactDetail: ContactDetail - valueCodeableConcept: CodeableConcept - valueUuid: String - valueInstant: String - valueExpression: Expression - valueUnsignedInt: String - type: CodeableConcept - valueParameterDefinition: ParameterDefinition - valueMoney: Money + ): FamilyMemberHistoryProcedureNoteUnion! + outcome: CodeableConcept + performedDateTime: String + contributedToDeath: String + resourceType: String + performedPeriod: Period + performedString: String + id: String extension: [Extension] - valueExtendedContactDetail: ExtendedContactDetail - valueCode: String - valueIdentifier: Identifier - valueHumanName: HumanName - valueDuration: Duration - valueInteger64: String - valueUri: String - valueContactPoint: ContactPoint - valueCount: Count - valueCodeableReference: CodeableReference - valueRelatedArtifact: RelatedArtifact - valueId: String - valueDosage: Dosage - valueBoolean: String - valueAttachment: Attachment - valueTriggerDefinition: TriggerDefinition + modifierExtension: [Extension] + performedAge: Age + performedRange: Range + code: CodeableConcept +} +type EncounterLocation { + id: String + modifierExtension: [Extension] + period: Period resourceType: String - valuePositiveInt: String - valueRange: Range - valueAddress: Address - valueInteger: String - valueAvailability: Availability - valueUsageContext( + status: String + extension: [Extension] + form: CodeableConcept +} +type EncounterAdmission { + admitSource: CodeableConcept + dischargeDisposition: CodeableConcept + extension: [Extension] + id: String + modifierExtension: [Extension] + preAdmissionIdentifier: Identifier + reAdmission: CodeableConcept + resourceType: String +} +type Identifier { + extension: [Extension] + resourceType: String + use: String + assigner( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskOutputValueUsageContextUnion] - valueDateTime: String - valueDataRequirement: DataRequirement - modifierExtension: [Extension] - valueCoding: Coding - valueRatioRange: RatioRange - valueDecimal: String - valueQuantity: Quantity + ): OrganizationType! + period: Period + type: CodeableConcept + value: String + id: String + system: String } -type BodyStructureIncludedStructureBodyLandmarkOrientation { +type RelatedArtifact { + type: String + resource: String + resourceReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResourceUnion! + extension: [Extension] id: String - landmarkDescription: [CodeableConcept] - modifierExtension: [Extension] + label: String + document: Attachment + publicationStatus: String resourceType: String - surfaceOrientation: [CodeableConcept] - clockFacePosition: [CodeableConcept] - distanceFromLandmark: [BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark] - extension: [Extension] + classifier: [CodeableConcept] + publicationDate: String + citation: String + display: String } type EncounterParticipant { id: String @@ -20314,94 +20174,218 @@ type EncounterParticipant { type: [CodeableConcept] extension: [Extension] } -type SpecimenProcessing { - timePeriod: Period - additive( +union ConditionParticipantActorUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type ConditionParticipant { + modifierExtension: [Extension] + resourceType: String + actor( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ConditionParticipantActorUnion! + extension: [Extension] + function: CodeableConcept + id: String +} +union SpecimenCollectionCollectorUnion = + PractitionerType + | PractitionerRoleType + | PatientType +type SpecimenCollection { + extension: [Extension] + fastingStatusDuration: Duration + collector( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SubstanceType] + ): SpecimenCollectionCollectorUnion! + fastingStatusCodeableConcept: CodeableConcept + procedure( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ProcedureType! + resourceType: String + id: String + quantity: Quantity + bodySite: CodeableReference + collectedDateTime: String + collectedPeriod: Period + modifierExtension: [Extension] + method: CodeableConcept + device: CodeableReference + duration: Duration +} +type Quantity { + code: String + comparator: String + extension: [Extension] + id: String + resourceType: String + system: String + unit: String + value: String +} +type ResearchStudyComparisonGroup { + resourceType: String + extension: [Extension] + linkId: String modifierExtension: [Extension] + id: String + name: String + observedGroup( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): GroupType! + type: CodeableConcept description: String +} +type DataRequirementValueFilter { + comparator: String + extension: [Extension] id: String resourceType: String - method: CodeableConcept - timeDateTime: String + searchParam: String + valueDuration: Duration + path: String + valueDateTime: String + valuePeriod: Period +} +type SubstanceDefinitionRelationship { + isDefining: String + substanceDefinitionCodeableConcept: CodeableConcept extension: [Extension] + amountQuantity: Quantity + id: String + modifierExtension: [Extension] + amountString: String + source( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): DocumentReferenceType! + comparator: CodeableConcept + resourceType: String + ratioHighLimitAmount: Ratio + type: CodeableConcept + substanceDefinitionReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): SubstanceDefinitionType! + amountRatio: Ratio } -union TaskOwnerUnion = - PractitionerType - | PractitionerRoleType +type Money { + currency: String + extension: [Extension] + id: String + resourceType: String + value: String +} +union ObservationSpecimenUnion = SpecimenType | GroupType +union ObservationSubjectUnion = + PatientType + | GroupType | OrganizationType - | PatientType -union TaskRequesterUnion = - OrganizationType - | PatientType + | ProcedureType | PractitionerType - | PractitionerRoleType -union TaskNoteUnion = + | MedicationType + | SubstanceType +union ObservationNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union TaskPerformerUnion = +union ObservationBasedOnUnion = MedicationRequestType +union ObservationDerivedFromUnion = + DocumentReferenceType + | ImagingStudyType + | ObservationType +union ObservationHasMemberUnion = ObservationType +union ObservationPartOfUnion = + MedicationAdministrationType + | MedicationStatementType + | ProcedureType + | ImagingStudyType +union ObservationPerformerUnion = PractitionerType | PractitionerRoleType | OrganizationType | PatientType -union TaskRestrictionUnion = - PatientType - | PractitionerType - | PractitionerRoleType - | GroupType - | OrganizationType -type TaskType { - input: [TaskInput] - basedOn( +type ObservationType { + bodyStructure( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - output: [TaskOutput] - lastModified: String - authoredOn: String - modifierExtension: [Extension] - requester( + ): BodyStructureType! + dataAbsentReason: CodeableConcept + effectiveInstant: String + effectivePeriod: Period + identifier: [Identifier] + meta: Meta + issued: String + method: CodeableConcept + valueTime: String + contained: [ResourceUnion] + valueInteger: String + referenceRange: [ObservationReferenceRange] + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskRequesterUnion] - intent: String - partOf( + ): ObservationNoteUnion! + text: Narrative + resourceType: String + valueDateTime: String + valueString: String + valueQuantity: Quantity + effectiveDateTime: String + hasMember( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskType] - businessStatus: CodeableConcept - resourceType: String - code: CodeableConcept - instantiatesUri: String + ): ObservationHasMemberUnion! instantiatesCanonical: String - reason: [CodeableReference] - contained: [ResourceUnion] - requestedPeriod: Period - groupIdentifier: Identifier - priority: String - text: Narrative - identifier: [Identifier] - description: String + focus( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResourceUnion! performer( offset: Int first: Int @@ -20409,59 +20393,75 @@ type TaskType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskPerformerUnion] - id: String + ): ObservationPerformerUnion! + valueSampledData: SampledData implicitRules: String - meta: Meta - restriction( + language: String + valueCodeableConcept: CodeableConcept + code: CodeableConcept + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskRestrictionUnion] - note( + ): ObservationPartOfUnion! + status: String + category: [CodeableConcept] + triggeredBy: [ObservationTriggeredBy] + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskNoteUnion] - executionPeriod: Period - language: String - requestedPerformer: [CodeableReference] - status: String - extension: [Extension] - focus( + ): ObservationSubjectUnion! + derivedFrom( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): ResourceUnion - owner( + ): ObservationDerivedFromUnion! + modifierExtension: [Extension] + bodySite: CodeableConcept + valueRatio: Ratio + basedOn( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskOwnerUnion] - statusReason: CodeableReference - doNotPerform: String + ): ObservationBasedOnUnion! + component: [ObservationComponent] + valueAttachment: Attachment + valueRange: Range + valuePeriod: Period + specimen( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ObservationSpecimenUnion! + effectiveTiming: Timing + id: String + interpretation: [CodeableConcept] + valueBoolean: String + extension: [Extension] } -type EncounterAdmission { +type DocumentReferenceContent { extension: [Extension] id: String modifierExtension: [Extension] - preAdmissionIdentifier: Identifier - reAdmission: CodeableConcept + profile: [DocumentReferenceContentProfile] resourceType: String - admitSource: CodeableConcept - dischargeDisposition: CodeableConcept + attachment: Attachment } union ResourceUnion = OrganizationType @@ -20647,7 +20647,7 @@ type Query { sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskType] + ): [TaskType!]! imagingStudy( offset: Int first: Int @@ -50344,8 +50344,8 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( // region **************************** field.gotpl ***************************** -func (ec *executionContext) _Address_text(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_text(ctx, field) +func (ec *executionContext) _Address_country(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_country(ctx, field) if err != nil { return graphql.Null } @@ -50358,7 +50358,7 @@ func (ec *executionContext) _Address_text(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Country, nil }) if err != nil { ec.Error(ctx, err) @@ -50372,7 +50372,7 @@ func (ec *executionContext) _Address_text(ctx context.Context, field graphql.Col return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_country(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, @@ -50385,8 +50385,8 @@ func (ec *executionContext) fieldContext_Address_text(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Address_use(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_use(ctx, field) +func (ec *executionContext) _Address_extension(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_extension(ctx, field) if err != nil { return graphql.Null } @@ -50399,7 +50399,7 @@ func (ec *executionContext) _Address_use(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Use, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -50408,26 +50408,142 @@ func (ec *executionContext) _Address_use(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _Address_id(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_id(ctx, field) +func (ec *executionContext) _Address_use(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_use(ctx, field) if err != nil { return graphql.Null } @@ -50440,7 +50556,7 @@ func (ec *executionContext) _Address_id(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Use, nil }) if err != nil { ec.Error(ctx, err) @@ -50454,7 +50570,7 @@ func (ec *executionContext) _Address_id(ctx context.Context, field graphql.Colle return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, @@ -50467,8 +50583,8 @@ func (ec *executionContext) fieldContext_Address_id(_ context.Context, field gra return fc, nil } -func (ec *executionContext) _Address_line(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_line(ctx, field) +func (ec *executionContext) _Address_district(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_district(ctx, field) if err != nil { return graphql.Null } @@ -50481,7 +50597,7 @@ func (ec *executionContext) _Address_line(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Line, nil + return obj.District, nil }) if err != nil { ec.Error(ctx, err) @@ -50495,7 +50611,7 @@ func (ec *executionContext) _Address_line(ctx context.Context, field graphql.Col return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_line(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_district(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, @@ -50508,8 +50624,8 @@ func (ec *executionContext) fieldContext_Address_line(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Address_country(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_country(ctx, field) +func (ec *executionContext) _Address_period(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_period(ctx, field) if err != nil { return graphql.Null } @@ -50522,7 +50638,7 @@ func (ec *executionContext) _Address_country(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Country, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -50531,26 +50647,38 @@ func (ec *executionContext) _Address_country(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_country(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _Address_postalCode(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_postalCode(ctx, field) +func (ec *executionContext) _Address_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -50563,7 +50691,7 @@ func (ec *executionContext) _Address_postalCode(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PostalCode, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -50577,7 +50705,7 @@ func (ec *executionContext) _Address_postalCode(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_postalCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, @@ -50590,8 +50718,8 @@ func (ec *executionContext) fieldContext_Address_postalCode(_ context.Context, f return fc, nil } -func (ec *executionContext) _Address_state(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_state(ctx, field) +func (ec *executionContext) _Address_text(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_text(ctx, field) if err != nil { return graphql.Null } @@ -50604,7 +50732,7 @@ func (ec *executionContext) _Address_state(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.State, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -50618,7 +50746,7 @@ func (ec *executionContext) _Address_state(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, @@ -50672,8 +50800,8 @@ func (ec *executionContext) fieldContext_Address_city(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Address_district(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_district(ctx, field) +func (ec *executionContext) _Address_postalCode(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_postalCode(ctx, field) if err != nil { return graphql.Null } @@ -50686,7 +50814,7 @@ func (ec *executionContext) _Address_district(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.District, nil + return obj.PostalCode, nil }) if err != nil { ec.Error(ctx, err) @@ -50700,7 +50828,7 @@ func (ec *executionContext) _Address_district(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_district(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_postalCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, @@ -50713,8 +50841,8 @@ func (ec *executionContext) fieldContext_Address_district(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Address_period(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_period(ctx, field) +func (ec *executionContext) _Address_line(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_line(ctx, field) if err != nil { return graphql.Null } @@ -50727,7 +50855,7 @@ func (ec *executionContext) _Address_period(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.Line, nil }) if err != nil { ec.Error(ctx, err) @@ -50736,38 +50864,26 @@ func (ec *executionContext) _Address_period(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_line(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Address_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_resourceType(ctx, field) +func (ec *executionContext) _Address_state(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_state(ctx, field) if err != nil { return graphql.Null } @@ -50780,7 +50896,7 @@ func (ec *executionContext) _Address_resourceType(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.State, nil }) if err != nil { ec.Error(ctx, err) @@ -50794,7 +50910,7 @@ func (ec *executionContext) _Address_resourceType(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, @@ -50848,8 +50964,8 @@ func (ec *executionContext) fieldContext_Address_type(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Address_extension(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Address_extension(ctx, field) +func (ec *executionContext) _Address_id(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_id(ctx, field) if err != nil { return graphql.Null } @@ -50862,7 +50978,7 @@ func (ec *executionContext) _Address_extension(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -50871,135 +50987,101 @@ func (ec *executionContext) _Address_extension(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Address_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Address_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Address", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Age_unit(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Age_unit(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Unit, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Age_unit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Age", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Age_value(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Age_value(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Value, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Age_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Age", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -51123,120 +51205,120 @@ func (ec *executionContext) fieldContext_Age_extension(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -51367,8 +51449,8 @@ func (ec *executionContext) fieldContext_Age_system(_ context.Context, field gra return fc, nil } -func (ec *executionContext) _Age_unit(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Age_unit(ctx, field) +func (ec *executionContext) _Annotation_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Annotation_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -51381,7 +51463,7 @@ func (ec *executionContext) _Age_unit(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Unit, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -51395,9 +51477,9 @@ func (ec *executionContext) _Age_unit(ctx context.Context, field graphql.Collect return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Age_unit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Annotation_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Age", + Object: "Annotation", Field: field, IsMethod: false, IsResolver: false, @@ -51408,8 +51490,8 @@ func (ec *executionContext) fieldContext_Age_unit(_ context.Context, field graph return fc, nil } -func (ec *executionContext) _Age_value(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Age_value(ctx, field) +func (ec *executionContext) _Annotation_text(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Annotation_text(ctx, field) if err != nil { return graphql.Null } @@ -51422,7 +51504,7 @@ func (ec *executionContext) _Age_value(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Value, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -51436,9 +51518,50 @@ func (ec *executionContext) _Age_value(ctx context.Context, field graphql.Collec return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Age_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Annotation_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Age", + Object: "Annotation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Annotation_time(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Annotation_time(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Time, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Annotation_time(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Annotation", Field: field, IsMethod: false, IsResolver: false, @@ -51449,6 +51572,61 @@ func (ec *executionContext) fieldContext_Age_value(_ context.Context, field grap return fc, nil } +func (ec *executionContext) _Annotation_authorReference(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Annotation_authorReference(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AuthorReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.AnnotationAuthorReferenceUnion) + fc.Result = res + return ec.marshalNAnnotationAuthorReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotationAuthorReferenceUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Annotation_authorReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Annotation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type AnnotationAuthorReferenceUnion does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Annotation_authorReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + func (ec *executionContext) _Annotation_authorString(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Annotation_authorString(ctx, field) if err != nil { @@ -51526,120 +51704,120 @@ func (ec *executionContext) fieldContext_Annotation_extension(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -51688,8 +51866,8 @@ func (ec *executionContext) fieldContext_Annotation_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _Annotation_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Annotation_resourceType(ctx, field) +func (ec *executionContext) _Attachment_frames(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_frames(ctx, field) if err != nil { return graphql.Null } @@ -51702,7 +51880,7 @@ func (ec *executionContext) _Annotation_resourceType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Frames, nil }) if err != nil { ec.Error(ctx, err) @@ -51716,9 +51894,9 @@ func (ec *executionContext) _Annotation_resourceType(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Annotation_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_frames(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Annotation", + Object: "Attachment", Field: field, IsMethod: false, IsResolver: false, @@ -51729,8 +51907,8 @@ func (ec *executionContext) fieldContext_Annotation_resourceType(_ context.Conte return fc, nil } -func (ec *executionContext) _Annotation_text(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Annotation_text(ctx, field) +func (ec *executionContext) _Attachment_size(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_size(ctx, field) if err != nil { return graphql.Null } @@ -51743,7 +51921,7 @@ func (ec *executionContext) _Annotation_text(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Size, nil }) if err != nil { ec.Error(ctx, err) @@ -51757,9 +51935,9 @@ func (ec *executionContext) _Annotation_text(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Annotation_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_size(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Annotation", + Object: "Attachment", Field: field, IsMethod: false, IsResolver: false, @@ -51770,8 +51948,8 @@ func (ec *executionContext) fieldContext_Annotation_text(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Annotation_time(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Annotation_time(ctx, field) +func (ec *executionContext) _Attachment_title(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_title(ctx, field) if err != nil { return graphql.Null } @@ -51784,7 +51962,7 @@ func (ec *executionContext) _Annotation_time(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Time, nil + return obj.Title, nil }) if err != nil { ec.Error(ctx, err) @@ -51798,9 +51976,9 @@ func (ec *executionContext) _Annotation_time(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Annotation_time(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Annotation", + Object: "Attachment", Field: field, IsMethod: false, IsResolver: false, @@ -51811,8 +51989,8 @@ func (ec *executionContext) fieldContext_Annotation_time(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Annotation_authorReference(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Annotation_authorReference(ctx, field) +func (ec *executionContext) _Attachment_creation(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_creation(ctx, field) if err != nil { return graphql.Null } @@ -51825,7 +52003,7 @@ func (ec *executionContext) _Annotation_authorReference(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthorReference, nil + return obj.Creation, nil }) if err != nil { ec.Error(ctx, err) @@ -51834,37 +52012,26 @@ func (ec *executionContext) _Annotation_authorReference(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]model.AnnotationAuthorReferenceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAnnotationAuthorReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotationAuthorReferenceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Annotation_authorReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_creation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Annotation", + Object: "Attachment", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AnnotationAuthorReferenceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Annotation_authorReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Attachment_width(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_width(ctx, field) +func (ec *executionContext) _Attachment_height(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_height(ctx, field) if err != nil { return graphql.Null } @@ -51877,7 +52044,7 @@ func (ec *executionContext) _Attachment_width(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Width, nil + return obj.Height, nil }) if err != nil { ec.Error(ctx, err) @@ -51891,7 +52058,7 @@ func (ec *executionContext) _Attachment_width(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_width(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_height(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -51904,8 +52071,8 @@ func (ec *executionContext) fieldContext_Attachment_width(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Attachment_pages(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_pages(ctx, field) +func (ec *executionContext) _Attachment_data(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_data(ctx, field) if err != nil { return graphql.Null } @@ -51918,7 +52085,7 @@ func (ec *executionContext) _Attachment_pages(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Pages, nil + return obj.Data, nil }) if err != nil { ec.Error(ctx, err) @@ -51932,7 +52099,7 @@ func (ec *executionContext) _Attachment_pages(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_pages(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -51945,8 +52112,8 @@ func (ec *executionContext) fieldContext_Attachment_pages(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Attachment_extension(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_extension(ctx, field) +func (ec *executionContext) _Attachment_language(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_language(ctx, field) if err != nil { return graphql.Null } @@ -51959,7 +52126,7 @@ func (ec *executionContext) _Attachment_extension(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -51968,169 +52135,12 @@ func (ec *executionContext) _Attachment_extension(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Attachment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Attachment_data(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_data(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Data, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Attachment_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -52143,8 +52153,8 @@ func (ec *executionContext) fieldContext_Attachment_data(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Attachment_size(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_size(ctx, field) +func (ec *executionContext) _Attachment_hash(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_hash(ctx, field) if err != nil { return graphql.Null } @@ -52157,7 +52167,7 @@ func (ec *executionContext) _Attachment_size(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Size, nil + return obj.Hash, nil }) if err != nil { ec.Error(ctx, err) @@ -52171,7 +52181,7 @@ func (ec *executionContext) _Attachment_size(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_size(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -52184,8 +52194,8 @@ func (ec *executionContext) fieldContext_Attachment_size(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Attachment_duration(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_duration(ctx, field) +func (ec *executionContext) _Attachment_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -52198,7 +52208,7 @@ func (ec *executionContext) _Attachment_duration(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Duration, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -52212,7 +52222,7 @@ func (ec *executionContext) _Attachment_duration(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_duration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -52225,8 +52235,8 @@ func (ec *executionContext) fieldContext_Attachment_duration(_ context.Context, return fc, nil } -func (ec *executionContext) _Attachment_title(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_title(ctx, field) +func (ec *executionContext) _Attachment_extension(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_extension(ctx, field) if err != nil { return graphql.Null } @@ -52239,7 +52249,7 @@ func (ec *executionContext) _Attachment_title(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Title, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -52248,26 +52258,142 @@ func (ec *executionContext) _Attachment_title(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _Attachment_creation(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_creation(ctx, field) +func (ec *executionContext) _Attachment_pages(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_pages(ctx, field) if err != nil { return graphql.Null } @@ -52280,7 +52406,7 @@ func (ec *executionContext) _Attachment_creation(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Creation, nil + return obj.Pages, nil }) if err != nil { ec.Error(ctx, err) @@ -52294,7 +52420,7 @@ func (ec *executionContext) _Attachment_creation(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_creation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_pages(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -52307,8 +52433,8 @@ func (ec *executionContext) fieldContext_Attachment_creation(_ context.Context, return fc, nil } -func (ec *executionContext) _Attachment_height(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_height(ctx, field) +func (ec *executionContext) _Attachment_duration(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_duration(ctx, field) if err != nil { return graphql.Null } @@ -52321,7 +52447,7 @@ func (ec *executionContext) _Attachment_height(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Height, nil + return obj.Duration, nil }) if err != nil { ec.Error(ctx, err) @@ -52335,7 +52461,7 @@ func (ec *executionContext) _Attachment_height(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_height(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_duration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -52348,8 +52474,8 @@ func (ec *executionContext) fieldContext_Attachment_height(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Attachment_frames(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_frames(ctx, field) +func (ec *executionContext) _Attachment_contentType(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_contentType(ctx, field) if err != nil { return graphql.Null } @@ -52362,7 +52488,7 @@ func (ec *executionContext) _Attachment_frames(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Frames, nil + return obj.ContentType, nil }) if err != nil { ec.Error(ctx, err) @@ -52376,7 +52502,7 @@ func (ec *executionContext) _Attachment_frames(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_frames(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_contentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -52389,8 +52515,8 @@ func (ec *executionContext) fieldContext_Attachment_frames(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Attachment_hash(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_hash(ctx, field) +func (ec *executionContext) _Attachment_id(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_id(ctx, field) if err != nil { return graphql.Null } @@ -52403,7 +52529,7 @@ func (ec *executionContext) _Attachment_hash(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hash, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -52417,7 +52543,7 @@ func (ec *executionContext) _Attachment_hash(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -52471,49 +52597,8 @@ func (ec *executionContext) fieldContext_Attachment_url(_ context.Context, field return fc, nil } -func (ec *executionContext) _Attachment_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Attachment_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Attachment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Attachment_id(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_id(ctx, field) +func (ec *executionContext) _Attachment_width(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_width(ctx, field) if err != nil { return graphql.Null } @@ -52526,7 +52611,7 @@ func (ec *executionContext) _Attachment_id(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Width, nil }) if err != nil { ec.Error(ctx, err) @@ -52540,7 +52625,7 @@ func (ec *executionContext) _Attachment_id(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Attachment_width(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Attachment", Field: field, @@ -52553,8 +52638,8 @@ func (ec *executionContext) fieldContext_Attachment_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _Attachment_contentType(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_contentType(ctx, field) +func (ec *executionContext) _Availability_notAvailableTime(ctx context.Context, field graphql.CollectedField, obj *model.Availability) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Availability_notAvailableTime(ctx, field) if err != nil { return graphql.Null } @@ -52567,7 +52652,7 @@ func (ec *executionContext) _Attachment_contentType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ContentType, nil + return obj.NotAvailableTime, nil }) if err != nil { ec.Error(ctx, err) @@ -52576,26 +52661,38 @@ func (ec *executionContext) _Attachment_contentType(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.AvailabilityNotAvailableTime) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOAvailabilityNotAvailableTime2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityNotAvailableTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_contentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Availability_notAvailableTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Attachment", + Object: "Availability", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "during": + return ec.fieldContext_AvailabilityNotAvailableTime_during(ctx, field) + case "extension": + return ec.fieldContext_AvailabilityNotAvailableTime_extension(ctx, field) + case "id": + return ec.fieldContext_AvailabilityNotAvailableTime_id(ctx, field) + case "resourceType": + return ec.fieldContext_AvailabilityNotAvailableTime_resourceType(ctx, field) + case "description": + return ec.fieldContext_AvailabilityNotAvailableTime_description(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AvailabilityNotAvailableTime", field.Name) }, } return fc, nil } -func (ec *executionContext) _Attachment_language(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Attachment_language(ctx, field) +func (ec *executionContext) _Availability_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Availability) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Availability_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -52608,7 +52705,7 @@ func (ec *executionContext) _Attachment_language(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -52622,9 +52719,9 @@ func (ec *executionContext) _Attachment_language(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Attachment_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Availability_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Attachment", + Object: "Availability", Field: field, IsMethod: false, IsResolver: false, @@ -52728,120 +52825,120 @@ func (ec *executionContext) fieldContext_Availability_extension(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -52890,100 +52987,6 @@ func (ec *executionContext) fieldContext_Availability_id(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Availability_notAvailableTime(ctx context.Context, field graphql.CollectedField, obj *model.Availability) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Availability_notAvailableTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NotAvailableTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.AvailabilityNotAvailableTime) - fc.Result = res - return ec.marshalOAvailabilityNotAvailableTime2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityNotAvailableTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Availability_notAvailableTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Availability", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_AvailabilityNotAvailableTime_resourceType(ctx, field) - case "description": - return ec.fieldContext_AvailabilityNotAvailableTime_description(ctx, field) - case "during": - return ec.fieldContext_AvailabilityNotAvailableTime_during(ctx, field) - case "extension": - return ec.fieldContext_AvailabilityNotAvailableTime_extension(ctx, field) - case "id": - return ec.fieldContext_AvailabilityNotAvailableTime_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AvailabilityNotAvailableTime", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Availability_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Availability) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Availability_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Availability_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Availability", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - func (ec *executionContext) _AvailabilityAvailableTime_availableStartTime(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityAvailableTime) (ret graphql.Marshaler) { fc, err := ec.fieldContext_AvailabilityAvailableTime_availableStartTime(ctx, field) if err != nil { @@ -53102,120 +53105,120 @@ func (ec *executionContext) fieldContext_AvailabilityAvailableTime_extension(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -53387,88 +53390,6 @@ func (ec *executionContext) fieldContext_AvailabilityAvailableTime_availableEndT return fc, nil } -func (ec *executionContext) _AvailabilityNotAvailableTime_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityNotAvailableTime) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AvailabilityNotAvailableTime_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AvailabilityNotAvailableTime_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AvailabilityNotAvailableTime", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AvailabilityNotAvailableTime_description(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityNotAvailableTime) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AvailabilityNotAvailableTime_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AvailabilityNotAvailableTime_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AvailabilityNotAvailableTime", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - func (ec *executionContext) _AvailabilityNotAvailableTime_during(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityNotAvailableTime) (ret graphql.Marshaler) { fc, err := ec.fieldContext_AvailabilityNotAvailableTime_during(ctx, field) if err != nil { @@ -53505,16 +53426,16 @@ func (ec *executionContext) fieldContext_AvailabilityNotAvailableTime_during(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -53558,120 +53479,120 @@ func (ec *executionContext) fieldContext_AvailabilityNotAvailableTime_extension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) case "valueExtendedContactDetail": return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) case "valueTriggerDefinition": return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueString": return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) case "valueContactPoint": return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -53720,8 +53641,8 @@ func (ec *executionContext) fieldContext_AvailabilityNotAvailableTime_id(_ conte return fc, nil } -func (ec *executionContext) _BodyStructureIncludedStructure_extension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureIncludedStructure_extension(ctx, field) +func (ec *executionContext) _AvailabilityNotAvailableTime_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityNotAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityNotAvailableTime_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -53734,7 +53655,7 @@ func (ec *executionContext) _BodyStructureIncludedStructure_extension(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -53743,142 +53664,26 @@ func (ec *executionContext) _BodyStructureIncludedStructure_extension(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AvailabilityNotAvailableTime_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BodyStructureIncludedStructure", + Object: "AvailabilityNotAvailableTime", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BodyStructureIncludedStructure_id(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureIncludedStructure_id(ctx, field) +func (ec *executionContext) _AvailabilityNotAvailableTime_description(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityNotAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityNotAvailableTime_description(ctx, field) if err != nil { return graphql.Null } @@ -53891,7 +53696,7 @@ func (ec *executionContext) _BodyStructureIncludedStructure_id(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -53905,9 +53710,9 @@ func (ec *executionContext) _BodyStructureIncludedStructure_id(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AvailabilityNotAvailableTime_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BodyStructureIncludedStructure", + Object: "AvailabilityNotAvailableTime", Field: field, IsMethod: false, IsResolver: false, @@ -53954,6 +53759,8 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_laterali IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -53962,8 +53769,6 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_laterali return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -54007,120 +53812,120 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_modifier IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -54164,6 +53969,8 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_qualifie IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -54172,8 +53979,6 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_qualifie return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -54258,6 +54063,8 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_structur IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -54266,8 +54073,6 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_structur return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -54311,12 +54116,6 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_bodyLand IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_id(ctx, field) - case "landmarkDescription": - return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(ctx, field) - case "modifierExtension": - return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(ctx, field) case "resourceType": return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_resourceType(ctx, field) case "surfaceOrientation": @@ -54327,6 +54126,12 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_bodyLand return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_distanceFromLandmark(ctx, field) case "extension": return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_extension(ctx, field) + case "id": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_id(ctx, field) + case "landmarkDescription": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(ctx, field) + case "modifierExtension": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type BodyStructureIncludedStructureBodyLandmarkOrientation", field.Name) }, @@ -54334,49 +54139,8 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_bodyLand return fc, nil } -func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientation_id(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "BodyStructureIncludedStructureBodyLandmarkOrientation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(ctx, field) +func (ec *executionContext) _BodyStructureIncludedStructure_extension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructure_extension(ctx, field) if err != nil { return graphql.Null } @@ -54389,7 +54153,7 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LandmarkDescription, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -54398,38 +54162,142 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BodyStructureIncludedStructureBodyLandmarkOrientation", + Object: "BodyStructureIncludedStructure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(ctx, field) +func (ec *executionContext) _BodyStructureIncludedStructure_id(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructure_id(ctx, field) if err != nil { return graphql.Null } @@ -54442,7 +54310,7 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -54451,135 +54319,19 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BodyStructureIncludedStructureBodyLandmarkOrientation", + Object: "BodyStructureIncludedStructure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -54662,6 +54414,8 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -54670,8 +54424,6 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -54715,6 +54467,8 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -54723,8 +54477,6 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -54768,10 +54520,6 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "device": - return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(ctx, field) - case "extension": - return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(ctx, field) case "id": return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_id(ctx, field) case "modifierExtension": @@ -54780,6 +54528,10 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_resourceType(ctx, field) case "value": return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_value(ctx, field) + case "device": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(ctx, field) + case "extension": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", field.Name) }, @@ -54823,120 +54575,120 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -54944,8 +54696,8 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm return fc, nil } -func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(ctx, field) +func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientation_id(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_id(ctx, field) if err != nil { return graphql.Null } @@ -54958,7 +54710,7 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Device, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -54967,36 +54719,26 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", + Object: "BodyStructureIncludedStructureBodyLandmarkOrientation", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(ctx, field) +func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(ctx, field) if err != nil { return graphql.Null } @@ -55009,7 +54751,7 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.LandmarkDescription, nil }) if err != nil { ec.Error(ctx, err) @@ -55018,133 +54760,186 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", + Object: "BodyStructureIncludedStructureBodyLandmarkOrientation", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifierExtension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BodyStructureIncludedStructureBodyLandmarkOrientation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) case "valueQuantity": return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -55229,120 +55024,120 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -55450,8 +55245,8 @@ func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandm return fc, nil } -func (ec *executionContext) _BodyStructureType_patient(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_patient(ctx, field) +func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(ctx, field) if err != nil { return graphql.Null } @@ -55464,7 +55259,7 @@ func (ec *executionContext) _BodyStructureType_patient(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Patient, nil + return obj.Device, nil }) if err != nil { ec.Error(ctx, err) @@ -55473,134 +55268,36 @@ func (ec *executionContext) _BodyStructureType_patient(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.PatientType) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOPatientType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_patient(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BodyStructureType", + Object: "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "modifierExtension": - return ec.fieldContext_PatientType_modifierExtension(ctx, field) - case "gender": - return ec.fieldContext_PatientType_gender(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_PatientType_extension(ctx, field) - case "deceasedBoolean": - return ec.fieldContext_PatientType_deceasedBoolean(ctx, field) - case "address": - return ec.fieldContext_PatientType_address(ctx, field) - case "link": - return ec.fieldContext_PatientType_link(ctx, field) - case "identifier": - return ec.fieldContext_PatientType_identifier(ctx, field) - case "generalPractitioner": - return ec.fieldContext_PatientType_generalPractitioner(ctx, field) - case "implicitRules": - return ec.fieldContext_PatientType_implicitRules(ctx, field) - case "meta": - return ec.fieldContext_PatientType_meta(ctx, field) - case "multipleBirthInteger": - return ec.fieldContext_PatientType_multipleBirthInteger(ctx, field) - case "multipleBirthBoolean": - return ec.fieldContext_PatientType_multipleBirthBoolean(ctx, field) - case "text": - return ec.fieldContext_PatientType_text(ctx, field) - case "managingOrganization": - return ec.fieldContext_PatientType_managingOrganization(ctx, field) - case "active": - return ec.fieldContext_PatientType_active(ctx, field) - case "birthDate": - return ec.fieldContext_PatientType_birthDate(ctx, field) - case "deceasedDateTime": - return ec.fieldContext_PatientType_deceasedDateTime(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_PatientType_id(ctx, field) - case "name": - return ec.fieldContext_PatientType_name(ctx, field) - case "photo": - return ec.fieldContext_PatientType_photo(ctx, field) - case "contained": - return ec.fieldContext_PatientType_contained(ctx, field) - case "contact": - return ec.fieldContext_PatientType_contact(ctx, field) - case "maritalStatus": - return ec.fieldContext_PatientType_maritalStatus(ctx, field) - case "communication": - return ec.fieldContext_PatientType_communication(ctx, field) - case "telecom": - return ec.fieldContext_PatientType_telecom(ctx, field) - case "language": - return ec.fieldContext_PatientType_language(ctx, field) - case "resourceType": - return ec.fieldContext_PatientType_resourceType(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PatientType", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_BodyStructureType_patient_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _BodyStructureType_contained(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_contained(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contained, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.ResourceUnion) - fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_BodyStructureType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "BodyStructureType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_modifierExtension(ctx, field) +func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(ctx, field) if err != nil { return graphql.Null } @@ -55613,7 +55310,7 @@ func (ec *executionContext) _BodyStructureType_modifierExtension(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -55627,128 +55324,128 @@ func (ec *executionContext) _BodyStructureType_modifierExtension(ctx context.Con return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BodyStructureType", + Object: "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -55756,8 +55453,8 @@ func (ec *executionContext) fieldContext_BodyStructureType_modifierExtension(_ c return fc, nil } -func (ec *executionContext) _BodyStructureType_active(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_active(ctx, field) +func (ec *executionContext) _BodyStructureType_description(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_description(ctx, field) if err != nil { return graphql.Null } @@ -55770,7 +55467,7 @@ func (ec *executionContext) _BodyStructureType_active(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Active, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -55784,7 +55481,7 @@ func (ec *executionContext) _BodyStructureType_active(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, @@ -55797,8 +55494,8 @@ func (ec *executionContext) fieldContext_BodyStructureType_active(_ context.Cont return fc, nil } -func (ec *executionContext) _BodyStructureType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_identifier(ctx, field) +func (ec *executionContext) _BodyStructureType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -55811,7 +55508,7 @@ func (ec *executionContext) _BodyStructureType_identifier(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -55820,46 +55517,26 @@ func (ec *executionContext) _BodyStructureType_identifier(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_image(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_image(ctx, field) +func (ec *executionContext) _BodyStructureType_patient(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_patient(ctx, field) if err != nil { return graphql.Null } @@ -55872,21 +55549,24 @@ func (ec *executionContext) _BodyStructureType_image(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Image, nil + return obj.Patient, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Attachment) + res := resTmp.(*model.PatientType) fc.Result = res - return ec.marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalNPatientType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_image(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_patient(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, @@ -55894,47 +55574,80 @@ func (ec *executionContext) fieldContext_BodyStructureType_image(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) - case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) - case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) + case "managingOrganization": + return ec.fieldContext_PatientType_managingOrganization(ctx, field) + case "contact": + return ec.fieldContext_PatientType_contact(ctx, field) + case "gender": + return ec.fieldContext_PatientType_gender(ctx, field) + case "link": + return ec.fieldContext_PatientType_link(ctx, field) + case "implicitRules": + return ec.fieldContext_PatientType_implicitRules(ctx, field) + case "multipleBirthInteger": + return ec.fieldContext_PatientType_multipleBirthInteger(ctx, field) case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) + return ec.fieldContext_PatientType_id(ctx, field) + case "meta": + return ec.fieldContext_PatientType_meta(ctx, field) + case "contained": + return ec.fieldContext_PatientType_contained(ctx, field) + case "communication": + return ec.fieldContext_PatientType_communication(ctx, field) + case "birthDate": + return ec.fieldContext_PatientType_birthDate(ctx, field) + case "identifier": + return ec.fieldContext_PatientType_identifier(ctx, field) + case "resourceType": + return ec.fieldContext_PatientType_resourceType(ctx, field) + case "generalPractitioner": + return ec.fieldContext_PatientType_generalPractitioner(ctx, field) case "language": - return ec.fieldContext_Attachment_language(ctx, field) + return ec.fieldContext_PatientType_language(ctx, field) + case "deceasedDateTime": + return ec.fieldContext_PatientType_deceasedDateTime(ctx, field) + case "telecom": + return ec.fieldContext_PatientType_telecom(ctx, field) + case "photo": + return ec.fieldContext_PatientType_photo(ctx, field) + case "text": + return ec.fieldContext_PatientType_text(ctx, field) + case "multipleBirthBoolean": + return ec.fieldContext_PatientType_multipleBirthBoolean(ctx, field) + case "address": + return ec.fieldContext_PatientType_address(ctx, field) + case "maritalStatus": + return ec.fieldContext_PatientType_maritalStatus(ctx, field) + case "modifierExtension": + return ec.fieldContext_PatientType_modifierExtension(ctx, field) + case "extension": + return ec.fieldContext_PatientType_extension(ctx, field) + case "name": + return ec.fieldContext_PatientType_name(ctx, field) + case "active": + return ec.fieldContext_PatientType_active(ctx, field) + case "deceasedBoolean": + return ec.fieldContext_PatientType_deceasedBoolean(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PatientType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_BodyStructureType_patient_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _BodyStructureType_extension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_extension(ctx, field) +func (ec *executionContext) _BodyStructureType_language(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_language(ctx, field) if err != nil { return graphql.Null } @@ -55947,7 +55660,7 @@ func (ec *executionContext) _BodyStructureType_extension(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -55956,142 +55669,26 @@ func (ec *executionContext) _BodyStructureType_extension(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_excludedStructure(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_excludedStructure(ctx, field) +func (ec *executionContext) _BodyStructureType_meta(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_meta(ctx, field) if err != nil { return graphql.Null } @@ -56104,7 +55701,7 @@ func (ec *executionContext) _BodyStructureType_excludedStructure(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExcludedStructure, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -56113,12 +55710,12 @@ func (ec *executionContext) _BodyStructureType_excludedStructure(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.BodyStructureIncludedStructure) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOBodyStructureIncludedStructure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_excludedStructure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, @@ -56126,31 +55723,33 @@ func (ec *executionContext) fieldContext_BodyStructureType_excludedStructure(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_BodyStructureIncludedStructure_extension(ctx, field) - case "id": - return ec.fieldContext_BodyStructureIncludedStructure_id(ctx, field) - case "laterality": - return ec.fieldContext_BodyStructureIncludedStructure_laterality(ctx, field) - case "modifierExtension": - return ec.fieldContext_BodyStructureIncludedStructure_modifierExtension(ctx, field) - case "qualifier": - return ec.fieldContext_BodyStructureIncludedStructure_qualifier(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_BodyStructureIncludedStructure_resourceType(ctx, field) - case "structure": - return ec.fieldContext_BodyStructureIncludedStructure_structure(ctx, field) - case "bodyLandmarkOrientation": - return ec.fieldContext_BodyStructureIncludedStructure_bodyLandmarkOrientation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type BodyStructureIncludedStructure", field.Name) - }, - } - return fc, nil -} + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + }, + } + return fc, nil +} -func (ec *executionContext) _BodyStructureType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_resourceType(ctx, field) +func (ec *executionContext) _BodyStructureType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -56163,7 +55762,7 @@ func (ec *executionContext) _BodyStructureType_resourceType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -56172,26 +55771,142 @@ func (ec *executionContext) _BodyStructureType_resourceType(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_id(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_id(ctx, field) +func (ec *executionContext) _BodyStructureType_includedStructure(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_includedStructure(ctx, field) if err != nil { return graphql.Null } @@ -56204,7 +55919,7 @@ func (ec *executionContext) _BodyStructureType_id(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.IncludedStructure, nil }) if err != nil { ec.Error(ctx, err) @@ -56213,26 +55928,44 @@ func (ec *executionContext) _BodyStructureType_id(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.BodyStructureIncludedStructure) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOBodyStructureIncludedStructure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_includedStructure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "laterality": + return ec.fieldContext_BodyStructureIncludedStructure_laterality(ctx, field) + case "modifierExtension": + return ec.fieldContext_BodyStructureIncludedStructure_modifierExtension(ctx, field) + case "qualifier": + return ec.fieldContext_BodyStructureIncludedStructure_qualifier(ctx, field) + case "resourceType": + return ec.fieldContext_BodyStructureIncludedStructure_resourceType(ctx, field) + case "structure": + return ec.fieldContext_BodyStructureIncludedStructure_structure(ctx, field) + case "bodyLandmarkOrientation": + return ec.fieldContext_BodyStructureIncludedStructure_bodyLandmarkOrientation(ctx, field) + case "extension": + return ec.fieldContext_BodyStructureIncludedStructure_extension(ctx, field) + case "id": + return ec.fieldContext_BodyStructureIncludedStructure_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BodyStructureIncludedStructure", field.Name) }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_meta(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_meta(ctx, field) +func (ec *executionContext) _BodyStructureType_text(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_text(ctx, field) if err != nil { return graphql.Null } @@ -56245,7 +55978,7 @@ func (ec *executionContext) _BodyStructureType_meta(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -56254,12 +55987,12 @@ func (ec *executionContext) _BodyStructureType_meta(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, @@ -56267,33 +56000,25 @@ func (ec *executionContext) fieldContext_BodyStructureType_meta(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_includedStructure(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_includedStructure(ctx, field) +func (ec *executionContext) _BodyStructureType_contained(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_contained(ctx, field) if err != nil { return graphql.Null } @@ -56306,7 +56031,48 @@ func (ec *executionContext) _BodyStructureType_includedStructure(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IncludedStructure, nil + return obj.Contained, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ResourceUnion) + fc.Result = res + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BodyStructureType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BodyStructureType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ResourceUnion does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _BodyStructureType_excludedStructure(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_excludedStructure(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExcludedStructure, nil }) if err != nil { ec.Error(ctx, err) @@ -56320,7 +56086,7 @@ func (ec *executionContext) _BodyStructureType_includedStructure(ctx context.Con return ec.marshalOBodyStructureIncludedStructure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_includedStructure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_excludedStructure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, @@ -56328,10 +56094,6 @@ func (ec *executionContext) fieldContext_BodyStructureType_includedStructure(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_BodyStructureIncludedStructure_extension(ctx, field) - case "id": - return ec.fieldContext_BodyStructureIncludedStructure_id(ctx, field) case "laterality": return ec.fieldContext_BodyStructureIncludedStructure_laterality(ctx, field) case "modifierExtension": @@ -56344,6 +56106,10 @@ func (ec *executionContext) fieldContext_BodyStructureType_includedStructure(_ c return ec.fieldContext_BodyStructureIncludedStructure_structure(ctx, field) case "bodyLandmarkOrientation": return ec.fieldContext_BodyStructureIncludedStructure_bodyLandmarkOrientation(ctx, field) + case "extension": + return ec.fieldContext_BodyStructureIncludedStructure_extension(ctx, field) + case "id": + return ec.fieldContext_BodyStructureIncludedStructure_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type BodyStructureIncludedStructure", field.Name) }, @@ -56351,8 +56117,8 @@ func (ec *executionContext) fieldContext_BodyStructureType_includedStructure(_ c return fc, nil } -func (ec *executionContext) _BodyStructureType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_implicitRules(ctx, field) +func (ec *executionContext) _BodyStructureType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -56365,7 +56131,7 @@ func (ec *executionContext) _BodyStructureType_implicitRules(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -56374,26 +56140,46 @@ func (ec *executionContext) _BodyStructureType_implicitRules(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_morphology(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_morphology(ctx, field) +func (ec *executionContext) _BodyStructureType_id(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_id(ctx, field) if err != nil { return graphql.Null } @@ -56406,7 +56192,7 @@ func (ec *executionContext) _BodyStructureType_morphology(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Morphology, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -56415,38 +56201,26 @@ func (ec *executionContext) _BodyStructureType_morphology(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_morphology(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_text(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_text(ctx, field) +func (ec *executionContext) _BodyStructureType_active(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_active(ctx, field) if err != nil { return graphql.Null } @@ -56459,7 +56233,7 @@ func (ec *executionContext) _BodyStructureType_text(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Active, nil }) if err != nil { ec.Error(ctx, err) @@ -56468,38 +56242,26 @@ func (ec *executionContext) _BodyStructureType_text(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_description(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_description(ctx, field) +func (ec *executionContext) _BodyStructureType_morphology(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_morphology(ctx, field) if err != nil { return graphql.Null } @@ -56512,7 +56274,7 @@ func (ec *executionContext) _BodyStructureType_description(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Morphology, nil }) if err != nil { ec.Error(ctx, err) @@ -56521,26 +56283,38 @@ func (ec *executionContext) _BodyStructureType_description(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_morphology(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _BodyStructureType_language(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BodyStructureType_language(ctx, field) +func (ec *executionContext) _BodyStructureType_extension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_extension(ctx, field) if err != nil { return graphql.Null } @@ -56553,7 +56327,7 @@ func (ec *executionContext) _BodyStructureType_language(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -56562,26 +56336,142 @@ func (ec *executionContext) _BodyStructureType_language(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BodyStructureType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _CodeableConcept_text(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CodeableConcept_text(ctx, field) +func (ec *executionContext) _BodyStructureType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -56594,7 +56484,7 @@ func (ec *executionContext) _CodeableConcept_text(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -56608,9 +56498,9 @@ func (ec *executionContext) _CodeableConcept_text(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CodeableConcept_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CodeableConcept", + Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, @@ -56621,8 +56511,8 @@ func (ec *executionContext) fieldContext_CodeableConcept_text(_ context.Context, return fc, nil } -func (ec *executionContext) _CodeableConcept_coding(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CodeableConcept_coding(ctx, field) +func (ec *executionContext) _BodyStructureType_image(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureType_image(ctx, field) if err != nil { return graphql.Null } @@ -56635,7 +56525,7 @@ func (ec *executionContext) _CodeableConcept_coding(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Coding, nil + return obj.Image, nil }) if err != nil { ec.Error(ctx, err) @@ -56644,44 +56534,60 @@ func (ec *executionContext) _CodeableConcept_coding(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Coding) + res := resTmp.([]*model.Attachment) fc.Result = res - return ec.marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) + return ec.marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CodeableConcept_coding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BodyStructureType_image(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CodeableConcept", + Object: "BodyStructureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) + case "resourceType": + return ec.fieldContext_Attachment_resourceType(ctx, field) case "extension": - return ec.fieldContext_Coding_extension(ctx, field) + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) - case "userSelected": - return ec.fieldContext_Coding_userSelected(ctx, field) - case "version": - return ec.fieldContext_Coding_version(ctx, field) - case "code": - return ec.fieldContext_Coding_code(ctx, field) - case "display": - return ec.fieldContext_Coding_display(ctx, field) + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, } return fc, nil } -func (ec *executionContext) _CodeableConcept_extension(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CodeableConcept_extension(ctx, field) +func (ec *executionContext) _CodeableConcept_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CodeableConcept_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -56694,7 +56600,7 @@ func (ec *executionContext) _CodeableConcept_extension(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -56703,142 +56609,26 @@ func (ec *executionContext) _CodeableConcept_extension(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CodeableConcept_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CodeableConcept_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "CodeableConcept", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _CodeableConcept_id(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CodeableConcept_id(ctx, field) +func (ec *executionContext) _CodeableConcept_text(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CodeableConcept_text(ctx, field) if err != nil { return graphql.Null } @@ -56851,7 +56641,7 @@ func (ec *executionContext) _CodeableConcept_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -56865,7 +56655,7 @@ func (ec *executionContext) _CodeableConcept_id(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CodeableConcept_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CodeableConcept_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "CodeableConcept", Field: field, @@ -56878,8 +56668,8 @@ func (ec *executionContext) fieldContext_CodeableConcept_id(_ context.Context, f return fc, nil } -func (ec *executionContext) _CodeableConcept_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CodeableConcept_resourceType(ctx, field) +func (ec *executionContext) _CodeableConcept_coding(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CodeableConcept_coding(ctx, field) if err != nil { return graphql.Null } @@ -56892,7 +56682,7 @@ func (ec *executionContext) _CodeableConcept_resourceType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Coding, nil }) if err != nil { ec.Error(ctx, err) @@ -56901,26 +56691,44 @@ func (ec *executionContext) _CodeableConcept_resourceType(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Coding) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CodeableConcept_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CodeableConcept_coding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "CodeableConcept", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "userSelected": + return ec.fieldContext_Coding_userSelected(ctx, field) + case "version": + return ec.fieldContext_Coding_version(ctx, field) + case "code": + return ec.fieldContext_Coding_code(ctx, field) + case "display": + return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, } return fc, nil } -func (ec *executionContext) _CodeableReference_extension(ctx context.Context, field graphql.CollectedField, obj *model.CodeableReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CodeableReference_extension(ctx, field) +func (ec *executionContext) _CodeableConcept_extension(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CodeableConcept_extension(ctx, field) if err != nil { return graphql.Null } @@ -56947,128 +56755,128 @@ func (ec *executionContext) _CodeableReference_extension(ctx context.Context, fi return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CodeableReference_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CodeableConcept_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CodeableReference", + Object: "CodeableConcept", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -57076,8 +56884,8 @@ func (ec *executionContext) fieldContext_CodeableReference_extension(_ context.C return fc, nil } -func (ec *executionContext) _CodeableReference_id(ctx context.Context, field graphql.CollectedField, obj *model.CodeableReference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CodeableReference_id(ctx, field) +func (ec *executionContext) _CodeableConcept_id(ctx context.Context, field graphql.CollectedField, obj *model.CodeableConcept) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CodeableConcept_id(ctx, field) if err != nil { return graphql.Null } @@ -57104,9 +56912,9 @@ func (ec *executionContext) _CodeableReference_id(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CodeableReference_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CodeableConcept_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CodeableReference", + Object: "CodeableConcept", Field: field, IsMethod: false, IsResolver: false, @@ -57194,6 +57002,8 @@ func (ec *executionContext) fieldContext_CodeableReference_concept(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -57202,8 +57012,6 @@ func (ec *executionContext) fieldContext_CodeableReference_concept(_ context.Con return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -57211,8 +57019,8 @@ func (ec *executionContext) fieldContext_CodeableReference_concept(_ context.Con return fc, nil } -func (ec *executionContext) _Coding_extension(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Coding_extension(ctx, field) +func (ec *executionContext) _CodeableReference_extension(ctx context.Context, field graphql.CollectedField, obj *model.CodeableReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CodeableReference_extension(ctx, field) if err != nil { return graphql.Null } @@ -57239,128 +57047,128 @@ func (ec *executionContext) _Coding_extension(ctx context.Context, field graphql return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Coding_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CodeableReference_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Coding", + Object: "CodeableReference", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) case "valueId": return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) case "valueAvailability": return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -57368,8 +57176,8 @@ func (ec *executionContext) fieldContext_Coding_extension(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Coding_id(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Coding_id(ctx, field) +func (ec *executionContext) _CodeableReference_id(ctx context.Context, field graphql.CollectedField, obj *model.CodeableReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CodeableReference_id(ctx, field) if err != nil { return graphql.Null } @@ -57396,7 +57204,48 @@ func (ec *executionContext) _Coding_id(ctx context.Context, field graphql.Collec return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Coding_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CodeableReference_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CodeableReference", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Coding_userSelected(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Coding_userSelected(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserSelected, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Coding_userSelected(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Coding", Field: field, @@ -57409,8 +57258,8 @@ func (ec *executionContext) fieldContext_Coding_id(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _Coding_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Coding_resourceType(ctx, field) +func (ec *executionContext) _Coding_version(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Coding_version(ctx, field) if err != nil { return graphql.Null } @@ -57423,7 +57272,7 @@ func (ec *executionContext) _Coding_resourceType(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -57437,7 +57286,7 @@ func (ec *executionContext) _Coding_resourceType(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Coding_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Coding_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Coding", Field: field, @@ -57450,8 +57299,8 @@ func (ec *executionContext) fieldContext_Coding_resourceType(_ context.Context, return fc, nil } -func (ec *executionContext) _Coding_system(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Coding_system(ctx, field) +func (ec *executionContext) _Coding_code(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Coding_code(ctx, field) if err != nil { return graphql.Null } @@ -57464,7 +57313,7 @@ func (ec *executionContext) _Coding_system(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.System, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -57478,7 +57327,7 @@ func (ec *executionContext) _Coding_system(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Coding_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Coding_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Coding", Field: field, @@ -57491,8 +57340,8 @@ func (ec *executionContext) fieldContext_Coding_system(_ context.Context, field return fc, nil } -func (ec *executionContext) _Coding_userSelected(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Coding_userSelected(ctx, field) +func (ec *executionContext) _Coding_display(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Coding_display(ctx, field) if err != nil { return graphql.Null } @@ -57505,7 +57354,7 @@ func (ec *executionContext) _Coding_userSelected(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserSelected, nil + return obj.Display, nil }) if err != nil { ec.Error(ctx, err) @@ -57519,7 +57368,7 @@ func (ec *executionContext) _Coding_userSelected(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Coding_userSelected(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Coding_display(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Coding", Field: field, @@ -57532,8 +57381,8 @@ func (ec *executionContext) fieldContext_Coding_userSelected(_ context.Context, return fc, nil } -func (ec *executionContext) _Coding_version(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Coding_version(ctx, field) +func (ec *executionContext) _Coding_extension(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Coding_extension(ctx, field) if err != nil { return graphql.Null } @@ -57546,7 +57395,164 @@ func (ec *executionContext) _Coding_version(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Coding_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Coding", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Coding_id(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Coding_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -57560,7 +57566,7 @@ func (ec *executionContext) _Coding_version(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Coding_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Coding_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Coding", Field: field, @@ -57573,8 +57579,8 @@ func (ec *executionContext) fieldContext_Coding_version(_ context.Context, field return fc, nil } -func (ec *executionContext) _Coding_code(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Coding_code(ctx, field) +func (ec *executionContext) _Coding_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Coding_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -57587,7 +57593,7 @@ func (ec *executionContext) _Coding_code(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -57601,7 +57607,7 @@ func (ec *executionContext) _Coding_code(ctx context.Context, field graphql.Coll return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Coding_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Coding_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Coding", Field: field, @@ -57614,8 +57620,8 @@ func (ec *executionContext) fieldContext_Coding_code(_ context.Context, field gr return fc, nil } -func (ec *executionContext) _Coding_display(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Coding_display(ctx, field) +func (ec *executionContext) _Coding_system(ctx context.Context, field graphql.CollectedField, obj *model.Coding) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Coding_system(ctx, field) if err != nil { return graphql.Null } @@ -57628,7 +57634,7 @@ func (ec *executionContext) _Coding_display(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Display, nil + return obj.System, nil }) if err != nil { ec.Error(ctx, err) @@ -57642,7 +57648,7 @@ func (ec *executionContext) _Coding_display(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Coding_display(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Coding_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Coding", Field: field, @@ -57691,120 +57697,120 @@ func (ec *executionContext) fieldContext_ConditionParticipant_modifierExtension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -57874,11 +57880,14 @@ func (ec *executionContext) _ConditionParticipant_actor(ctx context.Context, fie return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ConditionParticipantActorUnion) + res := resTmp.(model.ConditionParticipantActorUnion) fc.Result = res - return ec.marshalOConditionParticipantActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantActorUnion(ctx, field.Selections, res) + return ec.marshalNConditionParticipantActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantActorUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ConditionParticipant_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -57941,120 +57950,120 @@ func (ec *executionContext) fieldContext_ConditionParticipant_extension(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -58098,6 +58107,8 @@ func (ec *executionContext) fieldContext_ConditionParticipant_function(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -58106,8 +58117,6 @@ func (ec *executionContext) fieldContext_ConditionParticipant_function(_ context return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -58233,6 +58242,8 @@ func (ec *executionContext) fieldContext_ConditionStage_summary(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -58241,8 +58252,6 @@ func (ec *executionContext) fieldContext_ConditionStage_summary(_ context.Contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -58286,6 +58295,8 @@ func (ec *executionContext) fieldContext_ConditionStage_type(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -58294,8 +58305,6 @@ func (ec *executionContext) fieldContext_ConditionStage_type(_ context.Context, return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -58324,11 +58333,14 @@ func (ec *executionContext) _ConditionStage_assessment(ctx context.Context, fiel return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ConditionStageAssessmentUnion) + res := resTmp.(model.ConditionStageAssessmentUnion) fc.Result = res - return ec.marshalOConditionStageAssessmentUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageAssessmentUnion(ctx, field.Selections, res) + return ec.marshalNConditionStageAssessmentUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageAssessmentUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ConditionStage_assessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -58391,120 +58403,120 @@ func (ec *executionContext) fieldContext_ConditionStage_extension(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -58589,120 +58601,120 @@ func (ec *executionContext) fieldContext_ConditionStage_modifierExtension(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) case "valueId": return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) case "valueAvailability": return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -58710,8 +58722,8 @@ func (ec *executionContext) fieldContext_ConditionStage_modifierExtension(_ cont return fc, nil } -func (ec *executionContext) _ConditionType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_contained(ctx, field) +func (ec *executionContext) _ConditionType_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_bodySite(ctx, field) if err != nil { return graphql.Null } @@ -58724,7 +58736,7 @@ func (ec *executionContext) _ConditionType_contained(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.BodySite, nil }) if err != nil { ec.Error(ctx, err) @@ -58733,26 +58745,38 @@ func (ec *executionContext) _ConditionType_contained(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConditionType_abatementAge(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_abatementAge(ctx, field) +func (ec *executionContext) _ConditionType_verificationStatus(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_verificationStatus(ctx, field) if err != nil { return graphql.Null } @@ -58765,7 +58789,7 @@ func (ec *executionContext) _ConditionType_abatementAge(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AbatementAge, nil + return obj.VerificationStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -58774,12 +58798,12 @@ func (ec *executionContext) _ConditionType_abatementAge(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_abatementAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_verificationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -58787,31 +58811,25 @@ func (ec *executionContext) fieldContext_ConditionType_abatementAge(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Age_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Age_id(ctx, field) - case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) - case "value": - return ec.fieldContext_Age_value(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConditionType_onsetDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_onsetDateTime(ctx, field) +func (ec *executionContext) _ConditionType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_contained(ctx, field) if err != nil { return graphql.Null } @@ -58824,7 +58842,7 @@ func (ec *executionContext) _ConditionType_onsetDateTime(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OnsetDateTime, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -58833,26 +58851,26 @@ func (ec *executionContext) _ConditionType_onsetDateTime(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_onsetDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConditionType_verificationStatus(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_verificationStatus(ctx, field) +func (ec *executionContext) _ConditionType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -58865,7 +58883,7 @@ func (ec *executionContext) _ConditionType_verificationStatus(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VerificationStatus, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -58874,12 +58892,12 @@ func (ec *executionContext) _ConditionType_verificationStatus(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_verificationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -58887,25 +58905,86 @@ func (ec *executionContext) fieldContext_ConditionType_verificationStatus(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ConditionType_onsetRange(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_onsetRange(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OnsetRange, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Range) + fc.Result = res + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ConditionType_onsetRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Range_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConditionType_code(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_code(ctx, field) +func (ec *executionContext) _ConditionType_category(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_category(ctx, field) if err != nil { return graphql.Null } @@ -58918,7 +58997,7 @@ func (ec *executionContext) _ConditionType_code(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Category, nil }) if err != nil { ec.Error(ctx, err) @@ -58927,12 +59006,12 @@ func (ec *executionContext) _ConditionType_code(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -58940,6 +59019,8 @@ func (ec *executionContext) fieldContext_ConditionType_code(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -58948,8 +59029,6 @@ func (ec *executionContext) fieldContext_ConditionType_code(_ context.Context, f return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -58998,8 +59077,8 @@ func (ec *executionContext) fieldContext_ConditionType_language(_ context.Contex return fc, nil } -func (ec *executionContext) _ConditionType_text(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_text(ctx, field) +func (ec *executionContext) _ConditionType_abatementAge(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_abatementAge(ctx, field) if err != nil { return graphql.Null } @@ -59012,7 +59091,7 @@ func (ec *executionContext) _ConditionType_text(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.AbatementAge, nil }) if err != nil { ec.Error(ctx, err) @@ -59021,12 +59100,12 @@ func (ec *executionContext) _ConditionType_text(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*model.Age) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_abatementAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -59034,25 +59113,31 @@ func (ec *executionContext) fieldContext_ConditionType_text(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) + return ec.fieldContext_Age_extension(ctx, field) case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Age_id(ctx, field) case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConditionType_abatementString(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_abatementString(ctx, field) +func (ec *executionContext) _ConditionType_id(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_id(ctx, field) if err != nil { return graphql.Null } @@ -59065,7 +59150,7 @@ func (ec *executionContext) _ConditionType_abatementString(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AbatementString, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -59079,7 +59164,7 @@ func (ec *executionContext) _ConditionType_abatementString(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_abatementString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -59092,6 +59177,65 @@ func (ec *executionContext) fieldContext_ConditionType_abatementString(_ context return fc, nil } +func (ec *executionContext) _ConditionType_onsetAge(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_onsetAge(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OnsetAge, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Age) + fc.Result = res + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ConditionType_onsetAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) + case "extension": + return ec.fieldContext_Age_extension(ctx, field) + case "id": + return ec.fieldContext_Age_id(ctx, field) + case "resourceType": + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _ConditionType_clinicalStatus(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { fc, err := ec.fieldContext_ConditionType_clinicalStatus(ctx, field) if err != nil { @@ -59128,6 +59272,8 @@ func (ec *executionContext) fieldContext_ConditionType_clinicalStatus(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -59136,8 +59282,6 @@ func (ec *executionContext) fieldContext_ConditionType_clinicalStatus(_ context. return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -59181,120 +59325,120 @@ func (ec *executionContext) fieldContext_ConditionType_modifierExtension(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -59302,8 +59446,8 @@ func (ec *executionContext) fieldContext_ConditionType_modifierExtension(_ conte return fc, nil } -func (ec *executionContext) _ConditionType_abatementRange(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_abatementRange(ctx, field) +func (ec *executionContext) _ConditionType_abatementPeriod(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_abatementPeriod(ctx, field) if err != nil { return graphql.Null } @@ -59316,7 +59460,7 @@ func (ec *executionContext) _ConditionType_abatementRange(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AbatementRange, nil + return obj.AbatementPeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -59325,12 +59469,12 @@ func (ec *executionContext) _ConditionType_abatementRange(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_abatementRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_abatementPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -59338,25 +59482,25 @@ func (ec *executionContext) fieldContext_ConditionType_abatementRange(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConditionType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_resourceType(ctx, field) +func (ec *executionContext) _ConditionType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -59369,7 +59513,7 @@ func (ec *executionContext) _ConditionType_resourceType(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -59383,7 +59527,7 @@ func (ec *executionContext) _ConditionType_resourceType(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -59437,8 +59581,8 @@ func (ec *executionContext) fieldContext_ConditionType_recordedDate(_ context.Co return fc, nil } -func (ec *executionContext) _ConditionType_severity(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_severity(ctx, field) +func (ec *executionContext) _ConditionType_stage(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_stage(ctx, field) if err != nil { return graphql.Null } @@ -59451,88 +59595,49 @@ func (ec *executionContext) _ConditionType_severity(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Severity, nil + return obj.Stage, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(model.ConditionStageUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNConditionStageUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_stage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type ConditionStageUnion does not have child fields") }, } - return fc, nil -} - -func (ec *executionContext) _ConditionType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_implicitRules(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ConditionType_stage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ConditionType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ConditionType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _ConditionType_onsetAge(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_onsetAge(ctx, field) +func (ec *executionContext) _ConditionType_onsetDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_onsetDateTime(ctx, field) if err != nil { return graphql.Null } @@ -59545,7 +59650,7 @@ func (ec *executionContext) _ConditionType_onsetAge(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OnsetAge, nil + return obj.OnsetDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -59554,44 +59659,26 @@ func (ec *executionContext) _ConditionType_onsetAge(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_onsetAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_onsetDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) - case "extension": - return ec.fieldContext_Age_extension(ctx, field) - case "id": - return ec.fieldContext_Age_id(ctx, field) - case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) - case "value": - return ec.fieldContext_Age_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConditionType_evidence(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_evidence(ctx, field) +func (ec *executionContext) _ConditionType_onsetString(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_onsetString(ctx, field) if err != nil { return graphql.Null } @@ -59604,7 +59691,7 @@ func (ec *executionContext) _ConditionType_evidence(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Evidence, nil + return obj.OnsetString, nil }) if err != nil { ec.Error(ctx, err) @@ -59613,29 +59700,19 @@ func (ec *executionContext) _ConditionType_evidence(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_evidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_onsetString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -59677,24 +59754,24 @@ func (ec *executionContext) fieldContext_ConditionType_meta(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) case "lastUpdated": return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) case "id": return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, @@ -59702,8 +59779,8 @@ func (ec *executionContext) fieldContext_ConditionType_meta(_ context.Context, f return fc, nil } -func (ec *executionContext) _ConditionType_stage(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_stage(ctx, field) +func (ec *executionContext) _ConditionType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_subject(ctx, field) if err != nil { return graphql.Null } @@ -59716,28 +59793,31 @@ func (ec *executionContext) _ConditionType_stage(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Stage, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ConditionStageUnion) + res := resTmp.(model.ConditionSubjectUnion) fc.Result = res - return ec.marshalOConditionStageUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageUnion(ctx, field.Selections, res) + return ec.marshalNConditionSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionSubjectUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_stage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConditionStageUnion does not have child fields") + return nil, errors.New("field of type ConditionSubjectUnion does not have child fields") }, } defer func() { @@ -59747,15 +59827,15 @@ func (ec *executionContext) fieldContext_ConditionType_stage(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ConditionType_stage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ConditionType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ConditionType_category(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_category(ctx, field) +func (ec *executionContext) _ConditionType_code(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_code(ctx, field) if err != nil { return graphql.Null } @@ -59768,7 +59848,7 @@ func (ec *executionContext) _ConditionType_category(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Category, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -59777,12 +59857,12 @@ func (ec *executionContext) _ConditionType_category(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -59790,6 +59870,8 @@ func (ec *executionContext) fieldContext_ConditionType_category(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -59798,8 +59880,6 @@ func (ec *executionContext) fieldContext_ConditionType_category(_ context.Contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -59807,8 +59887,8 @@ func (ec *executionContext) fieldContext_ConditionType_category(_ context.Contex return fc, nil } -func (ec *executionContext) _ConditionType_onsetRange(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_onsetRange(ctx, field) +func (ec *executionContext) _ConditionType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -59821,7 +59901,7 @@ func (ec *executionContext) _ConditionType_onsetRange(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OnsetRange, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -59830,38 +59910,26 @@ func (ec *executionContext) _ConditionType_onsetRange(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(*string) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_onsetRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConditionType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_subject(ctx, field) +func (ec *executionContext) _ConditionType_note(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_note(ctx, field) if err != nil { return graphql.Null } @@ -59874,28 +59942,31 @@ func (ec *executionContext) _ConditionType_subject(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ConditionSubjectUnion) + res := resTmp.(model.ConditionNoteUnion) fc.Result = res - return ec.marshalOConditionSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionSubjectUnion(ctx, field.Selections, res) + return ec.marshalNConditionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConditionSubjectUnion does not have child fields") + return nil, errors.New("field of type ConditionNoteUnion does not have child fields") }, } defer func() { @@ -59905,15 +59976,15 @@ func (ec *executionContext) fieldContext_ConditionType_subject(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ConditionType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ConditionType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ConditionType_abatementPeriod(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_abatementPeriod(ctx, field) +func (ec *executionContext) _ConditionType_evidence(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_evidence(ctx, field) if err != nil { return graphql.Null } @@ -59926,7 +59997,58 @@ func (ec *executionContext) _ConditionType_abatementPeriod(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AbatementPeriod, nil + return obj.Evidence, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.CodeableReference) + fc.Result = res + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ConditionType_evidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ConditionType_onsetPeriod(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_onsetPeriod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OnsetPeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -59940,7 +60062,7 @@ func (ec *executionContext) _ConditionType_abatementPeriod(ctx context.Context, return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_abatementPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_onsetPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -59948,16 +60070,16 @@ func (ec *executionContext) fieldContext_ConditionType_abatementPeriod(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -59965,8 +60087,8 @@ func (ec *executionContext) fieldContext_ConditionType_abatementPeriod(_ context return fc, nil } -func (ec *executionContext) _ConditionType_id(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_id(ctx, field) +func (ec *executionContext) _ConditionType_abatementString(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_abatementString(ctx, field) if err != nil { return graphql.Null } @@ -59979,7 +60101,7 @@ func (ec *executionContext) _ConditionType_id(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.AbatementString, nil }) if err != nil { ec.Error(ctx, err) @@ -59993,7 +60115,7 @@ func (ec *executionContext) _ConditionType_id(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_abatementString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -60006,8 +60128,8 @@ func (ec *executionContext) fieldContext_ConditionType_id(_ context.Context, fie return fc, nil } -func (ec *executionContext) _ConditionType_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_bodySite(ctx, field) +func (ec *executionContext) _ConditionType_severity(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_severity(ctx, field) if err != nil { return graphql.Null } @@ -60020,7 +60142,7 @@ func (ec *executionContext) _ConditionType_bodySite(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BodySite, nil + return obj.Severity, nil }) if err != nil { ec.Error(ctx, err) @@ -60029,12 +60151,12 @@ func (ec *executionContext) _ConditionType_bodySite(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -60042,6 +60164,8 @@ func (ec *executionContext) fieldContext_ConditionType_bodySite(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -60050,8 +60174,6 @@ func (ec *executionContext) fieldContext_ConditionType_bodySite(_ context.Contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -60059,8 +60181,8 @@ func (ec *executionContext) fieldContext_ConditionType_bodySite(_ context.Contex return fc, nil } -func (ec *executionContext) _ConditionType_onsetString(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_onsetString(ctx, field) +func (ec *executionContext) _ConditionType_text(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_text(ctx, field) if err != nil { return graphql.Null } @@ -60073,7 +60195,7 @@ func (ec *executionContext) _ConditionType_onsetString(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OnsetString, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -60082,19 +60204,31 @@ func (ec *executionContext) _ConditionType_onsetString(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_onsetString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil @@ -60141,8 +60275,8 @@ func (ec *executionContext) fieldContext_ConditionType_abatementDateTime(_ conte return fc, nil } -func (ec *executionContext) _ConditionType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_extension(ctx, field) +func (ec *executionContext) _ConditionType_abatementRange(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_abatementRange(ctx, field) if err != nil { return graphql.Null } @@ -60155,7 +60289,7 @@ func (ec *executionContext) _ConditionType_extension(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.AbatementRange, nil }) if err != nil { ec.Error(ctx, err) @@ -60164,12 +60298,12 @@ func (ec *executionContext) _ConditionType_extension(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_abatementRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -60177,122 +60311,18 @@ func (ec *executionContext) fieldContext_ConditionType_extension(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_Range_resourceType(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil @@ -60319,11 +60349,14 @@ func (ec *executionContext) _ConditionType_participant(ctx context.Context, fiel return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ConditionParticipantUnion) + res := resTmp.(model.ConditionParticipantUnion) fc.Result = res - return ec.marshalOConditionParticipantUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantUnion(ctx, field.Selections, res) + return ec.marshalNConditionParticipantUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ConditionType_participant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -60350,121 +60383,8 @@ func (ec *executionContext) fieldContext_ConditionType_participant(ctx context.C return fc, nil } -func (ec *executionContext) _ConditionType_note(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_note(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Note, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.ConditionNoteUnion) - fc.Result = res - return ec.marshalOConditionNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionNoteUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ConditionType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ConditionType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConditionNoteUnion does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ConditionType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ConditionType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_identifier(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Identifier) - fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ConditionType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ConditionType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ConditionType_onsetPeriod(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConditionType_onsetPeriod(ctx, field) +func (ec *executionContext) _ConditionType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_extension(ctx, field) if err != nil { return graphql.Null } @@ -60477,7 +60397,7 @@ func (ec *executionContext) _ConditionType_onsetPeriod(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OnsetPeriod, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -60486,12 +60406,12 @@ func (ec *executionContext) _ConditionType_onsetPeriod(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConditionType_onsetPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConditionType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ConditionType", Field: field, @@ -60499,77 +60419,122 @@ func (ec *executionContext) fieldContext_ConditionType_onsetPeriod(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactDetail_telecom(ctx context.Context, field graphql.CollectedField, obj *model.ContactDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactDetail_telecom(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Telecom, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.ContactPoint) - fc.Result = res - return ec.marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactDetail_telecom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactDetail", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_ContactPoint_extension(ctx, field) - case "id": - return ec.fieldContext_ContactPoint_id(ctx, field) - case "period": - return ec.fieldContext_ContactPoint_period(ctx, field) - case "rank": - return ec.fieldContext_ContactPoint_rank(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_ContactPoint_resourceType(ctx, field) - case "system": - return ec.fieldContext_ContactPoint_system(ctx, field) - case "use": - return ec.fieldContext_ContactPoint_use(ctx, field) - case "value": - return ec.fieldContext_ContactPoint_value(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil @@ -60611,120 +60576,120 @@ func (ec *executionContext) fieldContext_ContactDetail_extension(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -60855,8 +60820,8 @@ func (ec *executionContext) fieldContext_ContactDetail_resourceType(_ context.Co return fc, nil } -func (ec *executionContext) _ContactPoint_extension(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactPoint_extension(ctx, field) +func (ec *executionContext) _ContactDetail_telecom(ctx context.Context, field graphql.CollectedField, obj *model.ContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactDetail_telecom(ctx, field) if err != nil { return graphql.Null } @@ -60869,7 +60834,7 @@ func (ec *executionContext) _ContactPoint_extension(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Telecom, nil }) if err != nil { ec.Error(ctx, err) @@ -60878,142 +60843,44 @@ func (ec *executionContext) _ContactPoint_extension(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.ContactPoint) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactPoint_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactDetail_telecom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactPoint", + Object: "ContactDetail", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_ContactPoint_resourceType(ctx, field) + case "system": + return ec.fieldContext_ContactPoint_system(ctx, field) + case "use": + return ec.fieldContext_ContactPoint_use(ctx, field) + case "value": + return ec.fieldContext_ContactPoint_value(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_ContactPoint_extension(ctx, field) + case "id": + return ec.fieldContext_ContactPoint_id(ctx, field) + case "period": + return ec.fieldContext_ContactPoint_period(ctx, field) + case "rank": + return ec.fieldContext_ContactPoint_rank(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactPoint_id(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactPoint_id(ctx, field) +func (ec *executionContext) _ContactPoint_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactPoint_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -61026,7 +60893,7 @@ func (ec *executionContext) _ContactPoint_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -61040,7 +60907,7 @@ func (ec *executionContext) _ContactPoint_id(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactPoint_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactPoint_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ContactPoint", Field: field, @@ -61053,8 +60920,8 @@ func (ec *executionContext) fieldContext_ContactPoint_id(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _ContactPoint_period(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactPoint_period(ctx, field) +func (ec *executionContext) _ContactPoint_system(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactPoint_system(ctx, field) if err != nil { return graphql.Null } @@ -61067,7 +60934,7 @@ func (ec *executionContext) _ContactPoint_period(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.System, nil }) if err != nil { ec.Error(ctx, err) @@ -61076,38 +60943,26 @@ func (ec *executionContext) _ContactPoint_period(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactPoint_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactPoint_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ContactPoint", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactPoint_rank(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactPoint_rank(ctx, field) +func (ec *executionContext) _ContactPoint_use(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactPoint_use(ctx, field) if err != nil { return graphql.Null } @@ -61120,7 +60975,7 @@ func (ec *executionContext) _ContactPoint_rank(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Rank, nil + return obj.Use, nil }) if err != nil { ec.Error(ctx, err) @@ -61134,7 +60989,7 @@ func (ec *executionContext) _ContactPoint_rank(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactPoint_rank(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactPoint_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ContactPoint", Field: field, @@ -61147,8 +61002,8 @@ func (ec *executionContext) fieldContext_ContactPoint_rank(_ context.Context, fi return fc, nil } -func (ec *executionContext) _ContactPoint_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactPoint_resourceType(ctx, field) +func (ec *executionContext) _ContactPoint_value(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactPoint_value(ctx, field) if err != nil { return graphql.Null } @@ -61161,7 +61016,7 @@ func (ec *executionContext) _ContactPoint_resourceType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -61175,7 +61030,7 @@ func (ec *executionContext) _ContactPoint_resourceType(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactPoint_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactPoint_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ContactPoint", Field: field, @@ -61188,8 +61043,8 @@ func (ec *executionContext) fieldContext_ContactPoint_resourceType(_ context.Con return fc, nil } -func (ec *executionContext) _ContactPoint_system(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactPoint_system(ctx, field) +func (ec *executionContext) _ContactPoint_extension(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactPoint_extension(ctx, field) if err != nil { return graphql.Null } @@ -61202,7 +61057,7 @@ func (ec *executionContext) _ContactPoint_system(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.System, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -61211,26 +61066,142 @@ func (ec *executionContext) _ContactPoint_system(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactPoint_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactPoint_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ContactPoint", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactPoint_use(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactPoint_use(ctx, field) +func (ec *executionContext) _ContactPoint_id(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactPoint_id(ctx, field) if err != nil { return graphql.Null } @@ -61243,7 +61214,7 @@ func (ec *executionContext) _ContactPoint_use(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Use, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -61257,7 +61228,7 @@ func (ec *executionContext) _ContactPoint_use(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactPoint_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactPoint_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ContactPoint", Field: field, @@ -61270,8 +61241,8 @@ func (ec *executionContext) fieldContext_ContactPoint_use(_ context.Context, fie return fc, nil } -func (ec *executionContext) _ContactPoint_value(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactPoint_value(ctx, field) +func (ec *executionContext) _ContactPoint_period(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactPoint_period(ctx, field) if err != nil { return graphql.Null } @@ -61284,7 +61255,7 @@ func (ec *executionContext) _ContactPoint_value(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Value, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -61293,26 +61264,38 @@ func (ec *executionContext) _ContactPoint_value(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactPoint_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactPoint_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ContactPoint", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _Count_extension(ctx context.Context, field graphql.CollectedField, obj *model.Count) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Count_extension(ctx, field) +func (ec *executionContext) _ContactPoint_rank(ctx context.Context, field graphql.CollectedField, obj *model.ContactPoint) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactPoint_rank(ctx, field) if err != nil { return graphql.Null } @@ -61325,7 +61308,7 @@ func (ec *executionContext) _Count_extension(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Rank, nil }) if err != nil { ec.Error(ctx, err) @@ -61334,135 +61317,19 @@ func (ec *executionContext) _Count_extension(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Count_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactPoint_rank(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Count", + Object: "ContactPoint", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -61755,8 +61622,8 @@ func (ec *executionContext) fieldContext_Count_comparator(_ context.Context, fie return fc, nil } -func (ec *executionContext) _DataRequirement_type(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_type(ctx, field) +func (ec *executionContext) _Count_extension(ctx context.Context, field graphql.CollectedField, obj *model.Count) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Count_extension(ctx, field) if err != nil { return graphql.Null } @@ -61769,7 +61636,7 @@ func (ec *executionContext) _DataRequirement_type(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -61778,26 +61645,142 @@ func (ec *executionContext) _DataRequirement_type(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Count_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DataRequirement", + Object: "Count", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _DataRequirement_valueFilter(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_valueFilter(ctx, field) +func (ec *executionContext) _DataRequirement_type(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_type(ctx, field) if err != nil { return graphql.Null } @@ -61810,7 +61793,7 @@ func (ec *executionContext) _DataRequirement_valueFilter(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueFilter, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -61819,46 +61802,26 @@ func (ec *executionContext) _DataRequirement_valueFilter(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.DataRequirementValueFilter) + res := resTmp.(*string) fc.Result = res - return ec.marshalODataRequirementValueFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementValueFilter(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_valueFilter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_DataRequirementValueFilter_extension(ctx, field) - case "id": - return ec.fieldContext_DataRequirementValueFilter_id(ctx, field) - case "path": - return ec.fieldContext_DataRequirementValueFilter_path(ctx, field) - case "comparator": - return ec.fieldContext_DataRequirementValueFilter_comparator(ctx, field) - case "resourceType": - return ec.fieldContext_DataRequirementValueFilter_resourceType(ctx, field) - case "searchParam": - return ec.fieldContext_DataRequirementValueFilter_searchParam(ctx, field) - case "valueDateTime": - return ec.fieldContext_DataRequirementValueFilter_valueDateTime(ctx, field) - case "valueDuration": - return ec.fieldContext_DataRequirementValueFilter_valueDuration(ctx, field) - case "valuePeriod": - return ec.fieldContext_DataRequirementValueFilter_valuePeriod(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DataRequirementValueFilter", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DataRequirement_dateFilter(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_dateFilter(ctx, field) +func (ec *executionContext) _DataRequirement_valueFilter(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_valueFilter(ctx, field) if err != nil { return graphql.Null } @@ -61871,7 +61834,7 @@ func (ec *executionContext) _DataRequirement_dateFilter(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DateFilter, nil + return obj.ValueFilter, nil }) if err != nil { ec.Error(ctx, err) @@ -61880,12 +61843,12 @@ func (ec *executionContext) _DataRequirement_dateFilter(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.DataRequirementDateFilter) + res := resTmp.([]*model.DataRequirementValueFilter) fc.Result = res - return ec.marshalODataRequirementDateFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementDateFilter(ctx, field.Selections, res) + return ec.marshalODataRequirementValueFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementValueFilter(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_dateFilter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_valueFilter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, @@ -61893,31 +61856,33 @@ func (ec *executionContext) fieldContext_DataRequirement_dateFilter(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "comparator": + return ec.fieldContext_DataRequirementValueFilter_comparator(ctx, field) + case "extension": + return ec.fieldContext_DataRequirementValueFilter_extension(ctx, field) case "id": - return ec.fieldContext_DataRequirementDateFilter_id(ctx, field) - case "path": - return ec.fieldContext_DataRequirementDateFilter_path(ctx, field) + return ec.fieldContext_DataRequirementValueFilter_id(ctx, field) case "resourceType": - return ec.fieldContext_DataRequirementDateFilter_resourceType(ctx, field) + return ec.fieldContext_DataRequirementValueFilter_resourceType(ctx, field) case "searchParam": - return ec.fieldContext_DataRequirementDateFilter_searchParam(ctx, field) - case "valueDateTime": - return ec.fieldContext_DataRequirementDateFilter_valueDateTime(ctx, field) + return ec.fieldContext_DataRequirementValueFilter_searchParam(ctx, field) case "valueDuration": - return ec.fieldContext_DataRequirementDateFilter_valueDuration(ctx, field) + return ec.fieldContext_DataRequirementValueFilter_valueDuration(ctx, field) + case "path": + return ec.fieldContext_DataRequirementValueFilter_path(ctx, field) + case "valueDateTime": + return ec.fieldContext_DataRequirementValueFilter_valueDateTime(ctx, field) case "valuePeriod": - return ec.fieldContext_DataRequirementDateFilter_valuePeriod(ctx, field) - case "extension": - return ec.fieldContext_DataRequirementDateFilter_extension(ctx, field) + return ec.fieldContext_DataRequirementValueFilter_valuePeriod(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DataRequirementDateFilter", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DataRequirementValueFilter", field.Name) }, } return fc, nil } -func (ec *executionContext) _DataRequirement_limit(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_limit(ctx, field) +func (ec *executionContext) _DataRequirement_id(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_id(ctx, field) if err != nil { return graphql.Null } @@ -61930,7 +61895,7 @@ func (ec *executionContext) _DataRequirement_limit(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Limit, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -61944,7 +61909,7 @@ func (ec *executionContext) _DataRequirement_limit(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_limit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, @@ -61957,8 +61922,8 @@ func (ec *executionContext) fieldContext_DataRequirement_limit(_ context.Context return fc, nil } -func (ec *executionContext) _DataRequirement_subjectCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) +func (ec *executionContext) _DataRequirement_profile(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_profile(ctx, field) if err != nil { return graphql.Null } @@ -61971,7 +61936,7 @@ func (ec *executionContext) _DataRequirement_subjectCodeableConcept(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubjectCodeableConcept, nil + return obj.Profile, nil }) if err != nil { ec.Error(ctx, err) @@ -61980,38 +61945,26 @@ func (ec *executionContext) _DataRequirement_subjectCodeableConcept(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_subjectCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DataRequirement_extension(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_extension(ctx, field) +func (ec *executionContext) _DataRequirement_subjectReference(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_subjectReference(ctx, field) if err != nil { return graphql.Null } @@ -62024,21 +61977,24 @@ func (ec *executionContext) _DataRequirement_extension(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.SubjectReference, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.GroupType) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNGroupType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_subjectReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, @@ -62046,129 +62002,66 @@ func (ec *executionContext) fieldContext_DataRequirement_extension(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "language": + return ec.fieldContext_GroupType_language(ctx, field) + case "extension": + return ec.fieldContext_GroupType_extension(ctx, field) + case "implicitRules": + return ec.fieldContext_GroupType_implicitRules(ctx, field) + case "identifier": + return ec.fieldContext_GroupType_identifier(ctx, field) + case "member": + return ec.fieldContext_GroupType_member(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_GroupType_id(ctx, field) + case "quantity": + return ec.fieldContext_GroupType_quantity(ctx, field) + case "name": + return ec.fieldContext_GroupType_name(ctx, field) + case "text": + return ec.fieldContext_GroupType_text(ctx, field) + case "contained": + return ec.fieldContext_GroupType_contained(ctx, field) + case "code": + return ec.fieldContext_GroupType_code(ctx, field) + case "description": + return ec.fieldContext_GroupType_description(ctx, field) + case "modifierExtension": + return ec.fieldContext_GroupType_modifierExtension(ctx, field) + case "active": + return ec.fieldContext_GroupType_active(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_GroupType_resourceType(ctx, field) + case "membership": + return ec.fieldContext_GroupType_membership(ctx, field) + case "type": + return ec.fieldContext_GroupType_type(ctx, field) + case "characteristic": + return ec.fieldContext_GroupType_characteristic(ctx, field) + case "managingEntity": + return ec.fieldContext_GroupType_managingEntity(ctx, field) + case "meta": + return ec.fieldContext_GroupType_meta(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DataRequirement_subjectReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _DataRequirement_mustSupport(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_mustSupport(ctx, field) +func (ec *executionContext) _DataRequirement_codeFilter(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_codeFilter(ctx, field) if err != nil { return graphql.Null } @@ -62181,7 +62074,7 @@ func (ec *executionContext) _DataRequirement_mustSupport(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MustSupport, nil + return obj.CodeFilter, nil }) if err != nil { ec.Error(ctx, err) @@ -62190,26 +62083,42 @@ func (ec *executionContext) _DataRequirement_mustSupport(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.DataRequirementCodeFilter) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalODataRequirementCodeFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementCodeFilter(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_mustSupport(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_codeFilter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_DataRequirementCodeFilter_id(ctx, field) + case "path": + return ec.fieldContext_DataRequirementCodeFilter_path(ctx, field) + case "resourceType": + return ec.fieldContext_DataRequirementCodeFilter_resourceType(ctx, field) + case "searchParam": + return ec.fieldContext_DataRequirementCodeFilter_searchParam(ctx, field) + case "valueSet": + return ec.fieldContext_DataRequirementCodeFilter_valueSet(ctx, field) + case "code": + return ec.fieldContext_DataRequirementCodeFilter_code(ctx, field) + case "extension": + return ec.fieldContext_DataRequirementCodeFilter_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DataRequirementCodeFilter", field.Name) }, } return fc, nil } -func (ec *executionContext) _DataRequirement_sort(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_sort(ctx, field) +func (ec *executionContext) _DataRequirement_limit(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_limit(ctx, field) if err != nil { return graphql.Null } @@ -62222,7 +62131,7 @@ func (ec *executionContext) _DataRequirement_sort(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Sort, nil + return obj.Limit, nil }) if err != nil { ec.Error(ctx, err) @@ -62231,38 +62140,26 @@ func (ec *executionContext) _DataRequirement_sort(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.DataRequirementSort) + res := resTmp.(*string) fc.Result = res - return ec.marshalODataRequirementSort2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementSort(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_sort(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_limit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "direction": - return ec.fieldContext_DataRequirementSort_direction(ctx, field) - case "extension": - return ec.fieldContext_DataRequirementSort_extension(ctx, field) - case "id": - return ec.fieldContext_DataRequirementSort_id(ctx, field) - case "path": - return ec.fieldContext_DataRequirementSort_path(ctx, field) - case "resourceType": - return ec.fieldContext_DataRequirementSort_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DataRequirementSort", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DataRequirement_id(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_id(ctx, field) +func (ec *executionContext) _DataRequirement_subjectCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -62275,7 +62172,7 @@ func (ec *executionContext) _DataRequirement_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.SubjectCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -62284,26 +62181,38 @@ func (ec *executionContext) _DataRequirement_id(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_subjectCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _DataRequirement_profile(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_profile(ctx, field) +func (ec *executionContext) _DataRequirement_mustSupport(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_mustSupport(ctx, field) if err != nil { return graphql.Null } @@ -62316,7 +62225,7 @@ func (ec *executionContext) _DataRequirement_profile(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Profile, nil + return obj.MustSupport, nil }) if err != nil { ec.Error(ctx, err) @@ -62330,7 +62239,7 @@ func (ec *executionContext) _DataRequirement_profile(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_mustSupport(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, @@ -62343,8 +62252,8 @@ func (ec *executionContext) fieldContext_DataRequirement_profile(_ context.Conte return fc, nil } -func (ec *executionContext) _DataRequirement_subjectReference(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_subjectReference(ctx, field) +func (ec *executionContext) _DataRequirement_extension(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_extension(ctx, field) if err != nil { return graphql.Null } @@ -62357,7 +62266,7 @@ func (ec *executionContext) _DataRequirement_subjectReference(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubjectReference, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -62366,12 +62275,12 @@ func (ec *executionContext) _DataRequirement_subjectReference(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GroupType) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOGroupType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_subjectReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, @@ -62379,61 +62288,124 @@ func (ec *executionContext) fieldContext_DataRequirement_subjectReference(ctx co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "member": - return ec.fieldContext_GroupType_member(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_GroupType_extension(ctx, field) - case "meta": - return ec.fieldContext_GroupType_meta(ctx, field) - case "contained": - return ec.fieldContext_GroupType_contained(ctx, field) - case "membership": - return ec.fieldContext_GroupType_membership(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_GroupType_resourceType(ctx, field) - case "characteristic": - return ec.fieldContext_GroupType_characteristic(ctx, field) - case "quantity": - return ec.fieldContext_GroupType_quantity(ctx, field) - case "type": - return ec.fieldContext_GroupType_type(ctx, field) - case "active": - return ec.fieldContext_GroupType_active(ctx, field) - case "description": - return ec.fieldContext_GroupType_description(ctx, field) - case "code": - return ec.fieldContext_GroupType_code(ctx, field) - case "id": - return ec.fieldContext_GroupType_id(ctx, field) - case "language": - return ec.fieldContext_GroupType_language(ctx, field) - case "modifierExtension": - return ec.fieldContext_GroupType_modifierExtension(ctx, field) - case "name": - return ec.fieldContext_GroupType_name(ctx, field) - case "implicitRules": - return ec.fieldContext_GroupType_implicitRules(ctx, field) - case "text": - return ec.fieldContext_GroupType_text(ctx, field) - case "managingEntity": - return ec.fieldContext_GroupType_managingEntity(ctx, field) - case "identifier": - return ec.fieldContext_GroupType_identifier(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DataRequirement_subjectReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -62478,8 +62450,8 @@ func (ec *executionContext) fieldContext_DataRequirement_resourceType(_ context. return fc, nil } -func (ec *executionContext) _DataRequirement_codeFilter(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirement_codeFilter(ctx, field) +func (ec *executionContext) _DataRequirement_sort(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_sort(ctx, field) if err != nil { return graphql.Null } @@ -62492,7 +62464,7 @@ func (ec *executionContext) _DataRequirement_codeFilter(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CodeFilter, nil + return obj.Sort, nil }) if err != nil { ec.Error(ctx, err) @@ -62501,12 +62473,12 @@ func (ec *executionContext) _DataRequirement_codeFilter(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.DataRequirementCodeFilter) + res := resTmp.([]*model.DataRequirementSort) fc.Result = res - return ec.marshalODataRequirementCodeFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementCodeFilter(ctx, field.Selections, res) + return ec.marshalODataRequirementSort2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementSort(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirement_codeFilter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_sort(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirement", Field: field, @@ -62514,29 +62486,25 @@ func (ec *executionContext) fieldContext_DataRequirement_codeFilter(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_DataRequirementCodeFilter_extension(ctx, field) - case "id": - return ec.fieldContext_DataRequirementCodeFilter_id(ctx, field) case "path": - return ec.fieldContext_DataRequirementCodeFilter_path(ctx, field) + return ec.fieldContext_DataRequirementSort_path(ctx, field) case "resourceType": - return ec.fieldContext_DataRequirementCodeFilter_resourceType(ctx, field) - case "searchParam": - return ec.fieldContext_DataRequirementCodeFilter_searchParam(ctx, field) - case "valueSet": - return ec.fieldContext_DataRequirementCodeFilter_valueSet(ctx, field) - case "code": - return ec.fieldContext_DataRequirementCodeFilter_code(ctx, field) + return ec.fieldContext_DataRequirementSort_resourceType(ctx, field) + case "direction": + return ec.fieldContext_DataRequirementSort_direction(ctx, field) + case "extension": + return ec.fieldContext_DataRequirementSort_extension(ctx, field) + case "id": + return ec.fieldContext_DataRequirementSort_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DataRequirementCodeFilter", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DataRequirementSort", field.Name) }, } return fc, nil } -func (ec *executionContext) _DataRequirementCodeFilter_extension(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementCodeFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementCodeFilter_extension(ctx, field) +func (ec *executionContext) _DataRequirement_dateFilter(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_dateFilter(ctx, field) if err != nil { return graphql.Null } @@ -62549,7 +62517,7 @@ func (ec *executionContext) _DataRequirementCodeFilter_extension(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.DateFilter, nil }) if err != nil { ec.Error(ctx, err) @@ -62558,135 +62526,37 @@ func (ec *executionContext) _DataRequirementCodeFilter_extension(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.DataRequirementDateFilter) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalODataRequirementDateFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementDateFilter(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementCodeFilter_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirement_dateFilter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DataRequirementCodeFilter", + Object: "DataRequirement", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "resourceType": + return ec.fieldContext_DataRequirementDateFilter_resourceType(ctx, field) + case "searchParam": + return ec.fieldContext_DataRequirementDateFilter_searchParam(ctx, field) case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + return ec.fieldContext_DataRequirementDateFilter_valueDateTime(ctx, field) case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + return ec.fieldContext_DataRequirementDateFilter_valueDuration(ctx, field) case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_DataRequirementDateFilter_valuePeriod(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_DataRequirementDateFilter_extension(ctx, field) + case "id": + return ec.fieldContext_DataRequirementDateFilter_id(ctx, field) + case "path": + return ec.fieldContext_DataRequirementDateFilter_path(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DataRequirementDateFilter", field.Name) }, } return fc, nil @@ -62933,14 +62803,6 @@ func (ec *executionContext) fieldContext_DataRequirementCodeFilter_code(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) case "userSelected": return ec.fieldContext_Coding_userSelected(ctx, field) case "version": @@ -62949,6 +62811,14 @@ func (ec *executionContext) fieldContext_DataRequirementCodeFilter_code(_ contex return ec.fieldContext_Coding_code(ctx, field) case "display": return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, @@ -62956,8 +62826,8 @@ func (ec *executionContext) fieldContext_DataRequirementCodeFilter_code(_ contex return fc, nil } -func (ec *executionContext) _DataRequirementDateFilter_id(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementDateFilter_id(ctx, field) +func (ec *executionContext) _DataRequirementCodeFilter_extension(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementCodeFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementCodeFilter_extension(ctx, field) if err != nil { return graphql.Null } @@ -62970,7 +62840,7 @@ func (ec *executionContext) _DataRequirementDateFilter_id(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -62979,26 +62849,142 @@ func (ec *executionContext) _DataRequirementDateFilter_id(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementDateFilter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementCodeFilter_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DataRequirementDateFilter", + Object: "DataRequirementCodeFilter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _DataRequirementDateFilter_path(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementDateFilter_path(ctx, field) +func (ec *executionContext) _DataRequirementDateFilter_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementDateFilter_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -63011,7 +62997,7 @@ func (ec *executionContext) _DataRequirementDateFilter_path(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Path, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -63025,7 +63011,7 @@ func (ec *executionContext) _DataRequirementDateFilter_path(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementDateFilter_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementDateFilter_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementDateFilter", Field: field, @@ -63038,8 +63024,8 @@ func (ec *executionContext) fieldContext_DataRequirementDateFilter_path(_ contex return fc, nil } -func (ec *executionContext) _DataRequirementDateFilter_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementDateFilter_resourceType(ctx, field) +func (ec *executionContext) _DataRequirementDateFilter_searchParam(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementDateFilter_searchParam(ctx, field) if err != nil { return graphql.Null } @@ -63052,7 +63038,7 @@ func (ec *executionContext) _DataRequirementDateFilter_resourceType(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.SearchParam, nil }) if err != nil { ec.Error(ctx, err) @@ -63066,7 +63052,7 @@ func (ec *executionContext) _DataRequirementDateFilter_resourceType(ctx context. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementDateFilter_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementDateFilter_searchParam(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementDateFilter", Field: field, @@ -63079,8 +63065,8 @@ func (ec *executionContext) fieldContext_DataRequirementDateFilter_resourceType( return fc, nil } -func (ec *executionContext) _DataRequirementDateFilter_searchParam(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementDateFilter_searchParam(ctx, field) +func (ec *executionContext) _DataRequirementDateFilter_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementDateFilter_valueDateTime(ctx, field) if err != nil { return graphql.Null } @@ -63093,7 +63079,7 @@ func (ec *executionContext) _DataRequirementDateFilter_searchParam(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SearchParam, nil + return obj.ValueDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -63107,7 +63093,7 @@ func (ec *executionContext) _DataRequirementDateFilter_searchParam(ctx context.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementDateFilter_searchParam(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementDateFilter_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementDateFilter", Field: field, @@ -63120,49 +63106,8 @@ func (ec *executionContext) fieldContext_DataRequirementDateFilter_searchParam(_ return fc, nil } -func (ec *executionContext) _DataRequirementDateFilter_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementDateFilter_valueDateTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ValueDateTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DataRequirementDateFilter_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataRequirementDateFilter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataRequirementDateFilter_valueDuration(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementDateFilter_valueDuration(ctx, field) +func (ec *executionContext) _DataRequirementDateFilter_valueDuration(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementDateFilter_valueDuration(ctx, field) if err != nil { return graphql.Null } @@ -63197,12 +63142,6 @@ func (ec *executionContext) fieldContext_DataRequirementDateFilter_valueDuration IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) - case "extension": - return ec.fieldContext_Duration_extension(ctx, field) case "id": return ec.fieldContext_Duration_id(ctx, field) case "resourceType": @@ -63213,6 +63152,12 @@ func (ec *executionContext) fieldContext_DataRequirementDateFilter_valueDuration return ec.fieldContext_Duration_unit(ctx, field) case "value": return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) + case "extension": + return ec.fieldContext_Duration_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, @@ -63256,16 +63201,16 @@ func (ec *executionContext) fieldContext_DataRequirementDateFilter_valuePeriod(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -63309,120 +63254,120 @@ func (ec *executionContext) fieldContext_DataRequirementDateFilter_extension(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -63430,8 +63375,8 @@ func (ec *executionContext) fieldContext_DataRequirementDateFilter_extension(_ c return fc, nil } -func (ec *executionContext) _DataRequirementSort_direction(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementSort_direction(ctx, field) +func (ec *executionContext) _DataRequirementDateFilter_id(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementDateFilter_id(ctx, field) if err != nil { return graphql.Null } @@ -63444,7 +63389,7 @@ func (ec *executionContext) _DataRequirementSort_direction(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Direction, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -63458,9 +63403,9 @@ func (ec *executionContext) _DataRequirementSort_direction(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementSort_direction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementDateFilter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DataRequirementSort", + Object: "DataRequirementDateFilter", Field: field, IsMethod: false, IsResolver: false, @@ -63471,8 +63416,8 @@ func (ec *executionContext) fieldContext_DataRequirementSort_direction(_ context return fc, nil } -func (ec *executionContext) _DataRequirementSort_extension(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementSort_extension(ctx, field) +func (ec *executionContext) _DataRequirementDateFilter_path(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementDateFilter_path(ctx, field) if err != nil { return graphql.Null } @@ -63485,7 +63430,7 @@ func (ec *executionContext) _DataRequirementSort_extension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Path, nil }) if err != nil { ec.Error(ctx, err) @@ -63494,142 +63439,26 @@ func (ec *executionContext) _DataRequirementSort_extension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementSort_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementDateFilter_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DataRequirementSort", + Object: "DataRequirementDateFilter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DataRequirementSort_id(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementSort_id(ctx, field) +func (ec *executionContext) _DataRequirementSort_path(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementSort_path(ctx, field) if err != nil { return graphql.Null } @@ -63642,7 +63471,7 @@ func (ec *executionContext) _DataRequirementSort_id(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Path, nil }) if err != nil { ec.Error(ctx, err) @@ -63656,7 +63485,7 @@ func (ec *executionContext) _DataRequirementSort_id(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementSort_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementSort_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementSort", Field: field, @@ -63669,8 +63498,8 @@ func (ec *executionContext) fieldContext_DataRequirementSort_id(_ context.Contex return fc, nil } -func (ec *executionContext) _DataRequirementSort_path(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementSort_path(ctx, field) +func (ec *executionContext) _DataRequirementSort_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementSort_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -63683,7 +63512,7 @@ func (ec *executionContext) _DataRequirementSort_path(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Path, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -63697,7 +63526,7 @@ func (ec *executionContext) _DataRequirementSort_path(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementSort_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementSort_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementSort", Field: field, @@ -63710,8 +63539,8 @@ func (ec *executionContext) fieldContext_DataRequirementSort_path(_ context.Cont return fc, nil } -func (ec *executionContext) _DataRequirementSort_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementSort_resourceType(ctx, field) +func (ec *executionContext) _DataRequirementSort_direction(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementSort_direction(ctx, field) if err != nil { return graphql.Null } @@ -63724,7 +63553,7 @@ func (ec *executionContext) _DataRequirementSort_resourceType(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Direction, nil }) if err != nil { ec.Error(ctx, err) @@ -63738,7 +63567,7 @@ func (ec *executionContext) _DataRequirementSort_resourceType(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementSort_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementSort_direction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementSort", Field: field, @@ -63751,8 +63580,8 @@ func (ec *executionContext) fieldContext_DataRequirementSort_resourceType(_ cont return fc, nil } -func (ec *executionContext) _DataRequirementValueFilter_extension(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementValueFilter_extension(ctx, field) +func (ec *executionContext) _DataRequirementSort_extension(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementSort_extension(ctx, field) if err != nil { return graphql.Null } @@ -63779,128 +63608,128 @@ func (ec *executionContext) _DataRequirementValueFilter_extension(ctx context.Co return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementValueFilter_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementSort_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DataRequirementValueFilter", + Object: "DataRequirementSort", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -63908,8 +63737,8 @@ func (ec *executionContext) fieldContext_DataRequirementValueFilter_extension(_ return fc, nil } -func (ec *executionContext) _DataRequirementValueFilter_id(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementValueFilter_id(ctx, field) +func (ec *executionContext) _DataRequirementSort_id(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementSort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementSort_id(ctx, field) if err != nil { return graphql.Null } @@ -63936,9 +63765,9 @@ func (ec *executionContext) _DataRequirementValueFilter_id(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementValueFilter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementSort_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DataRequirementValueFilter", + Object: "DataRequirementSort", Field: field, IsMethod: false, IsResolver: false, @@ -63949,8 +63778,8 @@ func (ec *executionContext) fieldContext_DataRequirementValueFilter_id(_ context return fc, nil } -func (ec *executionContext) _DataRequirementValueFilter_path(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementValueFilter_path(ctx, field) +func (ec *executionContext) _DataRequirementValueFilter_comparator(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementValueFilter_comparator(ctx, field) if err != nil { return graphql.Null } @@ -63963,7 +63792,7 @@ func (ec *executionContext) _DataRequirementValueFilter_path(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Path, nil + return obj.Comparator, nil }) if err != nil { ec.Error(ctx, err) @@ -63977,7 +63806,7 @@ func (ec *executionContext) _DataRequirementValueFilter_path(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementValueFilter_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementValueFilter_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementValueFilter", Field: field, @@ -63990,8 +63819,8 @@ func (ec *executionContext) fieldContext_DataRequirementValueFilter_path(_ conte return fc, nil } -func (ec *executionContext) _DataRequirementValueFilter_comparator(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementValueFilter_comparator(ctx, field) +func (ec *executionContext) _DataRequirementValueFilter_extension(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementValueFilter_extension(ctx, field) if err != nil { return graphql.Null } @@ -64004,7 +63833,7 @@ func (ec *executionContext) _DataRequirementValueFilter_comparator(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Comparator, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -64013,26 +63842,142 @@ func (ec *executionContext) _DataRequirementValueFilter_comparator(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementValueFilter_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementValueFilter_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementValueFilter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _DataRequirementValueFilter_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementValueFilter_resourceType(ctx, field) +func (ec *executionContext) _DataRequirementValueFilter_id(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementValueFilter_id(ctx, field) if err != nil { return graphql.Null } @@ -64045,7 +63990,7 @@ func (ec *executionContext) _DataRequirementValueFilter_resourceType(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -64059,7 +64004,7 @@ func (ec *executionContext) _DataRequirementValueFilter_resourceType(ctx context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementValueFilter_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementValueFilter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementValueFilter", Field: field, @@ -64072,8 +64017,8 @@ func (ec *executionContext) fieldContext_DataRequirementValueFilter_resourceType return fc, nil } -func (ec *executionContext) _DataRequirementValueFilter_searchParam(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementValueFilter_searchParam(ctx, field) +func (ec *executionContext) _DataRequirementValueFilter_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementValueFilter_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -64086,7 +64031,7 @@ func (ec *executionContext) _DataRequirementValueFilter_searchParam(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SearchParam, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -64100,7 +64045,7 @@ func (ec *executionContext) _DataRequirementValueFilter_searchParam(ctx context. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementValueFilter_searchParam(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementValueFilter_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementValueFilter", Field: field, @@ -64113,8 +64058,8 @@ func (ec *executionContext) fieldContext_DataRequirementValueFilter_searchParam( return fc, nil } -func (ec *executionContext) _DataRequirementValueFilter_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementValueFilter_valueDateTime(ctx, field) +func (ec *executionContext) _DataRequirementValueFilter_searchParam(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementValueFilter_searchParam(ctx, field) if err != nil { return graphql.Null } @@ -64127,7 +64072,7 @@ func (ec *executionContext) _DataRequirementValueFilter_valueDateTime(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDateTime, nil + return obj.SearchParam, nil }) if err != nil { ec.Error(ctx, err) @@ -64141,7 +64086,7 @@ func (ec *executionContext) _DataRequirementValueFilter_valueDateTime(ctx contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementValueFilter_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementValueFilter_searchParam(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementValueFilter", Field: field, @@ -64190,12 +64135,6 @@ func (ec *executionContext) fieldContext_DataRequirementValueFilter_valueDuratio IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) - case "extension": - return ec.fieldContext_Duration_extension(ctx, field) case "id": return ec.fieldContext_Duration_id(ctx, field) case "resourceType": @@ -64206,6 +64145,12 @@ func (ec *executionContext) fieldContext_DataRequirementValueFilter_valueDuratio return ec.fieldContext_Duration_unit(ctx, field) case "value": return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) + case "extension": + return ec.fieldContext_Duration_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, @@ -64213,8 +64158,8 @@ func (ec *executionContext) fieldContext_DataRequirementValueFilter_valueDuratio return fc, nil } -func (ec *executionContext) _DataRequirementValueFilter_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DataRequirementValueFilter_valuePeriod(ctx, field) +func (ec *executionContext) _DataRequirementValueFilter_path(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementValueFilter_path(ctx, field) if err != nil { return graphql.Null } @@ -64227,7 +64172,7 @@ func (ec *executionContext) _DataRequirementValueFilter_valuePeriod(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValuePeriod, nil + return obj.Path, nil }) if err != nil { ec.Error(ctx, err) @@ -64236,38 +64181,26 @@ func (ec *executionContext) _DataRequirementValueFilter_valuePeriod(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DataRequirementValueFilter_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementValueFilter_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DataRequirementValueFilter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportMedia_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportMedia) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportMedia_modifierExtension(ctx, field) +func (ec *executionContext) _DataRequirementValueFilter_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementValueFilter_valueDateTime(ctx, field) if err != nil { return graphql.Null } @@ -64280,7 +64213,7 @@ func (ec *executionContext) _DiagnosticReportMedia_modifierExtension(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ValueDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -64289,142 +64222,26 @@ func (ec *executionContext) _DiagnosticReportMedia_modifierExtension(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportMedia_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementValueFilter_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DiagnosticReportMedia", + Object: "DataRequirementValueFilter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportMedia_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportMedia) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportMedia_resourceType(ctx, field) +func (ec *executionContext) _DataRequirementValueFilter_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementValueFilter_valuePeriod(ctx, field) if err != nil { return graphql.Null } @@ -64437,7 +64254,7 @@ func (ec *executionContext) _DiagnosticReportMedia_resourceType(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ValuePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -64446,19 +64263,31 @@ func (ec *executionContext) _DiagnosticReportMedia_resourceType(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportMedia_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DataRequirementValueFilter_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DiagnosticReportMedia", + Object: "DataRequirementValueFilter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil @@ -64541,120 +64370,120 @@ func (ec *executionContext) fieldContext_DiagnosticReportMedia_extension(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) case "valueId": return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) case "valueAvailability": return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -64724,11 +64553,14 @@ func (ec *executionContext) _DiagnosticReportMedia_link(ctx context.Context, fie return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.DocumentReferenceType) + res := resTmp.(*model.DocumentReferenceType) fc.Result = res - return ec.marshalODocumentReferenceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) + return ec.marshalNDocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_DiagnosticReportMedia_link(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -64739,68 +64571,68 @@ func (ec *executionContext) fieldContext_DiagnosticReportMedia_link(ctx context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "version": - return ec.fieldContext_DocumentReferenceType_version(ctx, field) - case "language": - return ec.fieldContext_DocumentReferenceType_language(ctx, field) - case "implicitRules": - return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) - case "bodySite": - return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "modality": + return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "securityLabel": + return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) + case "meta": + return ec.fieldContext_DocumentReferenceType_meta(ctx, field) + case "subject": + return ec.fieldContext_DocumentReferenceType_subject(ctx, field) + case "id": + return ec.fieldContext_DocumentReferenceType_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) + case "contained": + return ec.fieldContext_DocumentReferenceType_contained(ctx, field) + case "event": + return ec.fieldContext_DocumentReferenceType_event(ctx, field) case "practiceSetting": return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) + case "bodySite": + return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "identifier": + return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) + case "date": + return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "language": + return ec.fieldContext_DocumentReferenceType_language(ctx, field) case "author": return ec.fieldContext_DocumentReferenceType_author(ctx, field) - case "basedOn": - return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) - case "resourceType": - return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) - case "status": - return ec.fieldContext_DocumentReferenceType_status(ctx, field) case "type": return ec.fieldContext_DocumentReferenceType_type(ctx, field) - case "modality": - return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "category": + return ec.fieldContext_DocumentReferenceType_category(ctx, field) case "period": return ec.fieldContext_DocumentReferenceType_period(ctx, field) + case "facilityType": + return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) case "attester": return ec.fieldContext_DocumentReferenceType_attester(ctx, field) + case "implicitRules": + return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) case "docStatus": return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) - case "meta": - return ec.fieldContext_DocumentReferenceType_meta(ctx, field) case "custodian": return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) - case "event": - return ec.fieldContext_DocumentReferenceType_event(ctx, field) - case "relatesTo": - return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) - case "facilityType": - return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) - case "id": - return ec.fieldContext_DocumentReferenceType_id(ctx, field) - case "securityLabel": - return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) - case "identifier": - return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) case "description": return ec.fieldContext_DocumentReferenceType_description(ctx, field) - case "extension": - return ec.fieldContext_DocumentReferenceType_extension(ctx, field) - case "category": - return ec.fieldContext_DocumentReferenceType_category(ctx, field) + case "basedOn": + return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) + case "relatesTo": + return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) + case "resourceType": + return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) + case "status": + return ec.fieldContext_DocumentReferenceType_status(ctx, field) case "text": return ec.fieldContext_DocumentReferenceType_text(ctx, field) - case "contained": - return ec.fieldContext_DocumentReferenceType_contained(ctx, field) - case "subject": - return ec.fieldContext_DocumentReferenceType_subject(ctx, field) case "content": return ec.fieldContext_DocumentReferenceType_content(ctx, field) - case "date": - return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "version": + return ec.fieldContext_DocumentReferenceType_version(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceType_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) }, @@ -64819,49 +64651,8 @@ func (ec *executionContext) fieldContext_DiagnosticReportMedia_link(ctx context. return fc, nil } -func (ec *executionContext) _DiagnosticReportSupportingInfo_id(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportSupportingInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportSupportingInfo_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiagnosticReportSupportingInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiagnosticReportSupportingInfo_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportSupportingInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportSupportingInfo_modifierExtension(ctx, field) +func (ec *executionContext) _DiagnosticReportMedia_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportMedia) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportMedia_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -64888,128 +64679,128 @@ func (ec *executionContext) _DiagnosticReportSupportingInfo_modifierExtension(ct return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportMedia_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DiagnosticReportSupportingInfo", + Object: "DiagnosticReportMedia", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -65017,8 +64808,8 @@ func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_modifier return fc, nil } -func (ec *executionContext) _DiagnosticReportSupportingInfo_reference(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportSupportingInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportSupportingInfo_reference(ctx, field) +func (ec *executionContext) _DiagnosticReportMedia_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportMedia) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportMedia_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -65031,7 +64822,7 @@ func (ec *executionContext) _DiagnosticReportSupportingInfo_reference(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reference, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -65040,32 +64831,21 @@ func (ec *executionContext) _DiagnosticReportSupportingInfo_reference(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.([]model.DiagnosticReportSupportingInfoReferenceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalODiagnosticReportSupportingInfoReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoReferenceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_reference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportMedia_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DiagnosticReportSupportingInfo", + Object: "DiagnosticReportMedia", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiagnosticReportSupportingInfoReferenceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportSupportingInfo_reference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -65146,6 +64926,8 @@ func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_type(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -65154,8 +64936,6 @@ func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_type(_ c return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -65199,120 +64979,120 @@ func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_extensio IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -65320,8 +65100,8 @@ func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_extensio return fc, nil } -func (ec *executionContext) _DiagnosticReportType_result(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_result(ctx, field) +func (ec *executionContext) _DiagnosticReportSupportingInfo_id(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportSupportingInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportSupportingInfo_id(ctx, field) if err != nil { return graphql.Null } @@ -65334,7 +65114,7 @@ func (ec *executionContext) _DiagnosticReportType_result(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Result, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -65343,135 +65123,26 @@ func (ec *executionContext) _DiagnosticReportType_result(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ObservationType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOObservationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_result(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DiagnosticReportType", + Object: "DiagnosticReportSupportingInfo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "effectivePeriod": - return ec.fieldContext_ObservationType_effectivePeriod(ctx, field) - case "derivedFrom": - return ec.fieldContext_ObservationType_derivedFrom(ctx, field) - case "effectiveInstant": - return ec.fieldContext_ObservationType_effectiveInstant(ctx, field) - case "valuePeriod": - return ec.fieldContext_ObservationType_valuePeriod(ctx, field) - case "instantiatesCanonical": - return ec.fieldContext_ObservationType_instantiatesCanonical(ctx, field) - case "referenceRange": - return ec.fieldContext_ObservationType_referenceRange(ctx, field) - case "code": - return ec.fieldContext_ObservationType_code(ctx, field) - case "category": - return ec.fieldContext_ObservationType_category(ctx, field) - case "valueBoolean": - return ec.fieldContext_ObservationType_valueBoolean(ctx, field) - case "performer": - return ec.fieldContext_ObservationType_performer(ctx, field) - case "bodySite": - return ec.fieldContext_ObservationType_bodySite(ctx, field) - case "text": - return ec.fieldContext_ObservationType_text(ctx, field) - case "valueQuantity": - return ec.fieldContext_ObservationType_valueQuantity(ctx, field) - case "valueString": - return ec.fieldContext_ObservationType_valueString(ctx, field) - case "id": - return ec.fieldContext_ObservationType_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ObservationType_modifierExtension(ctx, field) - case "contained": - return ec.fieldContext_ObservationType_contained(ctx, field) - case "valueAttachment": - return ec.fieldContext_ObservationType_valueAttachment(ctx, field) - case "issued": - return ec.fieldContext_ObservationType_issued(ctx, field) - case "implicitRules": - return ec.fieldContext_ObservationType_implicitRules(ctx, field) - case "meta": - return ec.fieldContext_ObservationType_meta(ctx, field) - case "method": - return ec.fieldContext_ObservationType_method(ctx, field) - case "bodyStructure": - return ec.fieldContext_ObservationType_bodyStructure(ctx, field) - case "effectiveDateTime": - return ec.fieldContext_ObservationType_effectiveDateTime(ctx, field) - case "valueRatio": - return ec.fieldContext_ObservationType_valueRatio(ctx, field) - case "interpretation": - return ec.fieldContext_ObservationType_interpretation(ctx, field) - case "valueDateTime": - return ec.fieldContext_ObservationType_valueDateTime(ctx, field) - case "valueTime": - return ec.fieldContext_ObservationType_valueTime(ctx, field) - case "dataAbsentReason": - return ec.fieldContext_ObservationType_dataAbsentReason(ctx, field) - case "resourceType": - return ec.fieldContext_ObservationType_resourceType(ctx, field) - case "note": - return ec.fieldContext_ObservationType_note(ctx, field) - case "basedOn": - return ec.fieldContext_ObservationType_basedOn(ctx, field) - case "focus": - return ec.fieldContext_ObservationType_focus(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_ObservationType_valueCodeableConcept(ctx, field) - case "hasMember": - return ec.fieldContext_ObservationType_hasMember(ctx, field) - case "valueInteger": - return ec.fieldContext_ObservationType_valueInteger(ctx, field) - case "language": - return ec.fieldContext_ObservationType_language(ctx, field) - case "identifier": - return ec.fieldContext_ObservationType_identifier(ctx, field) - case "valueSampledData": - return ec.fieldContext_ObservationType_valueSampledData(ctx, field) - case "subject": - return ec.fieldContext_ObservationType_subject(ctx, field) - case "extension": - return ec.fieldContext_ObservationType_extension(ctx, field) - case "triggeredBy": - return ec.fieldContext_ObservationType_triggeredBy(ctx, field) - case "specimen": - return ec.fieldContext_ObservationType_specimen(ctx, field) - case "partOf": - return ec.fieldContext_ObservationType_partOf(ctx, field) - case "component": - return ec.fieldContext_ObservationType_component(ctx, field) - case "effectiveTiming": - return ec.fieldContext_ObservationType_effectiveTiming(ctx, field) - case "valueRange": - return ec.fieldContext_ObservationType_valueRange(ctx, field) - case "status": - return ec.fieldContext_ObservationType_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ObservationType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportType_result_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_implicitRules(ctx, field) +func (ec *executionContext) _DiagnosticReportSupportingInfo_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportSupportingInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportSupportingInfo_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -65484,7 +65155,7 @@ func (ec *executionContext) _DiagnosticReportType_implicitRules(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -65493,26 +65164,142 @@ func (ec *executionContext) _DiagnosticReportType_implicitRules(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DiagnosticReportType", + Object: "DiagnosticReportSupportingInfo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_language(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_language(ctx, field) +func (ec *executionContext) _DiagnosticReportSupportingInfo_reference(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportSupportingInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportSupportingInfo_reference(ctx, field) if err != nil { return graphql.Null } @@ -65525,35 +65312,49 @@ func (ec *executionContext) _DiagnosticReportType_language(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Reference, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.DiagnosticReportSupportingInfoReferenceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNDiagnosticReportSupportingInfoReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoReferenceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_reference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DiagnosticReportType", + Object: "DiagnosticReportSupportingInfo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type DiagnosticReportSupportingInfoReferenceUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DiagnosticReportSupportingInfo_reference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_performer(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_performer(ctx, field) +func (ec *executionContext) _DiagnosticReportType_supportingInfo(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_supportingInfo(ctx, field) if err != nil { return graphql.Null } @@ -65566,28 +65367,31 @@ func (ec *executionContext) _DiagnosticReportType_performer(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Performer, nil + return obj.SupportingInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.DiagnosticReportPerformerUnion) + res := resTmp.(model.DiagnosticReportSupportingInfoUnion) fc.Result = res - return ec.marshalODiagnosticReportPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportPerformerUnion(ctx, field.Selections, res) + return ec.marshalNDiagnosticReportSupportingInfoUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_supportingInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiagnosticReportPerformerUnion does not have child fields") + return nil, errors.New("field of type DiagnosticReportSupportingInfoUnion does not have child fields") }, } defer func() { @@ -65597,15 +65401,15 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_performer(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportType_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DiagnosticReportType_supportingInfo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_presentedForm(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_presentedForm(ctx, field) +func (ec *executionContext) _DiagnosticReportType_specimen(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_specimen(ctx, field) if err != nil { return graphql.Null } @@ -65618,21 +65422,24 @@ func (ec *executionContext) _DiagnosticReportType_presentedForm(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PresentedForm, nil + return obj.Specimen, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Attachment) + res := resTmp.(*model.SpecimenType) fc.Result = res - return ec.marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalNSpecimenType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_presentedForm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_specimen(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, @@ -65640,47 +65447,74 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_presentedForm(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) - case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) + return ec.fieldContext_SpecimenType_resourceType(ctx, field) + case "subject": + return ec.fieldContext_SpecimenType_subject(ctx, field) + case "combined": + return ec.fieldContext_SpecimenType_combined(ctx, field) + case "accessionIdentifier": + return ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) + case "modifierExtension": + return ec.fieldContext_SpecimenType_modifierExtension(ctx, field) + case "type": + return ec.fieldContext_SpecimenType_type(ctx, field) + case "text": + return ec.fieldContext_SpecimenType_text(ctx, field) + case "container": + return ec.fieldContext_SpecimenType_container(ctx, field) + case "implicitRules": + return ec.fieldContext_SpecimenType_implicitRules(ctx, field) + case "parent": + return ec.fieldContext_SpecimenType_parent(ctx, field) + case "meta": + return ec.fieldContext_SpecimenType_meta(ctx, field) + case "condition": + return ec.fieldContext_SpecimenType_condition(ctx, field) + case "feature": + return ec.fieldContext_SpecimenType_feature(ctx, field) + case "contained": + return ec.fieldContext_SpecimenType_contained(ctx, field) case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) - }, - } + return ec.fieldContext_SpecimenType_id(ctx, field) + case "processing": + return ec.fieldContext_SpecimenType_processing(ctx, field) + case "extension": + return ec.fieldContext_SpecimenType_extension(ctx, field) + case "identifier": + return ec.fieldContext_SpecimenType_identifier(ctx, field) + case "collection": + return ec.fieldContext_SpecimenType_collection(ctx, field) + case "receivedTime": + return ec.fieldContext_SpecimenType_receivedTime(ctx, field) + case "role": + return ec.fieldContext_SpecimenType_role(ctx, field) + case "language": + return ec.fieldContext_SpecimenType_language(ctx, field) + case "note": + return ec.fieldContext_SpecimenType_note(ctx, field) + case "status": + return ec.fieldContext_SpecimenType_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SpecimenType", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DiagnosticReportType_specimen_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_text(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_text(ctx, field) +func (ec *executionContext) _DiagnosticReportType_contained(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_contained(ctx, field) if err != nil { return graphql.Null } @@ -65693,7 +65527,7 @@ func (ec *executionContext) _DiagnosticReportType_text(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -65702,38 +65536,26 @@ func (ec *executionContext) _DiagnosticReportType_text(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_subject(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_subject(ctx, field) +func (ec *executionContext) _DiagnosticReportType_language(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_language(ctx, field) if err != nil { return graphql.Null } @@ -65746,7 +65568,7 @@ func (ec *executionContext) _DiagnosticReportType_subject(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -65755,37 +65577,26 @@ func (ec *executionContext) _DiagnosticReportType_subject(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]model.DiagnosticReportSubjectUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalODiagnosticReportSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSubjectUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiagnosticReportSubjectUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_specimen(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_specimen(ctx, field) +func (ec *executionContext) _DiagnosticReportType_meta(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_meta(ctx, field) if err != nil { return graphql.Null } @@ -65798,7 +65609,7 @@ func (ec *executionContext) _DiagnosticReportType_specimen(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Specimen, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -65807,12 +65618,12 @@ func (ec *executionContext) _DiagnosticReportType_specimen(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SpecimenType) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOSpecimenType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_specimen(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, @@ -65820,74 +65631,33 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_specimen(ctx conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "identifier": - return ec.fieldContext_SpecimenType_identifier(ctx, field) - case "text": - return ec.fieldContext_SpecimenType_text(ctx, field) - case "contained": - return ec.fieldContext_SpecimenType_contained(ctx, field) - case "combined": - return ec.fieldContext_SpecimenType_combined(ctx, field) - case "role": - return ec.fieldContext_SpecimenType_role(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_SpecimenType_extension(ctx, field) - case "type": - return ec.fieldContext_SpecimenType_type(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_SpecimenType_resourceType(ctx, field) + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) case "id": - return ec.fieldContext_SpecimenType_id(ctx, field) - case "parent": - return ec.fieldContext_SpecimenType_parent(ctx, field) - case "modifierExtension": - return ec.fieldContext_SpecimenType_modifierExtension(ctx, field) - case "status": - return ec.fieldContext_SpecimenType_status(ctx, field) - case "condition": - return ec.fieldContext_SpecimenType_condition(ctx, field) - case "meta": - return ec.fieldContext_SpecimenType_meta(ctx, field) - case "receivedTime": - return ec.fieldContext_SpecimenType_receivedTime(ctx, field) - case "feature": - return ec.fieldContext_SpecimenType_feature(ctx, field) - case "collection": - return ec.fieldContext_SpecimenType_collection(ctx, field) - case "subject": - return ec.fieldContext_SpecimenType_subject(ctx, field) - case "accessionIdentifier": - return ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) - case "container": - return ec.fieldContext_SpecimenType_container(ctx, field) - case "language": - return ec.fieldContext_SpecimenType_language(ctx, field) - case "processing": - return ec.fieldContext_SpecimenType_processing(ctx, field) - case "implicitRules": - return ec.fieldContext_SpecimenType_implicitRules(ctx, field) - case "note": - return ec.fieldContext_SpecimenType_note(ctx, field) + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SpecimenType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportType_specimen_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_identifier(ctx, field) +func (ec *executionContext) _DiagnosticReportType_resultsInterpreter(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_resultsInterpreter(ctx, field) if err != nil { return graphql.Null } @@ -65900,55 +65670,49 @@ func (ec *executionContext) _DiagnosticReportType_identifier(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.ResultsInterpreter, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(model.DiagnosticReportResultsInterpreterUnion) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalNDiagnosticReportResultsInterpreterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportResultsInterpreterUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_resultsInterpreter(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type DiagnosticReportResultsInterpreterUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DiagnosticReportType_resultsInterpreter_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_code(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_code(ctx, field) +func (ec *executionContext) _DiagnosticReportType_id(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_id(ctx, field) if err != nil { return graphql.Null } @@ -65961,7 +65725,7 @@ func (ec *executionContext) _DiagnosticReportType_code(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -65970,38 +65734,26 @@ func (ec *executionContext) _DiagnosticReportType_code(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_effectiveDateTime(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_effectiveDateTime(ctx, field) +func (ec *executionContext) _DiagnosticReportType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_basedOn(ctx, field) if err != nil { return graphql.Null } @@ -66014,35 +65766,49 @@ func (ec *executionContext) _DiagnosticReportType_effectiveDateTime(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectiveDateTime, nil + return obj.BasedOn, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.DiagnosticReportBasedOnUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNDiagnosticReportBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportBasedOnUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_effectiveDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type DiagnosticReportBasedOnUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DiagnosticReportType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_media(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_media(ctx, field) +func (ec *executionContext) _DiagnosticReportType_note(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_note(ctx, field) if err != nil { return graphql.Null } @@ -66055,49 +65821,49 @@ func (ec *executionContext) _DiagnosticReportType_media(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Media, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.DiagnosticReportMedia) + res := resTmp.(model.DiagnosticReportNoteUnion) fc.Result = res - return ec.marshalODiagnosticReportMedia2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportMedia(ctx, field.Selections, res) + return ec.marshalNDiagnosticReportNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_media(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "modifierExtension": - return ec.fieldContext_DiagnosticReportMedia_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_DiagnosticReportMedia_resourceType(ctx, field) - case "comment": - return ec.fieldContext_DiagnosticReportMedia_comment(ctx, field) - case "extension": - return ec.fieldContext_DiagnosticReportMedia_extension(ctx, field) - case "id": - return ec.fieldContext_DiagnosticReportMedia_id(ctx, field) - case "link": - return ec.fieldContext_DiagnosticReportMedia_link(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DiagnosticReportMedia", field.Name) + return nil, errors.New("field of type DiagnosticReportNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DiagnosticReportType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_effectivePeriod(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_effectivePeriod(ctx, field) +func (ec *executionContext) _DiagnosticReportType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -66110,7 +65876,7 @@ func (ec *executionContext) _DiagnosticReportType_effectivePeriod(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectivePeriod, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -66119,12 +65885,12 @@ func (ec *executionContext) _DiagnosticReportType_effectivePeriod(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_effectivePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, @@ -66132,25 +65898,129 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_effectivePeriod(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_study(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_study(ctx, field) +func (ec *executionContext) _DiagnosticReportType_effectiveDateTime(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_effectiveDateTime(ctx, field) if err != nil { return graphql.Null } @@ -66163,7 +66033,7 @@ func (ec *executionContext) _DiagnosticReportType_study(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Study, nil + return obj.EffectiveDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -66172,37 +66042,26 @@ func (ec *executionContext) _DiagnosticReportType_study(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]model.DiagnosticReportStudyUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalODiagnosticReportStudyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportStudyUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_study(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_effectiveDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiagnosticReportStudyUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportType_study_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_resourceType(ctx, field) +func (ec *executionContext) _DiagnosticReportType_category(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_category(ctx, field) if err != nil { return graphql.Null } @@ -66215,7 +66074,7 @@ func (ec *executionContext) _DiagnosticReportType_resourceType(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Category, nil }) if err != nil { ec.Error(ctx, err) @@ -66224,26 +66083,38 @@ func (ec *executionContext) _DiagnosticReportType_resourceType(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_meta(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_meta(ctx, field) +func (ec *executionContext) _DiagnosticReportType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -66256,7 +66127,7 @@ func (ec *executionContext) _DiagnosticReportType_meta(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -66265,12 +66136,12 @@ func (ec *executionContext) _DiagnosticReportType_meta(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, @@ -66278,33 +66149,33 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_meta(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_contained(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_contained(ctx, field) +func (ec *executionContext) _DiagnosticReportType_effectivePeriod(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_effectivePeriod(ctx, field) if err != nil { return graphql.Null } @@ -66317,7 +66188,7 @@ func (ec *executionContext) _DiagnosticReportType_contained(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.EffectivePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -66326,26 +66197,38 @@ func (ec *executionContext) _DiagnosticReportType_contained(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_effectivePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_id(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_id(ctx, field) +func (ec *executionContext) _DiagnosticReportType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -66358,7 +66241,7 @@ func (ec *executionContext) _DiagnosticReportType_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -66372,7 +66255,7 @@ func (ec *executionContext) _DiagnosticReportType_id(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, @@ -66385,8 +66268,8 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_id(_ context.Conte return fc, nil } -func (ec *executionContext) _DiagnosticReportType_note(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_note(ctx, field) +func (ec *executionContext) _DiagnosticReportType_code(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_code(ctx, field) if err != nil { return graphql.Null } @@ -66399,7 +66282,7 @@ func (ec *executionContext) _DiagnosticReportType_note(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -66408,37 +66291,38 @@ func (ec *executionContext) _DiagnosticReportType_note(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]model.DiagnosticReportNoteUnion) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalODiagnosticReportNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportNoteUnion(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiagnosticReportNoteUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_modifierExtension(ctx, field) +func (ec *executionContext) _DiagnosticReportType_extension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_extension(ctx, field) if err != nil { return graphql.Null } @@ -66451,7 +66335,7 @@ func (ec *executionContext) _DiagnosticReportType_modifierExtension(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -66465,7 +66349,7 @@ func (ec *executionContext) _DiagnosticReportType_modifierExtension(ctx context. return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, @@ -66473,120 +66357,120 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_modifierExtension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -66594,8 +66478,8 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_modifierExtension( return fc, nil } -func (ec *executionContext) _DiagnosticReportType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_basedOn(ctx, field) +func (ec *executionContext) _DiagnosticReportType_presentedForm(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_presentedForm(ctx, field) if err != nil { return graphql.Null } @@ -66608,7 +66492,7 @@ func (ec *executionContext) _DiagnosticReportType_basedOn(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BasedOn, nil + return obj.PresentedForm, nil }) if err != nil { ec.Error(ctx, err) @@ -66617,37 +66501,60 @@ func (ec *executionContext) _DiagnosticReportType_basedOn(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]model.DiagnosticReportBasedOnUnion) + res := resTmp.([]*model.Attachment) fc.Result = res - return ec.marshalODiagnosticReportBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportBasedOnUnion(ctx, field.Selections, res) + return ec.marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_presentedForm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiagnosticReportBasedOnUnion does not have child fields") + switch field.Name { + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) + case "resourceType": + return ec.fieldContext_Attachment_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) + case "id": + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_conclusionCode(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_conclusionCode(ctx, field) +func (ec *executionContext) _DiagnosticReportType_subject(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_subject(ctx, field) if err != nil { return graphql.Null } @@ -66660,47 +66567,49 @@ func (ec *executionContext) _DiagnosticReportType_conclusionCode(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ConclusionCode, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(model.DiagnosticReportSubjectUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNDiagnosticReportSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSubjectUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_conclusionCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type DiagnosticReportSubjectUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DiagnosticReportType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_supportingInfo(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_supportingInfo(ctx, field) +func (ec *executionContext) _DiagnosticReportType_study(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_study(ctx, field) if err != nil { return graphql.Null } @@ -66713,28 +66622,31 @@ func (ec *executionContext) _DiagnosticReportType_supportingInfo(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SupportingInfo, nil + return obj.Study, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.DiagnosticReportSupportingInfoUnion) + res := resTmp.(model.DiagnosticReportStudyUnion) fc.Result = res - return ec.marshalODiagnosticReportSupportingInfoUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoUnion(ctx, field.Selections, res) + return ec.marshalNDiagnosticReportStudyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportStudyUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_supportingInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_study(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiagnosticReportSupportingInfoUnion does not have child fields") + return nil, errors.New("field of type DiagnosticReportStudyUnion does not have child fields") }, } defer func() { @@ -66744,15 +66656,15 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_supportingInfo(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportType_supportingInfo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DiagnosticReportType_study_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_conclusion(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_conclusion(ctx, field) +func (ec *executionContext) _DiagnosticReportType_media(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_media(ctx, field) if err != nil { return graphql.Null } @@ -66765,7 +66677,7 @@ func (ec *executionContext) _DiagnosticReportType_conclusion(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Conclusion, nil + return obj.Media, nil }) if err != nil { ec.Error(ctx, err) @@ -66774,26 +66686,40 @@ func (ec *executionContext) _DiagnosticReportType_conclusion(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.DiagnosticReportMedia) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalODiagnosticReportMedia2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportMedia(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_conclusion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_media(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "comment": + return ec.fieldContext_DiagnosticReportMedia_comment(ctx, field) + case "extension": + return ec.fieldContext_DiagnosticReportMedia_extension(ctx, field) + case "id": + return ec.fieldContext_DiagnosticReportMedia_id(ctx, field) + case "link": + return ec.fieldContext_DiagnosticReportMedia_link(ctx, field) + case "modifierExtension": + return ec.fieldContext_DiagnosticReportMedia_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_DiagnosticReportMedia_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DiagnosticReportMedia", field.Name) }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_status(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_status(ctx, field) +func (ec *executionContext) _DiagnosticReportType_text(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_text(ctx, field) if err != nil { return graphql.Null } @@ -66806,7 +66732,7 @@ func (ec *executionContext) _DiagnosticReportType_status(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -66815,26 +66741,38 @@ func (ec *executionContext) _DiagnosticReportType_status(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_extension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_extension(ctx, field) +func (ec *executionContext) _DiagnosticReportType_conclusionCode(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_conclusionCode(ctx, field) if err != nil { return graphql.Null } @@ -66847,7 +66785,7 @@ func (ec *executionContext) _DiagnosticReportType_extension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ConclusionCode, nil }) if err != nil { ec.Error(ctx, err) @@ -66856,12 +66794,12 @@ func (ec *executionContext) _DiagnosticReportType_extension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_conclusionCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, @@ -66869,129 +66807,25 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_extension(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _DiagnosticReportType_category(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_category(ctx, field) +func (ec *executionContext) _DiagnosticReportType_result(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_result(ctx, field) if err != nil { return graphql.Null } @@ -67004,21 +66838,24 @@ func (ec *executionContext) _DiagnosticReportType_category(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Category, nil + return obj.Result, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.ObservationType) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNObservationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DiagnosticReportType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_result(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DiagnosticReportType", Field: field, @@ -67026,100 +66863,104 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_category(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "bodyStructure": + return ec.fieldContext_ObservationType_bodyStructure(ctx, field) + case "dataAbsentReason": + return ec.fieldContext_ObservationType_dataAbsentReason(ctx, field) + case "effectiveInstant": + return ec.fieldContext_ObservationType_effectiveInstant(ctx, field) + case "effectivePeriod": + return ec.fieldContext_ObservationType_effectivePeriod(ctx, field) + case "identifier": + return ec.fieldContext_ObservationType_identifier(ctx, field) + case "meta": + return ec.fieldContext_ObservationType_meta(ctx, field) + case "issued": + return ec.fieldContext_ObservationType_issued(ctx, field) + case "method": + return ec.fieldContext_ObservationType_method(ctx, field) + case "valueTime": + return ec.fieldContext_ObservationType_valueTime(ctx, field) + case "contained": + return ec.fieldContext_ObservationType_contained(ctx, field) + case "valueInteger": + return ec.fieldContext_ObservationType_valueInteger(ctx, field) + case "referenceRange": + return ec.fieldContext_ObservationType_referenceRange(ctx, field) + case "note": + return ec.fieldContext_ObservationType_note(ctx, field) case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_ObservationType_text(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_ObservationType_resourceType(ctx, field) + case "valueDateTime": + return ec.fieldContext_ObservationType_valueDateTime(ctx, field) + case "valueString": + return ec.fieldContext_ObservationType_valueString(ctx, field) + case "valueQuantity": + return ec.fieldContext_ObservationType_valueQuantity(ctx, field) + case "effectiveDateTime": + return ec.fieldContext_ObservationType_effectiveDateTime(ctx, field) + case "hasMember": + return ec.fieldContext_ObservationType_hasMember(ctx, field) + case "instantiatesCanonical": + return ec.fieldContext_ObservationType_instantiatesCanonical(ctx, field) + case "focus": + return ec.fieldContext_ObservationType_focus(ctx, field) + case "performer": + return ec.fieldContext_ObservationType_performer(ctx, field) + case "valueSampledData": + return ec.fieldContext_ObservationType_valueSampledData(ctx, field) + case "implicitRules": + return ec.fieldContext_ObservationType_implicitRules(ctx, field) + case "language": + return ec.fieldContext_ObservationType_language(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_ObservationType_valueCodeableConcept(ctx, field) + case "code": + return ec.fieldContext_ObservationType_code(ctx, field) + case "partOf": + return ec.fieldContext_ObservationType_partOf(ctx, field) + case "status": + return ec.fieldContext_ObservationType_status(ctx, field) + case "category": + return ec.fieldContext_ObservationType_category(ctx, field) + case "triggeredBy": + return ec.fieldContext_ObservationType_triggeredBy(ctx, field) + case "subject": + return ec.fieldContext_ObservationType_subject(ctx, field) + case "derivedFrom": + return ec.fieldContext_ObservationType_derivedFrom(ctx, field) + case "modifierExtension": + return ec.fieldContext_ObservationType_modifierExtension(ctx, field) + case "bodySite": + return ec.fieldContext_ObservationType_bodySite(ctx, field) + case "valueRatio": + return ec.fieldContext_ObservationType_valueRatio(ctx, field) + case "basedOn": + return ec.fieldContext_ObservationType_basedOn(ctx, field) + case "component": + return ec.fieldContext_ObservationType_component(ctx, field) + case "valueAttachment": + return ec.fieldContext_ObservationType_valueAttachment(ctx, field) + case "valueRange": + return ec.fieldContext_ObservationType_valueRange(ctx, field) + case "valuePeriod": + return ec.fieldContext_ObservationType_valuePeriod(ctx, field) + case "specimen": + return ec.fieldContext_ObservationType_specimen(ctx, field) + case "effectiveTiming": + return ec.fieldContext_ObservationType_effectiveTiming(ctx, field) + case "id": + return ec.fieldContext_ObservationType_id(ctx, field) + case "interpretation": + return ec.fieldContext_ObservationType_interpretation(ctx, field) + case "valueBoolean": + return ec.fieldContext_ObservationType_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_ObservationType_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DiagnosticReportType_issued(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_issued(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Issued, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiagnosticReportType_issued(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiagnosticReportType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiagnosticReportType_resultsInterpreter(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiagnosticReportType_resultsInterpreter(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResultsInterpreter, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.DiagnosticReportResultsInterpreterUnion) - fc.Result = res - return ec.marshalODiagnosticReportResultsInterpreterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportResultsInterpreterUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiagnosticReportType_resultsInterpreter(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiagnosticReportType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiagnosticReportResultsInterpreterUnion does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type ObservationType", field.Name) }, } defer func() { @@ -67129,15 +66970,15 @@ func (ec *executionContext) fieldContext_DiagnosticReportType_resultsInterpreter } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DiagnosticReportType_resultsInterpreter_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DiagnosticReportType_result_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Distance_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Distance_resourceType(ctx, field) +func (ec *executionContext) _DiagnosticReportType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -67150,7 +66991,7 @@ func (ec *executionContext) _Distance_resourceType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -67164,9 +67005,9 @@ func (ec *executionContext) _Distance_resourceType(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Distance_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Distance", + Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, @@ -67177,8 +67018,8 @@ func (ec *executionContext) fieldContext_Distance_resourceType(_ context.Context return fc, nil } -func (ec *executionContext) _Distance_system(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Distance_system(ctx, field) +func (ec *executionContext) _DiagnosticReportType_issued(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_issued(ctx, field) if err != nil { return graphql.Null } @@ -67191,7 +67032,7 @@ func (ec *executionContext) _Distance_system(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.System, nil + return obj.Issued, nil }) if err != nil { ec.Error(ctx, err) @@ -67205,9 +67046,9 @@ func (ec *executionContext) _Distance_system(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Distance_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_issued(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Distance", + Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, @@ -67218,8 +67059,8 @@ func (ec *executionContext) fieldContext_Distance_system(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Distance_unit(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Distance_unit(ctx, field) +func (ec *executionContext) _DiagnosticReportType_performer(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_performer(ctx, field) if err != nil { return graphql.Null } @@ -67232,35 +67073,49 @@ func (ec *executionContext) _Distance_unit(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Unit, nil + return obj.Performer, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.DiagnosticReportPerformerUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNDiagnosticReportPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportPerformerUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Distance_unit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Distance", + Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type DiagnosticReportPerformerUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DiagnosticReportType_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Distance_value(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Distance_value(ctx, field) +func (ec *executionContext) _DiagnosticReportType_status(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_status(ctx, field) if err != nil { return graphql.Null } @@ -67273,7 +67128,7 @@ func (ec *executionContext) _Distance_value(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Value, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -67287,9 +67142,9 @@ func (ec *executionContext) _Distance_value(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Distance_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Distance", + Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, @@ -67300,8 +67155,8 @@ func (ec *executionContext) fieldContext_Distance_value(_ context.Context, field return fc, nil } -func (ec *executionContext) _Distance_code(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Distance_code(ctx, field) +func (ec *executionContext) _DiagnosticReportType_conclusion(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportType_conclusion(ctx, field) if err != nil { return graphql.Null } @@ -67314,7 +67169,7 @@ func (ec *executionContext) _Distance_code(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Conclusion, nil }) if err != nil { ec.Error(ctx, err) @@ -67328,9 +67183,9 @@ func (ec *executionContext) _Distance_code(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Distance_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiagnosticReportType_conclusion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Distance", + Object: "DiagnosticReportType", Field: field, IsMethod: false, IsResolver: false, @@ -67418,120 +67273,120 @@ func (ec *executionContext) fieldContext_Distance_extension(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -67580,8 +67435,8 @@ func (ec *executionContext) fieldContext_Distance_id(_ context.Context, field gr return fc, nil } -func (ec *executionContext) _DocumentReferenceAttester_id(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceAttester_id(ctx, field) +func (ec *executionContext) _Distance_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Distance_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -67594,7 +67449,7 @@ func (ec *executionContext) _DocumentReferenceAttester_id(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -67608,9 +67463,9 @@ func (ec *executionContext) _DocumentReferenceAttester_id(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceAttester_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Distance_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceAttester", + Object: "Distance", Field: field, IsMethod: false, IsResolver: false, @@ -67621,8 +67476,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceAttester_id(_ context. return fc, nil } -func (ec *executionContext) _DocumentReferenceAttester_mode(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceAttester_mode(ctx, field) +func (ec *executionContext) _Distance_system(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Distance_system(ctx, field) if err != nil { return graphql.Null } @@ -67635,7 +67490,7 @@ func (ec *executionContext) _DocumentReferenceAttester_mode(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Mode, nil + return obj.System, nil }) if err != nil { ec.Error(ctx, err) @@ -67644,38 +67499,26 @@ func (ec *executionContext) _DocumentReferenceAttester_mode(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceAttester_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Distance_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceAttester", + Object: "Distance", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceAttester_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceAttester_modifierExtension(ctx, field) +func (ec *executionContext) _Distance_unit(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Distance_unit(ctx, field) if err != nil { return graphql.Null } @@ -67688,7 +67531,7 @@ func (ec *executionContext) _DocumentReferenceAttester_modifierExtension(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Unit, nil }) if err != nil { ec.Error(ctx, err) @@ -67697,142 +67540,26 @@ func (ec *executionContext) _DocumentReferenceAttester_modifierExtension(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceAttester_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Distance_unit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceAttester", + Object: "Distance", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceAttester_party(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceAttester_party(ctx, field) +func (ec *executionContext) _Distance_value(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Distance_value(ctx, field) if err != nil { return graphql.Null } @@ -67845,7 +67572,7 @@ func (ec *executionContext) _DocumentReferenceAttester_party(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Party, nil + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -67854,37 +67581,26 @@ func (ec *executionContext) _DocumentReferenceAttester_party(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]model.DocumentReferenceAttesterPartyUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalODocumentReferenceAttesterPartyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterPartyUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceAttester_party(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Distance_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceAttester", + Object: "Distance", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentReferenceAttesterPartyUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DocumentReferenceAttester_party_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DocumentReferenceAttester_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceAttester_resourceType(ctx, field) +func (ec *executionContext) _Distance_code(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Distance_code(ctx, field) if err != nil { return graphql.Null } @@ -67897,7 +67613,7 @@ func (ec *executionContext) _DocumentReferenceAttester_resourceType(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -67911,9 +67627,9 @@ func (ec *executionContext) _DocumentReferenceAttester_resourceType(ctx context. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceAttester_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Distance_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceAttester", + Object: "Distance", Field: field, IsMethod: false, IsResolver: false, @@ -68001,120 +67717,120 @@ func (ec *executionContext) fieldContext_DocumentReferenceAttester_extension(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -68122,8 +67838,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceAttester_extension(_ c return fc, nil } -func (ec *executionContext) _DocumentReferenceContent_attachment(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceContent_attachment(ctx, field) +func (ec *executionContext) _DocumentReferenceAttester_id(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceAttester_id(ctx, field) if err != nil { return graphql.Null } @@ -68136,7 +67852,7 @@ func (ec *executionContext) _DocumentReferenceContent_attachment(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Attachment, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -68145,60 +67861,79 @@ func (ec *executionContext) _DocumentReferenceContent_attachment(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Attachment) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceContent_attachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceAttester_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceContent", + Object: "DocumentReferenceAttester", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentReferenceAttester_mode(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceAttester_mode(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Mode, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceAttester_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceAttester", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) - case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceContent_extension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceContent_extension(ctx, field) +func (ec *executionContext) _DocumentReferenceAttester_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceAttester_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -68211,7 +67946,7 @@ func (ec *executionContext) _DocumentReferenceContent_extension(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -68225,128 +67960,381 @@ func (ec *executionContext) _DocumentReferenceContent_extension(ctx context.Cont return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceContent_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceAttester_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceContent", + Object: "DocumentReferenceAttester", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) case "valueParameterDefinition": return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) case "valueExtendedContactDetail": return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) case "valueUuid": return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) case "valuePositiveInt": return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) case "valueTime": return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueTiming": return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentReferenceAttester_party(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceAttester_party(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Party, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.DocumentReferenceAttesterPartyUnion) + fc.Result = res + return ec.marshalNDocumentReferenceAttesterPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterPartyUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceAttester_party(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceAttester", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DocumentReferenceAttesterPartyUnion does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DocumentReferenceAttester_party_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _DocumentReferenceAttester_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceAttester_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceAttester_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceAttester", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentReferenceContent_extension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContent_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceContent_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceContent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) case "valueExpression": return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) case "valueAvailability": return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -68431,120 +68419,120 @@ func (ec *executionContext) fieldContext_DocumentReferenceContent_modifierExtens IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -68588,8 +68576,6 @@ func (ec *executionContext) fieldContext_DocumentReferenceContent_profile(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_DocumentReferenceContentProfile_valueUri(ctx, field) case "extension": return ec.fieldContext_DocumentReferenceContentProfile_extension(ctx, field) case "id": @@ -68602,6 +68588,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceContent_profile(_ cont return ec.fieldContext_DocumentReferenceContentProfile_valueCanonical(ctx, field) case "valueCoding": return ec.fieldContext_DocumentReferenceContentProfile_valueCoding(ctx, field) + case "valueUri": + return ec.fieldContext_DocumentReferenceContentProfile_valueUri(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceContentProfile", field.Name) }, @@ -68650,8 +68638,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceContent_resourceType(_ return fc, nil } -func (ec *executionContext) _DocumentReferenceContentProfile_valueUri(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContentProfile) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceContentProfile_valueUri(ctx, field) +func (ec *executionContext) _DocumentReferenceContent_attachment(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContent_attachment(ctx, field) if err != nil { return graphql.Null } @@ -68664,7 +68652,7 @@ func (ec *executionContext) _DocumentReferenceContentProfile_valueUri(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueURI, nil + return obj.Attachment, nil }) if err != nil { ec.Error(ctx, err) @@ -68673,19 +68661,53 @@ func (ec *executionContext) _DocumentReferenceContentProfile_valueUri(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Attachment) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceContentProfile_valueUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceContent_attachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceContentProfile", + Object: "DocumentReferenceContent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) + case "resourceType": + return ec.fieldContext_Attachment_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) + case "id": + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, } return fc, nil @@ -68727,120 +68749,120 @@ func (ec *executionContext) fieldContext_DocumentReferenceContentProfile_extensi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -68925,120 +68947,120 @@ func (ec *executionContext) fieldContext_DocumentReferenceContentProfile_modifie IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -69164,14 +69186,6 @@ func (ec *executionContext) fieldContext_DocumentReferenceContentProfile_valueCo IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) case "userSelected": return ec.fieldContext_Coding_userSelected(ctx, field) case "version": @@ -69180,6 +69194,14 @@ func (ec *executionContext) fieldContext_DocumentReferenceContentProfile_valueCo return ec.fieldContext_Coding_code(ctx, field) case "display": return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, @@ -69187,8 +69209,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceContentProfile_valueCo return fc, nil } -func (ec *executionContext) _DocumentReferenceRelatesTo_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceRelatesTo_modifierExtension(ctx, field) +func (ec *executionContext) _DocumentReferenceContentProfile_valueUri(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContentProfile) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContentProfile_valueUri(ctx, field) if err != nil { return graphql.Null } @@ -69201,7 +69223,7 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_modifierExtension(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ValueURI, nil }) if err != nil { ec.Error(ctx, err) @@ -69210,142 +69232,26 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_modifierExtension(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceContentProfile_valueUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceRelatesTo", + Object: "DocumentReferenceContentProfile", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceRelatesTo_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceRelatesTo_resourceType(ctx, field) +func (ec *executionContext) _DocumentReferenceRelatesTo_code(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceRelatesTo_code(ctx, field) if err != nil { return graphql.Null } @@ -69358,7 +69264,7 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_resourceType(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -69367,26 +69273,38 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_resourceType(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceRelatesTo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceRelatesTo_target(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceRelatesTo_target(ctx, field) +func (ec *executionContext) _DocumentReferenceRelatesTo_extension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceRelatesTo_extension(ctx, field) if err != nil { return graphql.Null } @@ -69399,7 +69317,7 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_target(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Target, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -69408,12 +69326,12 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_target(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.DocumentReferenceType) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalODocumentReferenceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_target(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceRelatesTo", Field: field, @@ -69421,88 +69339,129 @@ func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_target(ctx c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "version": - return ec.fieldContext_DocumentReferenceType_version(ctx, field) - case "language": - return ec.fieldContext_DocumentReferenceType_language(ctx, field) - case "implicitRules": - return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) - case "bodySite": - return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) - case "practiceSetting": - return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) - case "author": - return ec.fieldContext_DocumentReferenceType_author(ctx, field) - case "basedOn": - return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) - case "resourceType": - return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) - case "status": - return ec.fieldContext_DocumentReferenceType_status(ctx, field) - case "type": - return ec.fieldContext_DocumentReferenceType_type(ctx, field) - case "modality": - return ec.fieldContext_DocumentReferenceType_modality(ctx, field) - case "period": - return ec.fieldContext_DocumentReferenceType_period(ctx, field) - case "attester": - return ec.fieldContext_DocumentReferenceType_attester(ctx, field) - case "docStatus": - return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) - case "meta": - return ec.fieldContext_DocumentReferenceType_meta(ctx, field) - case "custodian": - return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) - case "event": - return ec.fieldContext_DocumentReferenceType_event(ctx, field) - case "relatesTo": - return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) - case "facilityType": - return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_DocumentReferenceType_id(ctx, field) - case "securityLabel": - return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) - case "identifier": - return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) - case "description": - return ec.fieldContext_DocumentReferenceType_description(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_DocumentReferenceType_extension(ctx, field) - case "category": - return ec.fieldContext_DocumentReferenceType_category(ctx, field) - case "text": - return ec.fieldContext_DocumentReferenceType_text(ctx, field) - case "contained": - return ec.fieldContext_DocumentReferenceType_contained(ctx, field) - case "subject": - return ec.fieldContext_DocumentReferenceType_subject(ctx, field) - case "content": - return ec.fieldContext_DocumentReferenceType_content(ctx, field) - case "date": - return ec.fieldContext_DocumentReferenceType_date(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DocumentReferenceRelatesTo_target_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DocumentReferenceRelatesTo_code(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceRelatesTo_code(ctx, field) +func (ec *executionContext) _DocumentReferenceRelatesTo_id(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceRelatesTo_id(ctx, field) if err != nil { return graphql.Null } @@ -69515,7 +69474,7 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_code(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -69524,38 +69483,26 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_code(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceRelatesTo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceRelatesTo_extension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceRelatesTo_extension(ctx, field) +func (ec *executionContext) _DocumentReferenceRelatesTo_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceRelatesTo_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -69568,7 +69515,7 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_extension(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -69582,7 +69529,7 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_extension(ctx context.Co return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceRelatesTo", Field: field, @@ -69590,120 +69537,120 @@ func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_extension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -69711,8 +69658,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_extension(_ return fc, nil } -func (ec *executionContext) _DocumentReferenceRelatesTo_id(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceRelatesTo_id(ctx, field) +func (ec *executionContext) _DocumentReferenceRelatesTo_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceRelatesTo_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -69725,7 +69672,7 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_id(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -69739,7 +69686,7 @@ func (ec *executionContext) _DocumentReferenceRelatesTo_id(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceRelatesTo", Field: field, @@ -69752,8 +69699,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_id(_ context return fc, nil } -func (ec *executionContext) _DocumentReferenceType_version(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_version(ctx, field) +func (ec *executionContext) _DocumentReferenceRelatesTo_target(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceRelatesTo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceRelatesTo_target(ctx, field) if err != nil { return graphql.Null } @@ -69766,76 +69713,113 @@ func (ec *executionContext) _DocumentReferenceType_version(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.Target, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.DocumentReferenceType) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNDocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceRelatesTo_target(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentReferenceType", + Object: "DocumentReferenceRelatesTo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "modality": + return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "securityLabel": + return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) + case "meta": + return ec.fieldContext_DocumentReferenceType_meta(ctx, field) + case "subject": + return ec.fieldContext_DocumentReferenceType_subject(ctx, field) + case "id": + return ec.fieldContext_DocumentReferenceType_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) + case "contained": + return ec.fieldContext_DocumentReferenceType_contained(ctx, field) + case "event": + return ec.fieldContext_DocumentReferenceType_event(ctx, field) + case "practiceSetting": + return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) + case "bodySite": + return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "identifier": + return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) + case "date": + return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "language": + return ec.fieldContext_DocumentReferenceType_language(ctx, field) + case "author": + return ec.fieldContext_DocumentReferenceType_author(ctx, field) + case "type": + return ec.fieldContext_DocumentReferenceType_type(ctx, field) + case "category": + return ec.fieldContext_DocumentReferenceType_category(ctx, field) + case "period": + return ec.fieldContext_DocumentReferenceType_period(ctx, field) + case "facilityType": + return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) + case "attester": + return ec.fieldContext_DocumentReferenceType_attester(ctx, field) + case "implicitRules": + return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) + case "docStatus": + return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) + case "custodian": + return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) + case "description": + return ec.fieldContext_DocumentReferenceType_description(ctx, field) + case "basedOn": + return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) + case "relatesTo": + return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) + case "resourceType": + return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) + case "status": + return ec.fieldContext_DocumentReferenceType_status(ctx, field) + case "text": + return ec.fieldContext_DocumentReferenceType_text(ctx, field) + case "content": + return ec.fieldContext_DocumentReferenceType_content(ctx, field) + case "version": + return ec.fieldContext_DocumentReferenceType_version(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceType_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _DocumentReferenceType_language(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_language(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Language, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DocumentReferenceRelatesTo_target_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentReferenceType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentReferenceType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) +func (ec *executionContext) _DocumentReferenceType_modality(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_modality(ctx, field) if err != nil { return graphql.Null } @@ -69848,7 +69832,7 @@ func (ec *executionContext) _DocumentReferenceType_implicitRules(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.Modality, nil }) if err != nil { ec.Error(ctx, err) @@ -69857,26 +69841,38 @@ func (ec *executionContext) _DocumentReferenceType_implicitRules(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_modality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) +func (ec *executionContext) _DocumentReferenceType_securityLabel(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) if err != nil { return graphql.Null } @@ -69889,7 +69885,7 @@ func (ec *executionContext) _DocumentReferenceType_bodySite(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BodySite, nil + return obj.SecurityLabel, nil }) if err != nil { ec.Error(ctx, err) @@ -69898,12 +69894,12 @@ func (ec *executionContext) _DocumentReferenceType_bodySite(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_securityLabel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -69911,23 +69907,25 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_bodySite(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_practiceSetting(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) +func (ec *executionContext) _DocumentReferenceType_meta(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_meta(ctx, field) if err != nil { return graphql.Null } @@ -69940,7 +69938,7 @@ func (ec *executionContext) _DocumentReferenceType_practiceSetting(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PracticeSetting, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -69949,12 +69947,12 @@ func (ec *executionContext) _DocumentReferenceType_practiceSetting(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_practiceSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -69962,25 +69960,33 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_practiceSetting(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_author(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_author(ctx, field) +func (ec *executionContext) _DocumentReferenceType_subject(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_subject(ctx, field) if err != nil { return graphql.Null } @@ -69993,28 +69999,31 @@ func (ec *executionContext) _DocumentReferenceType_author(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Author, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.DocumentReferenceAuthorUnion) + res := resTmp.(model.ResourceUnion) fc.Result = res - return ec.marshalODocumentReferenceAuthorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAuthorUnion(ctx, field.Selections, res) + return ec.marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_author(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentReferenceAuthorUnion does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } defer func() { @@ -70024,15 +70033,15 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_author(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DocumentReferenceType_author_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DocumentReferenceType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) +func (ec *executionContext) _DocumentReferenceType_id(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_id(ctx, field) if err != nil { return graphql.Null } @@ -70045,7 +70054,7 @@ func (ec *executionContext) _DocumentReferenceType_basedOn(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BasedOn, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -70054,37 +70063,26 @@ func (ec *executionContext) _DocumentReferenceType_basedOn(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]model.DocumentReferenceBasedOnUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalODocumentReferenceBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceBasedOnUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentReferenceBasedOnUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DocumentReferenceType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) +func (ec *executionContext) _DocumentReferenceType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -70097,7 +70095,7 @@ func (ec *executionContext) _DocumentReferenceType_resourceType(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -70106,26 +70104,142 @@ func (ec *executionContext) _DocumentReferenceType_resourceType(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_status(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_status(ctx, field) +func (ec *executionContext) _DocumentReferenceType_contained(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_contained(ctx, field) if err != nil { return graphql.Null } @@ -70138,7 +70252,7 @@ func (ec *executionContext) _DocumentReferenceType_status(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -70147,26 +70261,26 @@ func (ec *executionContext) _DocumentReferenceType_status(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_type(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_type(ctx, field) +func (ec *executionContext) _DocumentReferenceType_event(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_event(ctx, field) if err != nil { return graphql.Null } @@ -70179,7 +70293,7 @@ func (ec *executionContext) _DocumentReferenceType_type(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Event, nil }) if err != nil { ec.Error(ctx, err) @@ -70188,12 +70302,12 @@ func (ec *executionContext) _DocumentReferenceType_type(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -70201,25 +70315,23 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_type(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_modality(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_modality(ctx, field) +func (ec *executionContext) _DocumentReferenceType_practiceSetting(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) if err != nil { return graphql.Null } @@ -70232,7 +70344,7 @@ func (ec *executionContext) _DocumentReferenceType_modality(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Modality, nil + return obj.PracticeSetting, nil }) if err != nil { ec.Error(ctx, err) @@ -70241,12 +70353,12 @@ func (ec *executionContext) _DocumentReferenceType_modality(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_modality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_practiceSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -70254,6 +70366,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_modality(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -70262,8 +70376,6 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_modality(_ contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -70271,8 +70383,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_modality(_ contex return fc, nil } -func (ec *executionContext) _DocumentReferenceType_period(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_period(ctx, field) +func (ec *executionContext) _DocumentReferenceType_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) if err != nil { return graphql.Null } @@ -70285,7 +70397,7 @@ func (ec *executionContext) _DocumentReferenceType_period(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.BodySite, nil }) if err != nil { ec.Error(ctx, err) @@ -70294,12 +70406,12 @@ func (ec *executionContext) _DocumentReferenceType_period(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -70307,25 +70419,23 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_period(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_Period_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_attester(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_attester(ctx, field) +func (ec *executionContext) _DocumentReferenceType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -70338,7 +70448,7 @@ func (ec *executionContext) _DocumentReferenceType_attester(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Attester, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -70347,37 +70457,46 @@ func (ec *executionContext) _DocumentReferenceType_attester(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]model.DocumentReferenceAttesterUnion) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalODocumentReferenceAttesterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterUnion(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_attester(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentReferenceAttesterUnion does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DocumentReferenceType_attester_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_docStatus(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) +func (ec *executionContext) _DocumentReferenceType_date(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_date(ctx, field) if err != nil { return graphql.Null } @@ -70390,7 +70509,7 @@ func (ec *executionContext) _DocumentReferenceType_docStatus(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DocStatus, nil + return obj.Date, nil }) if err != nil { ec.Error(ctx, err) @@ -70404,7 +70523,7 @@ func (ec *executionContext) _DocumentReferenceType_docStatus(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_docStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -70417,8 +70536,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_docStatus(_ conte return fc, nil } -func (ec *executionContext) _DocumentReferenceType_meta(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_meta(ctx, field) +func (ec *executionContext) _DocumentReferenceType_language(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_language(ctx, field) if err != nil { return graphql.Null } @@ -70431,7 +70550,7 @@ func (ec *executionContext) _DocumentReferenceType_meta(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -70440,46 +70559,26 @@ func (ec *executionContext) _DocumentReferenceType_meta(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) - case "id": - return ec.fieldContext_Meta_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_custodian(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_custodian(ctx, field) +func (ec *executionContext) _DocumentReferenceType_author(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_author(ctx, field) if err != nil { return graphql.Null } @@ -70492,66 +70591,31 @@ func (ec *executionContext) _DocumentReferenceType_custodian(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Custodian, nil + return obj.Author, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(model.DocumentReferenceAuthorUnion) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalNDocumentReferenceAuthorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAuthorUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_custodian(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_author(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) - case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, errors.New("field of type DocumentReferenceAuthorUnion does not have child fields") }, } defer func() { @@ -70561,15 +70625,15 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_custodian(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DocumentReferenceType_custodian_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DocumentReferenceType_author_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_event(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_event(ctx, field) +func (ec *executionContext) _DocumentReferenceType_type(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_type(ctx, field) if err != nil { return graphql.Null } @@ -70582,7 +70646,7 @@ func (ec *executionContext) _DocumentReferenceType_event(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Event, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -70591,12 +70655,12 @@ func (ec *executionContext) _DocumentReferenceType_event(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -70604,23 +70668,25 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_event(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_relatesTo(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) +func (ec *executionContext) _DocumentReferenceType_category(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_category(ctx, field) if err != nil { return graphql.Null } @@ -70633,7 +70699,7 @@ func (ec *executionContext) _DocumentReferenceType_relatesTo(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RelatesTo, nil + return obj.Category, nil }) if err != nil { ec.Error(ctx, err) @@ -70642,12 +70708,12 @@ func (ec *executionContext) _DocumentReferenceType_relatesTo(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.DocumentReferenceRelatesTo) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalODocumentReferenceRelatesTo2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceRelatesTo(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_relatesTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -70655,20 +70721,71 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_relatesTo(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "modifierExtension": - return ec.fieldContext_DocumentReferenceRelatesTo_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_DocumentReferenceRelatesTo_resourceType(ctx, field) - case "target": - return ec.fieldContext_DocumentReferenceRelatesTo_target(ctx, field) - case "code": - return ec.fieldContext_DocumentReferenceRelatesTo_code(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_DocumentReferenceRelatesTo_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_DocumentReferenceRelatesTo_id(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceRelatesTo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentReferenceType_period(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_period(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Period, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Period) + fc.Result = res + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceType_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil @@ -70710,6 +70827,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_facilityType(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -70718,8 +70837,6 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_facilityType(_ co return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -70727,8 +70844,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_facilityType(_ co return fc, nil } -func (ec *executionContext) _DocumentReferenceType_id(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_id(ctx, field) +func (ec *executionContext) _DocumentReferenceType_attester(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_attester(ctx, field) if err != nil { return graphql.Null } @@ -70741,35 +70858,49 @@ func (ec *executionContext) _DocumentReferenceType_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Attester, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.DocumentReferenceAttesterUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNDocumentReferenceAttesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_attester(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type DocumentReferenceAttesterUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DocumentReferenceType_attester_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_securityLabel(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) +func (ec *executionContext) _DocumentReferenceType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -70782,7 +70913,7 @@ func (ec *executionContext) _DocumentReferenceType_securityLabel(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecurityLabel, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -70791,38 +70922,26 @@ func (ec *executionContext) _DocumentReferenceType_securityLabel(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_securityLabel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_identifier(ctx, field) +func (ec *executionContext) _DocumentReferenceType_docStatus(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) if err != nil { return graphql.Null } @@ -70835,7 +70954,7 @@ func (ec *executionContext) _DocumentReferenceType_identifier(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.DocStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -70844,46 +70963,26 @@ func (ec *executionContext) _DocumentReferenceType_identifier(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_docStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) +func (ec *executionContext) _DocumentReferenceType_custodian(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_custodian(ctx, field) if err != nil { return graphql.Null } @@ -70896,21 +70995,24 @@ func (ec *executionContext) _DocumentReferenceType_modifierExtension(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Custodian, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_custodian(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -70918,124 +71020,57 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_modifierExtension IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_OrganizationType_resourceType(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DocumentReferenceType_custodian_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } @@ -71080,8 +71115,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_description(_ con return fc, nil } -func (ec *executionContext) _DocumentReferenceType_extension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_extension(ctx, field) +func (ec *executionContext) _DocumentReferenceType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) if err != nil { return graphql.Null } @@ -71094,151 +71129,49 @@ func (ec *executionContext) _DocumentReferenceType_extension(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.BasedOn, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(model.DocumentReferenceBasedOnUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNDocumentReferenceBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceBasedOnUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type DocumentReferenceBasedOnUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DocumentReferenceType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_category(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_category(ctx, field) +func (ec *executionContext) _DocumentReferenceType_relatesTo(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) if err != nil { return graphql.Null } @@ -71251,7 +71184,7 @@ func (ec *executionContext) _DocumentReferenceType_category(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Category, nil + return obj.RelatesTo, nil }) if err != nil { ec.Error(ctx, err) @@ -71260,12 +71193,12 @@ func (ec *executionContext) _DocumentReferenceType_category(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.DocumentReferenceRelatesTo) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalODocumentReferenceRelatesTo2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceRelatesTo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_relatesTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -71273,25 +71206,27 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_category(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "code": + return ec.fieldContext_DocumentReferenceRelatesTo_code(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_DocumentReferenceRelatesTo_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_DocumentReferenceRelatesTo_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceRelatesTo_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_DocumentReferenceRelatesTo_resourceType(ctx, field) + case "target": + return ec.fieldContext_DocumentReferenceRelatesTo_target(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceRelatesTo", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_text(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_text(ctx, field) +func (ec *executionContext) _DocumentReferenceType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -71304,7 +71239,7 @@ func (ec *executionContext) _DocumentReferenceType_text(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -71313,38 +71248,26 @@ func (ec *executionContext) _DocumentReferenceType_text(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_contained(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_contained(ctx, field) +func (ec *executionContext) _DocumentReferenceType_status(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_status(ctx, field) if err != nil { return graphql.Null } @@ -71357,7 +71280,7 @@ func (ec *executionContext) _DocumentReferenceType_contained(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -71366,26 +71289,26 @@ func (ec *executionContext) _DocumentReferenceType_contained(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentReferenceType_subject(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_subject(ctx, field) +func (ec *executionContext) _DocumentReferenceType_text(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_text(ctx, field) if err != nil { return graphql.Null } @@ -71398,7 +71321,7 @@ func (ec *executionContext) _DocumentReferenceType_subject(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -71407,32 +71330,33 @@ func (ec *executionContext) _DocumentReferenceType_subject(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DocumentReferenceType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -71472,8 +71396,6 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_content(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "attachment": - return ec.fieldContext_DocumentReferenceContent_attachment(ctx, field) case "extension": return ec.fieldContext_DocumentReferenceContent_extension(ctx, field) case "id": @@ -71484,6 +71406,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_content(_ context return ec.fieldContext_DocumentReferenceContent_profile(ctx, field) case "resourceType": return ec.fieldContext_DocumentReferenceContent_resourceType(ctx, field) + case "attachment": + return ec.fieldContext_DocumentReferenceContent_attachment(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceContent", field.Name) }, @@ -71491,8 +71415,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_content(_ context return fc, nil } -func (ec *executionContext) _DocumentReferenceType_date(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentReferenceType_date(ctx, field) +func (ec *executionContext) _DocumentReferenceType_version(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_version(ctx, field) if err != nil { return graphql.Null } @@ -71505,7 +71429,7 @@ func (ec *executionContext) _DocumentReferenceType_date(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Date, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -71519,7 +71443,7 @@ func (ec *executionContext) _DocumentReferenceType_date(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentReferenceType_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DocumentReferenceType", Field: field, @@ -71532,8 +71456,8 @@ func (ec *executionContext) fieldContext_DocumentReferenceType_date(_ context.Co return fc, nil } -func (ec *executionContext) _Dosage_asNeededFor(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_asNeededFor(ctx, field) +func (ec *executionContext) _DocumentReferenceType_extension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_extension(ctx, field) if err != nil { return graphql.Null } @@ -71546,7 +71470,7 @@ func (ec *executionContext) _Dosage_asNeededFor(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AsNeededFor, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -71555,31 +71479,135 @@ func (ec *executionContext) _Dosage_asNeededFor(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_asNeededFor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentReferenceType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Dosage", + Object: "DocumentReferenceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil @@ -71621,24 +71649,24 @@ func (ec *executionContext) fieldContext_Dosage_doseAndRate(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "extension": + return ec.fieldContext_DosageDoseAndRate_extension(ctx, field) + case "type": + return ec.fieldContext_DosageDoseAndRate_type(ctx, field) case "id": return ec.fieldContext_DosageDoseAndRate_id(ctx, field) case "doseRange": return ec.fieldContext_DosageDoseAndRate_doseRange(ctx, field) case "resourceType": return ec.fieldContext_DosageDoseAndRate_resourceType(ctx, field) - case "rateRange": - return ec.fieldContext_DosageDoseAndRate_rateRange(ctx, field) - case "type": - return ec.fieldContext_DosageDoseAndRate_type(ctx, field) + case "rateQuantity": + return ec.fieldContext_DosageDoseAndRate_rateQuantity(ctx, field) case "doseQuantity": return ec.fieldContext_DosageDoseAndRate_doseQuantity(ctx, field) case "rateRatio": return ec.fieldContext_DosageDoseAndRate_rateRatio(ctx, field) - case "extension": - return ec.fieldContext_DosageDoseAndRate_extension(ctx, field) - case "rateQuantity": - return ec.fieldContext_DosageDoseAndRate_rateQuantity(ctx, field) + case "rateRange": + return ec.fieldContext_DosageDoseAndRate_rateRange(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DosageDoseAndRate", field.Name) }, @@ -71646,8 +71674,8 @@ func (ec *executionContext) fieldContext_Dosage_doseAndRate(_ context.Context, f return fc, nil } -func (ec *executionContext) _Dosage_route(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_route(ctx, field) +func (ec *executionContext) _Dosage_additionalInstruction(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_additionalInstruction(ctx, field) if err != nil { return graphql.Null } @@ -71660,7 +71688,7 @@ func (ec *executionContext) _Dosage_route(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Route, nil + return obj.AdditionalInstruction, nil }) if err != nil { ec.Error(ctx, err) @@ -71669,12 +71697,12 @@ func (ec *executionContext) _Dosage_route(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_route(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_additionalInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, @@ -71682,6 +71710,8 @@ func (ec *executionContext) fieldContext_Dosage_route(_ context.Context, field g IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -71690,8 +71720,6 @@ func (ec *executionContext) fieldContext_Dosage_route(_ context.Context, field g return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -71699,8 +71727,8 @@ func (ec *executionContext) fieldContext_Dosage_route(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Dosage_method(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_method(ctx, field) +func (ec *executionContext) _Dosage_route(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_route(ctx, field) if err != nil { return graphql.Null } @@ -71713,7 +71741,7 @@ func (ec *executionContext) _Dosage_method(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Method, nil + return obj.Route, nil }) if err != nil { ec.Error(ctx, err) @@ -71727,7 +71755,7 @@ func (ec *executionContext) _Dosage_method(ctx context.Context, field graphql.Co return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_route(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, @@ -71735,6 +71763,8 @@ func (ec *executionContext) fieldContext_Dosage_method(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -71743,8 +71773,6 @@ func (ec *executionContext) fieldContext_Dosage_method(_ context.Context, field return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -71752,8 +71780,8 @@ func (ec *executionContext) fieldContext_Dosage_method(_ context.Context, field return fc, nil } -func (ec *executionContext) _Dosage_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_modifierExtension(ctx, field) +func (ec *executionContext) _Dosage_timing(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_timing(ctx, field) if err != nil { return graphql.Null } @@ -71766,7 +71794,7 @@ func (ec *executionContext) _Dosage_modifierExtension(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Timing, nil }) if err != nil { ec.Error(ctx, err) @@ -71775,12 +71803,12 @@ func (ec *executionContext) _Dosage_modifierExtension(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Timing) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_timing(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, @@ -71788,170 +71816,29 @@ func (ec *executionContext) fieldContext_Dosage_modifierExtension(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "code": + return ec.fieldContext_Timing_code(ctx, field) + case "event": + return ec.fieldContext_Timing_event(ctx, field) + case "extension": + return ec.fieldContext_Timing_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Timing_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Timing_modifierExtension(ctx, field) + case "repeat": + return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Timing_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Dosage_patientInstruction(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_patientInstruction(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PatientInstruction, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Dosage_patientInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Dosage", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) }, } return fc, nil } -func (ec *executionContext) _Dosage_text(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_text(ctx, field) +func (ec *executionContext) _Dosage_id(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_id(ctx, field) if err != nil { return graphql.Null } @@ -71964,7 +71851,7 @@ func (ec *executionContext) _Dosage_text(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -71978,7 +71865,7 @@ func (ec *executionContext) _Dosage_text(ctx context.Context, field graphql.Coll return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, @@ -71991,8 +71878,8 @@ func (ec *executionContext) fieldContext_Dosage_text(_ context.Context, field gr return fc, nil } -func (ec *executionContext) _Dosage_extension(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_extension(ctx, field) +func (ec *executionContext) _Dosage_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -72005,7 +71892,7 @@ func (ec *executionContext) _Dosage_extension(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -72019,7 +71906,7 @@ func (ec *executionContext) _Dosage_extension(ctx context.Context, field graphql return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, @@ -72027,120 +71914,120 @@ func (ec *executionContext) fieldContext_Dosage_extension(_ context.Context, fie IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -72148,8 +72035,8 @@ func (ec *executionContext) fieldContext_Dosage_extension(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Dosage_site(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_site(ctx, field) +func (ec *executionContext) _Dosage_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -72162,7 +72049,7 @@ func (ec *executionContext) _Dosage_site(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Site, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -72171,38 +72058,26 @@ func (ec *executionContext) _Dosage_site(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_site(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Dosage_maxDosePerAdministration(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) +func (ec *executionContext) _Dosage_text(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_text(ctx, field) if err != nil { return graphql.Null } @@ -72215,7 +72090,7 @@ func (ec *executionContext) _Dosage_maxDosePerAdministration(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxDosePerAdministration, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -72224,44 +72099,26 @@ func (ec *executionContext) _Dosage_maxDosePerAdministration(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*string) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_maxDosePerAdministration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Dosage_maxDosePerLifetime(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) +func (ec *executionContext) _Dosage_sequence(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_sequence(ctx, field) if err != nil { return graphql.Null } @@ -72274,7 +72131,7 @@ func (ec *executionContext) _Dosage_maxDosePerLifetime(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxDosePerLifetime, nil + return obj.Sequence, nil }) if err != nil { ec.Error(ctx, err) @@ -72283,44 +72140,26 @@ func (ec *executionContext) _Dosage_maxDosePerLifetime(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*string) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_maxDosePerLifetime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_sequence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Dosage_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_resourceType(ctx, field) +func (ec *executionContext) _Dosage_asNeeded(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_asNeeded(ctx, field) if err != nil { return graphql.Null } @@ -72333,7 +72172,7 @@ func (ec *executionContext) _Dosage_resourceType(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.AsNeeded, nil }) if err != nil { ec.Error(ctx, err) @@ -72347,7 +72186,7 @@ func (ec *executionContext) _Dosage_resourceType(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_asNeeded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, @@ -72360,8 +72199,8 @@ func (ec *executionContext) fieldContext_Dosage_resourceType(_ context.Context, return fc, nil } -func (ec *executionContext) _Dosage_additionalInstruction(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_additionalInstruction(ctx, field) +func (ec *executionContext) _Dosage_site(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_site(ctx, field) if err != nil { return graphql.Null } @@ -72374,7 +72213,7 @@ func (ec *executionContext) _Dosage_additionalInstruction(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AdditionalInstruction, nil + return obj.Site, nil }) if err != nil { ec.Error(ctx, err) @@ -72383,12 +72222,12 @@ func (ec *executionContext) _Dosage_additionalInstruction(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_additionalInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_site(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, @@ -72396,6 +72235,8 @@ func (ec *executionContext) fieldContext_Dosage_additionalInstruction(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -72404,8 +72245,6 @@ func (ec *executionContext) fieldContext_Dosage_additionalInstruction(_ context. return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -72413,8 +72252,8 @@ func (ec *executionContext) fieldContext_Dosage_additionalInstruction(_ context. return fc, nil } -func (ec *executionContext) _Dosage_asNeeded(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_asNeeded(ctx, field) +func (ec *executionContext) _Dosage_extension(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_extension(ctx, field) if err != nil { return graphql.Null } @@ -72427,7 +72266,164 @@ func (ec *executionContext) _Dosage_asNeeded(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AsNeeded, nil + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Dosage_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Dosage", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Dosage_patientInstruction(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_patientInstruction(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PatientInstruction, nil }) if err != nil { ec.Error(ctx, err) @@ -72441,7 +72437,7 @@ func (ec *executionContext) _Dosage_asNeeded(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_asNeeded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_patientInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, @@ -72454,8 +72450,8 @@ func (ec *executionContext) fieldContext_Dosage_asNeeded(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Dosage_timing(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_timing(ctx, field) +func (ec *executionContext) _Dosage_asNeededFor(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_asNeededFor(ctx, field) if err != nil { return graphql.Null } @@ -72468,7 +72464,7 @@ func (ec *executionContext) _Dosage_timing(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Timing, nil + return obj.AsNeededFor, nil }) if err != nil { ec.Error(ctx, err) @@ -72477,12 +72473,12 @@ func (ec *executionContext) _Dosage_timing(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Timing) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_timing(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_asNeededFor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, @@ -72490,29 +72486,25 @@ func (ec *executionContext) fieldContext_Dosage_timing(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "repeat": - return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_Timing_resourceType(ctx, field) - case "code": - return ec.fieldContext_Timing_code(ctx, field) - case "event": - return ec.fieldContext_Timing_event(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Timing_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Timing_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_Timing_modifierExtension(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Dosage_id(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_id(ctx, field) +func (ec *executionContext) _Dosage_maxDosePerLifetime(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) if err != nil { return graphql.Null } @@ -72525,7 +72517,7 @@ func (ec *executionContext) _Dosage_id(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.MaxDosePerLifetime, nil }) if err != nil { ec.Error(ctx, err) @@ -72534,26 +72526,44 @@ func (ec *executionContext) _Dosage_id(ctx context.Context, field graphql.Collec if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_maxDosePerLifetime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _Dosage_sequence(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Dosage_sequence(ctx, field) +func (ec *executionContext) _Dosage_method(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_method(ctx, field) if err != nil { return graphql.Null } @@ -72566,7 +72576,7 @@ func (ec *executionContext) _Dosage_sequence(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Sequence, nil + return obj.Method, nil }) if err != nil { ec.Error(ctx, err) @@ -72575,19 +72585,31 @@ func (ec *executionContext) _Dosage_sequence(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Dosage_sequence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Dosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -72629,6 +72651,8 @@ func (ec *executionContext) fieldContext_Dosage_maxDosePerPeriod(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) case "extension": return ec.fieldContext_Ratio_extension(ctx, field) case "id": @@ -72637,8 +72661,6 @@ func (ec *executionContext) fieldContext_Dosage_maxDosePerPeriod(_ context.Conte return ec.fieldContext_Ratio_numerator(ctx, field) case "resourceType": return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, @@ -72646,8 +72668,8 @@ func (ec *executionContext) fieldContext_Dosage_maxDosePerPeriod(_ context.Conte return fc, nil } -func (ec *executionContext) _DosageDoseAndRate_id(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DosageDoseAndRate_id(ctx, field) +func (ec *executionContext) _Dosage_maxDosePerAdministration(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) if err != nil { return graphql.Null } @@ -72660,7 +72682,7 @@ func (ec *executionContext) _DosageDoseAndRate_id(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.MaxDosePerAdministration, nil }) if err != nil { ec.Error(ctx, err) @@ -72669,26 +72691,201 @@ func (ec *executionContext) _DosageDoseAndRate_id(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DosageDoseAndRate_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Dosage_maxDosePerAdministration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Dosage", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DosageDoseAndRate_extension(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DosageDoseAndRate_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DosageDoseAndRate_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DosageDoseAndRate", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _DosageDoseAndRate_doseRange(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DosageDoseAndRate_doseRange(ctx, field) +func (ec *executionContext) _DosageDoseAndRate_type(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DosageDoseAndRate_type(ctx, field) if err != nil { return graphql.Null } @@ -72701,7 +72898,7 @@ func (ec *executionContext) _DosageDoseAndRate_doseRange(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DoseRange, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -72710,12 +72907,12 @@ func (ec *executionContext) _DosageDoseAndRate_doseRange(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DosageDoseAndRate_doseRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DosageDoseAndRate_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DosageDoseAndRate", Field: field, @@ -72724,24 +72921,24 @@ func (ec *executionContext) fieldContext_DosageDoseAndRate_doseRange(_ context.C Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _DosageDoseAndRate_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DosageDoseAndRate_resourceType(ctx, field) +func (ec *executionContext) _DosageDoseAndRate_id(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DosageDoseAndRate_id(ctx, field) if err != nil { return graphql.Null } @@ -72754,7 +72951,7 @@ func (ec *executionContext) _DosageDoseAndRate_resourceType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -72768,7 +72965,7 @@ func (ec *executionContext) _DosageDoseAndRate_resourceType(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DosageDoseAndRate_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DosageDoseAndRate_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DosageDoseAndRate", Field: field, @@ -72781,8 +72978,8 @@ func (ec *executionContext) fieldContext_DosageDoseAndRate_resourceType(_ contex return fc, nil } -func (ec *executionContext) _DosageDoseAndRate_rateRange(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DosageDoseAndRate_rateRange(ctx, field) +func (ec *executionContext) _DosageDoseAndRate_doseRange(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DosageDoseAndRate_doseRange(ctx, field) if err != nil { return graphql.Null } @@ -72795,7 +72992,7 @@ func (ec *executionContext) _DosageDoseAndRate_rateRange(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RateRange, nil + return obj.DoseRange, nil }) if err != nil { ec.Error(ctx, err) @@ -72809,7 +73006,7 @@ func (ec *executionContext) _DosageDoseAndRate_rateRange(ctx context.Context, fi return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DosageDoseAndRate_rateRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DosageDoseAndRate_doseRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DosageDoseAndRate", Field: field, @@ -72817,16 +73014,16 @@ func (ec *executionContext) fieldContext_DosageDoseAndRate_rateRange(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": return ec.fieldContext_Range_resourceType(ctx, field) case "extension": return ec.fieldContext_Range_extension(ctx, field) case "high": return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, @@ -72834,8 +73031,8 @@ func (ec *executionContext) fieldContext_DosageDoseAndRate_rateRange(_ context.C return fc, nil } -func (ec *executionContext) _DosageDoseAndRate_type(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DosageDoseAndRate_type(ctx, field) +func (ec *executionContext) _DosageDoseAndRate_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DosageDoseAndRate_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -72848,7 +73045,7 @@ func (ec *executionContext) _DosageDoseAndRate_type(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -72857,12 +73054,53 @@ func (ec *executionContext) _DosageDoseAndRate_type(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DosageDoseAndRate_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DosageDoseAndRate_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DosageDoseAndRate", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DosageDoseAndRate_rateQuantity(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DosageDoseAndRate_rateQuantity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RateQuantity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Quantity) + fc.Result = res + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DosageDoseAndRate_rateQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DosageDoseAndRate", Field: field, @@ -72870,18 +73108,24 @@ func (ec *executionContext) fieldContext_DosageDoseAndRate_type(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil @@ -72982,6 +73226,8 @@ func (ec *executionContext) fieldContext_DosageDoseAndRate_rateRatio(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) case "extension": return ec.fieldContext_Ratio_extension(ctx, field) case "id": @@ -72990,8 +73236,6 @@ func (ec *executionContext) fieldContext_DosageDoseAndRate_rateRatio(_ context.C return ec.fieldContext_Ratio_numerator(ctx, field) case "resourceType": return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, @@ -72999,8 +73243,8 @@ func (ec *executionContext) fieldContext_DosageDoseAndRate_rateRatio(_ context.C return fc, nil } -func (ec *executionContext) _DosageDoseAndRate_extension(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DosageDoseAndRate_extension(ctx, field) +func (ec *executionContext) _DosageDoseAndRate_rateRange(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DosageDoseAndRate_rateRange(ctx, field) if err != nil { return graphql.Null } @@ -73013,7 +73257,7 @@ func (ec *executionContext) _DosageDoseAndRate_extension(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.RateRange, nil }) if err != nil { ec.Error(ctx, err) @@ -73022,12 +73266,12 @@ func (ec *executionContext) _DosageDoseAndRate_extension(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DosageDoseAndRate_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DosageDoseAndRate_rateRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DosageDoseAndRate", Field: field, @@ -73035,188 +73279,25 @@ func (ec *executionContext) fieldContext_DosageDoseAndRate_extension(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DosageDoseAndRate_rateQuantity(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DosageDoseAndRate_rateQuantity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RateQuantity, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Quantity) - fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DosageDoseAndRate_rateQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DosageDoseAndRate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) + return ec.fieldContext_Range_resourceType(ctx, field) case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _Duration_code(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Duration_code(ctx, field) +func (ec *executionContext) _Duration_id(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Duration_id(ctx, field) if err != nil { return graphql.Null } @@ -73229,7 +73310,7 @@ func (ec *executionContext) _Duration_code(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -73243,7 +73324,7 @@ func (ec *executionContext) _Duration_code(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Duration_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Duration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Duration", Field: field, @@ -73256,8 +73337,8 @@ func (ec *executionContext) fieldContext_Duration_code(_ context.Context, field return fc, nil } -func (ec *executionContext) _Duration_comparator(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Duration_comparator(ctx, field) +func (ec *executionContext) _Duration_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Duration_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -73270,7 +73351,7 @@ func (ec *executionContext) _Duration_comparator(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Comparator, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -73284,7 +73365,7 @@ func (ec *executionContext) _Duration_comparator(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Duration_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Duration_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Duration", Field: field, @@ -73297,165 +73378,8 @@ func (ec *executionContext) fieldContext_Duration_comparator(_ context.Context, return fc, nil } -func (ec *executionContext) _Duration_extension(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Duration_extension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Extension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Duration_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Duration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Duration_id(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Duration_id(ctx, field) +func (ec *executionContext) _Duration_system(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Duration_system(ctx, field) if err != nil { return graphql.Null } @@ -73468,7 +73392,7 @@ func (ec *executionContext) _Duration_id(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.System, nil }) if err != nil { ec.Error(ctx, err) @@ -73482,7 +73406,7 @@ func (ec *executionContext) _Duration_id(ctx context.Context, field graphql.Coll return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Duration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Duration_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Duration", Field: field, @@ -73495,8 +73419,8 @@ func (ec *executionContext) fieldContext_Duration_id(_ context.Context, field gr return fc, nil } -func (ec *executionContext) _Duration_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Duration_resourceType(ctx, field) +func (ec *executionContext) _Duration_unit(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Duration_unit(ctx, field) if err != nil { return graphql.Null } @@ -73509,7 +73433,7 @@ func (ec *executionContext) _Duration_resourceType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Unit, nil }) if err != nil { ec.Error(ctx, err) @@ -73523,7 +73447,7 @@ func (ec *executionContext) _Duration_resourceType(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Duration_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Duration_unit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Duration", Field: field, @@ -73536,8 +73460,8 @@ func (ec *executionContext) fieldContext_Duration_resourceType(_ context.Context return fc, nil } -func (ec *executionContext) _Duration_system(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Duration_system(ctx, field) +func (ec *executionContext) _Duration_value(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Duration_value(ctx, field) if err != nil { return graphql.Null } @@ -73550,7 +73474,7 @@ func (ec *executionContext) _Duration_system(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.System, nil + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -73564,7 +73488,7 @@ func (ec *executionContext) _Duration_system(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Duration_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Duration_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Duration", Field: field, @@ -73577,8 +73501,8 @@ func (ec *executionContext) fieldContext_Duration_system(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Duration_unit(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Duration_unit(ctx, field) +func (ec *executionContext) _Duration_code(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Duration_code(ctx, field) if err != nil { return graphql.Null } @@ -73591,7 +73515,7 @@ func (ec *executionContext) _Duration_unit(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Unit, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -73605,7 +73529,7 @@ func (ec *executionContext) _Duration_unit(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Duration_unit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Duration_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Duration", Field: field, @@ -73618,8 +73542,8 @@ func (ec *executionContext) fieldContext_Duration_unit(_ context.Context, field return fc, nil } -func (ec *executionContext) _Duration_value(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Duration_value(ctx, field) +func (ec *executionContext) _Duration_comparator(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Duration_comparator(ctx, field) if err != nil { return graphql.Null } @@ -73632,7 +73556,7 @@ func (ec *executionContext) _Duration_value(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Value, nil + return obj.Comparator, nil }) if err != nil { ec.Error(ctx, err) @@ -73646,7 +73570,7 @@ func (ec *executionContext) _Duration_value(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Duration_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Duration_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Duration", Field: field, @@ -73659,8 +73583,8 @@ func (ec *executionContext) fieldContext_Duration_value(_ context.Context, field return fc, nil } -func (ec *executionContext) _Encounter_length(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_length(ctx, field) +func (ec *executionContext) _Duration_extension(ctx context.Context, field graphql.CollectedField, obj *model.Duration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Duration_extension(ctx, field) if err != nil { return graphql.Null } @@ -73673,7 +73597,7 @@ func (ec *executionContext) _Encounter_length(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Length, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -73682,44 +73606,142 @@ func (ec *executionContext) _Encounter_length(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Duration) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_length(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Duration_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Encounter", + Object: "Duration", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) - case "extension": - return ec.fieldContext_Duration_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Duration_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Duration_resourceType(ctx, field) - case "system": - return ec.fieldContext_Duration_system(ctx, field) - case "unit": - return ec.fieldContext_Duration_unit(ctx, field) - case "value": - return ec.fieldContext_Duration_value(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_actualPeriod(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_actualPeriod(ctx, field) +func (ec *executionContext) _Encounter_meta(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_meta(ctx, field) if err != nil { return graphql.Null } @@ -73732,7 +73754,7 @@ func (ec *executionContext) _Encounter_actualPeriod(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ActualPeriod, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -73741,12 +73763,12 @@ func (ec *executionContext) _Encounter_actualPeriod(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_actualPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -73754,25 +73776,33 @@ func (ec *executionContext) fieldContext_Encounter_actualPeriod(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_priority(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_priority(ctx, field) +func (ec *executionContext) _Encounter_text(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_text(ctx, field) if err != nil { return graphql.Null } @@ -73785,7 +73815,7 @@ func (ec *executionContext) _Encounter_priority(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Priority, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -73794,12 +73824,12 @@ func (ec *executionContext) _Encounter_priority(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -73807,25 +73837,25 @@ func (ec *executionContext) fieldContext_Encounter_priority(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_class(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_class(ctx, field) +func (ec *executionContext) _Encounter_plannedEndDate(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_plannedEndDate(ctx, field) if err != nil { return graphql.Null } @@ -73838,7 +73868,7 @@ func (ec *executionContext) _Encounter_class(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Class, nil + return obj.PlannedEndDate, nil }) if err != nil { ec.Error(ctx, err) @@ -73847,38 +73877,26 @@ func (ec *executionContext) _Encounter_class(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_plannedEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Encounter_plannedEndDate(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_plannedEndDate(ctx, field) +func (ec *executionContext) _Encounter_language(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_language(ctx, field) if err != nil { return graphql.Null } @@ -73891,7 +73909,7 @@ func (ec *executionContext) _Encounter_plannedEndDate(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PlannedEndDate, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -73905,7 +73923,7 @@ func (ec *executionContext) _Encounter_plannedEndDate(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_plannedEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -73918,8 +73936,8 @@ func (ec *executionContext) fieldContext_Encounter_plannedEndDate(_ context.Cont return fc, nil } -func (ec *executionContext) _Encounter_serviceType(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_serviceType(ctx, field) +func (ec *executionContext) _Encounter_reason(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_reason(ctx, field) if err != nil { return graphql.Null } @@ -73932,7 +73950,7 @@ func (ec *executionContext) _Encounter_serviceType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ServiceType, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -73941,12 +73959,12 @@ func (ec *executionContext) _Encounter_serviceType(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.([]*model.EncounterReason) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOEncounterReason2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterReason(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_serviceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -73954,23 +73972,27 @@ func (ec *executionContext) fieldContext_Encounter_serviceType(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "value": + return ec.fieldContext_EncounterReason_value(ctx, field) case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_EncounterReason_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) + return ec.fieldContext_EncounterReason_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_EncounterReason_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_EncounterReason_resourceType(ctx, field) + case "use": + return ec.fieldContext_EncounterReason_use(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EncounterReason", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_admission(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_admission(ctx, field) +func (ec *executionContext) _Encounter_status(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_status(ctx, field) if err != nil { return graphql.Null } @@ -73983,7 +74005,7 @@ func (ec *executionContext) _Encounter_admission(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Admission, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -73992,44 +74014,26 @@ func (ec *executionContext) _Encounter_admission(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.EncounterAdmission) + res := resTmp.(*string) fc.Result = res - return ec.marshalOEncounterAdmission2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterAdmission(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_admission(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_EncounterAdmission_extension(ctx, field) - case "id": - return ec.fieldContext_EncounterAdmission_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_EncounterAdmission_modifierExtension(ctx, field) - case "preAdmissionIdentifier": - return ec.fieldContext_EncounterAdmission_preAdmissionIdentifier(ctx, field) - case "reAdmission": - return ec.fieldContext_EncounterAdmission_reAdmission(ctx, field) - case "resourceType": - return ec.fieldContext_EncounterAdmission_resourceType(ctx, field) - case "admitSource": - return ec.fieldContext_EncounterAdmission_admitSource(ctx, field) - case "dischargeDisposition": - return ec.fieldContext_EncounterAdmission_dischargeDisposition(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EncounterAdmission", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Encounter_meta(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_meta(ctx, field) +func (ec *executionContext) _Encounter_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -74042,7 +74046,7 @@ func (ec *executionContext) _Encounter_meta(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -74051,46 +74055,26 @@ func (ec *executionContext) _Encounter_meta(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) - case "id": - return ec.fieldContext_Meta_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Encounter_id(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_id(ctx, field) +func (ec *executionContext) _Encounter_virtualService(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_virtualService(ctx, field) if err != nil { return graphql.Null } @@ -74103,7 +74087,7 @@ func (ec *executionContext) _Encounter_id(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.VirtualService, nil }) if err != nil { ec.Error(ctx, err) @@ -74112,26 +74096,50 @@ func (ec *executionContext) _Encounter_id(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.VirtualServiceDetail) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOVirtualServiceDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐVirtualServiceDetail(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_virtualService(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "maxParticipants": + return ec.fieldContext_VirtualServiceDetail_maxParticipants(ctx, field) + case "resourceType": + return ec.fieldContext_VirtualServiceDetail_resourceType(ctx, field) + case "additionalInfo": + return ec.fieldContext_VirtualServiceDetail_additionalInfo(ctx, field) + case "extension": + return ec.fieldContext_VirtualServiceDetail_extension(ctx, field) + case "sessionKey": + return ec.fieldContext_VirtualServiceDetail_sessionKey(ctx, field) + case "addressContactPoint": + return ec.fieldContext_VirtualServiceDetail_addressContactPoint(ctx, field) + case "addressString": + return ec.fieldContext_VirtualServiceDetail_addressString(ctx, field) + case "addressExtendedContactDetail": + return ec.fieldContext_VirtualServiceDetail_addressExtendedContactDetail(ctx, field) + case "addressUrl": + return ec.fieldContext_VirtualServiceDetail_addressUrl(ctx, field) + case "id": + return ec.fieldContext_VirtualServiceDetail_id(ctx, field) + case "channelType": + return ec.fieldContext_VirtualServiceDetail_channelType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type VirtualServiceDetail", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_identifier(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_identifier(ctx, field) +func (ec *executionContext) _Encounter_subjectStatus(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_subjectStatus(ctx, field) if err != nil { return graphql.Null } @@ -74144,7 +74152,7 @@ func (ec *executionContext) _Encounter_identifier(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.SubjectStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -74153,12 +74161,12 @@ func (ec *executionContext) _Encounter_identifier(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_subjectStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -74166,33 +74174,25 @@ func (ec *executionContext) fieldContext_Encounter_identifier(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_plannedStartDate(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_plannedStartDate(ctx, field) +func (ec *executionContext) _Encounter_specialArrangement(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_specialArrangement(ctx, field) if err != nil { return graphql.Null } @@ -74205,7 +74205,7 @@ func (ec *executionContext) _Encounter_plannedStartDate(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PlannedStartDate, nil + return obj.SpecialArrangement, nil }) if err != nil { ec.Error(ctx, err) @@ -74214,26 +74214,38 @@ func (ec *executionContext) _Encounter_plannedStartDate(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_plannedStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_specialArrangement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_type(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_type(ctx, field) +func (ec *executionContext) _Encounter_admission(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_admission(ctx, field) if err != nil { return graphql.Null } @@ -74246,7 +74258,7 @@ func (ec *executionContext) _Encounter_type(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Admission, nil }) if err != nil { ec.Error(ctx, err) @@ -74255,12 +74267,12 @@ func (ec *executionContext) _Encounter_type(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.EncounterAdmission) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOEncounterAdmission2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterAdmission(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_admission(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -74268,25 +74280,31 @@ func (ec *executionContext) fieldContext_Encounter_type(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "admitSource": + return ec.fieldContext_EncounterAdmission_admitSource(ctx, field) + case "dischargeDisposition": + return ec.fieldContext_EncounterAdmission_dischargeDisposition(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_EncounterAdmission_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_EncounterAdmission_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_EncounterAdmission_modifierExtension(ctx, field) + case "preAdmissionIdentifier": + return ec.fieldContext_EncounterAdmission_preAdmissionIdentifier(ctx, field) + case "reAdmission": + return ec.fieldContext_EncounterAdmission_reAdmission(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_EncounterAdmission_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EncounterAdmission", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_diagnosis(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_diagnosis(ctx, field) +func (ec *executionContext) _Encounter_specialCourtesy(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_specialCourtesy(ctx, field) if err != nil { return graphql.Null } @@ -74299,7 +74317,7 @@ func (ec *executionContext) _Encounter_diagnosis(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Diagnosis, nil + return obj.SpecialCourtesy, nil }) if err != nil { ec.Error(ctx, err) @@ -74308,12 +74326,12 @@ func (ec *executionContext) _Encounter_diagnosis(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.EncounterDiagnosis) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOEncounterDiagnosis2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterDiagnosis(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_diagnosis(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_specialCourtesy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -74322,26 +74340,24 @@ func (ec *executionContext) fieldContext_Encounter_diagnosis(_ context.Context, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "resourceType": - return ec.fieldContext_EncounterDiagnosis_resourceType(ctx, field) - case "use": - return ec.fieldContext_EncounterDiagnosis_use(ctx, field) - case "condition": - return ec.fieldContext_EncounterDiagnosis_condition(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_EncounterDiagnosis_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_EncounterDiagnosis_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_EncounterDiagnosis_modifierExtension(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EncounterDiagnosis", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_text(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_text(ctx, field) +func (ec *executionContext) _Encounter_identifier(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_identifier(ctx, field) if err != nil { return graphql.Null } @@ -74354,7 +74370,7 @@ func (ec *executionContext) _Encounter_text(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -74363,12 +74379,12 @@ func (ec *executionContext) _Encounter_text(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -74376,25 +74392,33 @@ func (ec *executionContext) fieldContext_Encounter_text(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_participant(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_participant(ctx, field) +func (ec *executionContext) _Encounter_class(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_class(ctx, field) if err != nil { return graphql.Null } @@ -74407,7 +74431,7 @@ func (ec *executionContext) _Encounter_participant(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Participant, nil + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) @@ -74416,12 +74440,12 @@ func (ec *executionContext) _Encounter_participant(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.EncounterParticipant) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOEncounterParticipant2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterParticipant(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_participant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -74429,27 +74453,25 @@ func (ec *executionContext) fieldContext_Encounter_participant(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_EncounterParticipant_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_EncounterParticipant_modifierExtension(ctx, field) - case "period": - return ec.fieldContext_EncounterParticipant_period(ctx, field) case "resourceType": - return ec.fieldContext_EncounterParticipant_resourceType(ctx, field) - case "type": - return ec.fieldContext_EncounterParticipant_type(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_EncounterParticipant_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EncounterParticipant", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_status(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_status(ctx, field) +func (ec *executionContext) _Encounter_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -74462,7 +74484,7 @@ func (ec *executionContext) _Encounter_status(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -74476,7 +74498,7 @@ func (ec *executionContext) _Encounter_status(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -74489,8 +74511,8 @@ func (ec *executionContext) fieldContext_Encounter_status(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Encounter_virtualService(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_virtualService(ctx, field) +func (ec *executionContext) _Encounter_plannedStartDate(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_plannedStartDate(ctx, field) if err != nil { return graphql.Null } @@ -74503,7 +74525,7 @@ func (ec *executionContext) _Encounter_virtualService(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VirtualService, nil + return obj.PlannedStartDate, nil }) if err != nil { ec.Error(ctx, err) @@ -74512,43 +74534,19 @@ func (ec *executionContext) _Encounter_virtualService(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.VirtualServiceDetail) + res := resTmp.(*string) fc.Result = res - return ec.marshalOVirtualServiceDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐVirtualServiceDetail(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_virtualService(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_plannedStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_VirtualServiceDetail_resourceType(ctx, field) - case "additionalInfo": - return ec.fieldContext_VirtualServiceDetail_additionalInfo(ctx, field) - case "addressContactPoint": - return ec.fieldContext_VirtualServiceDetail_addressContactPoint(ctx, field) - case "addressExtendedContactDetail": - return ec.fieldContext_VirtualServiceDetail_addressExtendedContactDetail(ctx, field) - case "sessionKey": - return ec.fieldContext_VirtualServiceDetail_sessionKey(ctx, field) - case "extension": - return ec.fieldContext_VirtualServiceDetail_extension(ctx, field) - case "id": - return ec.fieldContext_VirtualServiceDetail_id(ctx, field) - case "addressString": - return ec.fieldContext_VirtualServiceDetail_addressString(ctx, field) - case "addressUrl": - return ec.fieldContext_VirtualServiceDetail_addressUrl(ctx, field) - case "channelType": - return ec.fieldContext_VirtualServiceDetail_channelType(ctx, field) - case "maxParticipants": - return ec.fieldContext_VirtualServiceDetail_maxParticipants(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VirtualServiceDetail", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -74590,120 +74588,318 @@ func (ec *executionContext) fieldContext_Encounter_modifierExtension(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) case "valuePositiveInt": return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) case "valueTime": return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueTiming": return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Encounter_contained(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_contained(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contained, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ResourceUnion) + fc.Result = res + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Encounter_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Encounter", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ResourceUnion does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Encounter_extension(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Encounter_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Encounter", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) case "valueExpression": return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) case "valueAvailability": return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -74711,8 +74907,8 @@ func (ec *executionContext) fieldContext_Encounter_modifierExtension(_ context.C return fc, nil } -func (ec *executionContext) _Encounter_specialCourtesy(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_specialCourtesy(ctx, field) +func (ec *executionContext) _Encounter_priority(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_priority(ctx, field) if err != nil { return graphql.Null } @@ -74725,7 +74921,7 @@ func (ec *executionContext) _Encounter_specialCourtesy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SpecialCourtesy, nil + return obj.Priority, nil }) if err != nil { ec.Error(ctx, err) @@ -74734,12 +74930,12 @@ func (ec *executionContext) _Encounter_specialCourtesy(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_specialCourtesy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -74747,6 +74943,8 @@ func (ec *executionContext) fieldContext_Encounter_specialCourtesy(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -74755,8 +74953,6 @@ func (ec *executionContext) fieldContext_Encounter_specialCourtesy(_ context.Con return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -74764,8 +74960,8 @@ func (ec *executionContext) fieldContext_Encounter_specialCourtesy(_ context.Con return fc, nil } -func (ec *executionContext) _Encounter_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_resourceType(ctx, field) +func (ec *executionContext) _Encounter_diagnosis(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_diagnosis(ctx, field) if err != nil { return graphql.Null } @@ -74778,7 +74974,7 @@ func (ec *executionContext) _Encounter_resourceType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Diagnosis, nil }) if err != nil { ec.Error(ctx, err) @@ -74787,26 +74983,40 @@ func (ec *executionContext) _Encounter_resourceType(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.EncounterDiagnosis) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOEncounterDiagnosis2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterDiagnosis(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_diagnosis(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "use": + return ec.fieldContext_EncounterDiagnosis_use(ctx, field) + case "condition": + return ec.fieldContext_EncounterDiagnosis_condition(ctx, field) + case "extension": + return ec.fieldContext_EncounterDiagnosis_extension(ctx, field) + case "id": + return ec.fieldContext_EncounterDiagnosis_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_EncounterDiagnosis_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_EncounterDiagnosis_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EncounterDiagnosis", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_specialArrangement(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_specialArrangement(ctx, field) +func (ec *executionContext) _Encounter_serviceType(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_serviceType(ctx, field) if err != nil { return graphql.Null } @@ -74819,7 +75029,7 @@ func (ec *executionContext) _Encounter_specialArrangement(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SpecialArrangement, nil + return obj.ServiceType, nil }) if err != nil { ec.Error(ctx, err) @@ -74828,12 +75038,12 @@ func (ec *executionContext) _Encounter_specialArrangement(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_specialArrangement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_serviceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -74841,25 +75051,23 @@ func (ec *executionContext) fieldContext_Encounter_specialArrangement(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_extension(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_extension(ctx, field) +func (ec *executionContext) _Encounter_length(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_length(ctx, field) if err != nil { return graphql.Null } @@ -74872,7 +75080,7 @@ func (ec *executionContext) _Encounter_extension(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Length, nil }) if err != nil { ec.Error(ctx, err) @@ -74881,12 +75089,12 @@ func (ec *executionContext) _Encounter_extension(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Duration) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_length(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -74894,129 +75102,31 @@ func (ec *executionContext) fieldContext_Encounter_extension(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Duration_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_Duration_resourceType(ctx, field) + case "system": + return ec.fieldContext_Duration_system(ctx, field) + case "unit": + return ec.fieldContext_Duration_unit(ctx, field) + case "value": + return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Duration_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_contained(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_contained(ctx, field) +func (ec *executionContext) _Encounter_participant(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_participant(ctx, field) if err != nil { return graphql.Null } @@ -75029,7 +75139,7 @@ func (ec *executionContext) _Encounter_contained(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Participant, nil }) if err != nil { ec.Error(ctx, err) @@ -75038,26 +75148,40 @@ func (ec *executionContext) _Encounter_contained(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.([]*model.EncounterParticipant) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOEncounterParticipant2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterParticipant(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_participant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_EncounterParticipant_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_EncounterParticipant_modifierExtension(ctx, field) + case "period": + return ec.fieldContext_EncounterParticipant_period(ctx, field) + case "resourceType": + return ec.fieldContext_EncounterParticipant_resourceType(ctx, field) + case "type": + return ec.fieldContext_EncounterParticipant_type(ctx, field) + case "extension": + return ec.fieldContext_EncounterParticipant_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EncounterParticipant", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_location(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_location(ctx, field) +func (ec *executionContext) _Encounter_type(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_type(ctx, field) if err != nil { return graphql.Null } @@ -75070,7 +75194,7 @@ func (ec *executionContext) _Encounter_location(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Location, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -75079,12 +75203,12 @@ func (ec *executionContext) _Encounter_location(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.EncounterLocation) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOEncounterLocation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterLocation(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -75092,29 +75216,25 @@ func (ec *executionContext) fieldContext_Encounter_location(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "period": - return ec.fieldContext_EncounterLocation_period(ctx, field) case "resourceType": - return ec.fieldContext_EncounterLocation_resourceType(ctx, field) - case "status": - return ec.fieldContext_EncounterLocation_status(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_EncounterLocation_extension(ctx, field) - case "form": - return ec.fieldContext_EncounterLocation_form(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_EncounterLocation_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_EncounterLocation_modifierExtension(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EncounterLocation", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_implicitRules(ctx, field) +func (ec *executionContext) _Encounter_location(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_location(ctx, field) if err != nil { return graphql.Null } @@ -75127,7 +75247,7 @@ func (ec *executionContext) _Encounter_implicitRules(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.Location, nil }) if err != nil { ec.Error(ctx, err) @@ -75136,19 +75256,35 @@ func (ec *executionContext) _Encounter_implicitRules(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.EncounterLocation) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOEncounterLocation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterLocation(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_EncounterLocation_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_EncounterLocation_modifierExtension(ctx, field) + case "period": + return ec.fieldContext_EncounterLocation_period(ctx, field) + case "resourceType": + return ec.fieldContext_EncounterLocation_resourceType(ctx, field) + case "status": + return ec.fieldContext_EncounterLocation_status(ctx, field) + case "extension": + return ec.fieldContext_EncounterLocation_extension(ctx, field) + case "form": + return ec.fieldContext_EncounterLocation_form(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EncounterLocation", field.Name) }, } return fc, nil @@ -75190,6 +75326,8 @@ func (ec *executionContext) fieldContext_Encounter_dietPreference(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -75198,8 +75336,6 @@ func (ec *executionContext) fieldContext_Encounter_dietPreference(_ context.Cont return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -75207,8 +75343,8 @@ func (ec *executionContext) fieldContext_Encounter_dietPreference(_ context.Cont return fc, nil } -func (ec *executionContext) _Encounter_reason(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_reason(ctx, field) +func (ec *executionContext) _Encounter_actualPeriod(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_actualPeriod(ctx, field) if err != nil { return graphql.Null } @@ -75221,7 +75357,7 @@ func (ec *executionContext) _Encounter_reason(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.ActualPeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -75230,12 +75366,12 @@ func (ec *executionContext) _Encounter_reason(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.EncounterReason) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOEncounterReason2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterReason(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Encounter_actualPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Encounter", Field: field, @@ -75243,27 +75379,25 @@ func (ec *executionContext) fieldContext_Encounter_reason(_ context.Context, fie IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "resourceType": - return ec.fieldContext_EncounterReason_resourceType(ctx, field) - case "use": - return ec.fieldContext_EncounterReason_use(ctx, field) - case "value": - return ec.fieldContext_EncounterReason_value(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_EncounterReason_extension(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_EncounterReason_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_EncounterReason_modifierExtension(ctx, field) + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EncounterReason", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _Encounter_subjectStatus(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_subjectStatus(ctx, field) +func (ec *executionContext) _Encounter_id(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_id(ctx, field) if err != nil { return graphql.Null } @@ -75276,7 +75410,48 @@ func (ec *executionContext) _Encounter_subjectStatus(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubjectStatus, nil + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Encounter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Encounter", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EncounterAdmission_admitSource(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterAdmission_admitSource(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdmitSource, nil }) if err != nil { ec.Error(ctx, err) @@ -75290,14 +75465,16 @@ func (ec *executionContext) _Encounter_subjectStatus(ctx context.Context, field return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_subjectStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterAdmission_admitSource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Encounter", + Object: "EncounterAdmission", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -75306,8 +75483,6 @@ func (ec *executionContext) fieldContext_Encounter_subjectStatus(_ context.Conte return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -75315,8 +75490,8 @@ func (ec *executionContext) fieldContext_Encounter_subjectStatus(_ context.Conte return fc, nil } -func (ec *executionContext) _Encounter_language(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Encounter_language(ctx, field) +func (ec *executionContext) _EncounterAdmission_dischargeDisposition(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterAdmission_dischargeDisposition(ctx, field) if err != nil { return graphql.Null } @@ -75329,7 +75504,7 @@ func (ec *executionContext) _Encounter_language(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.DischargeDisposition, nil }) if err != nil { ec.Error(ctx, err) @@ -75338,19 +75513,31 @@ func (ec *executionContext) _Encounter_language(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Encounter_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterAdmission_dischargeDisposition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Encounter", + Object: "EncounterAdmission", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -75392,120 +75579,120 @@ func (ec *executionContext) fieldContext_EncounterAdmission_extension(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -75590,120 +75777,120 @@ func (ec *executionContext) fieldContext_EncounterAdmission_modifierExtension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) case "valueUnsignedInt": return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -75747,24 +75934,24 @@ func (ec *executionContext) fieldContext_EncounterAdmission_preAdmissionIdentifi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) case "extension": return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) case "period": return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) case "value": return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) case "id": return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, @@ -75808,6 +75995,8 @@ func (ec *executionContext) fieldContext_EncounterAdmission_reAdmission(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -75816,8 +76005,6 @@ func (ec *executionContext) fieldContext_EncounterAdmission_reAdmission(_ contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -75866,8 +76053,8 @@ func (ec *executionContext) fieldContext_EncounterAdmission_resourceType(_ conte return fc, nil } -func (ec *executionContext) _EncounterAdmission_admitSource(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterAdmission_admitSource(ctx, field) +func (ec *executionContext) _EncounterDiagnosis_use(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterDiagnosis_use(ctx, field) if err != nil { return graphql.Null } @@ -75880,7 +76067,7 @@ func (ec *executionContext) _EncounterAdmission_admitSource(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AdmitSource, nil + return obj.Use, nil }) if err != nil { ec.Error(ctx, err) @@ -75889,19 +76076,21 @@ func (ec *executionContext) _EncounterAdmission_admitSource(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterAdmission_admitSource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterDiagnosis_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EncounterAdmission", + Object: "EncounterDiagnosis", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -75910,8 +76099,6 @@ func (ec *executionContext) fieldContext_EncounterAdmission_admitSource(_ contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -75919,8 +76106,8 @@ func (ec *executionContext) fieldContext_EncounterAdmission_admitSource(_ contex return fc, nil } -func (ec *executionContext) _EncounterAdmission_dischargeDisposition(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterAdmission_dischargeDisposition(ctx, field) +func (ec *executionContext) _EncounterDiagnosis_condition(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterDiagnosis_condition(ctx, field) if err != nil { return graphql.Null } @@ -75933,7 +76120,7 @@ func (ec *executionContext) _EncounterAdmission_dischargeDisposition(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DischargeDisposition, nil + return obj.Condition, nil }) if err != nil { ec.Error(ctx, err) @@ -75942,38 +76129,36 @@ func (ec *executionContext) _EncounterAdmission_dischargeDisposition(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterAdmission_dischargeDisposition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterDiagnosis_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EncounterAdmission", + Object: "EncounterDiagnosis", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _EncounterDiagnosis_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterDiagnosis_resourceType(ctx, field) +func (ec *executionContext) _EncounterDiagnosis_extension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterDiagnosis_extension(ctx, field) if err != nil { return graphql.Null } @@ -75986,7 +76171,7 @@ func (ec *executionContext) _EncounterDiagnosis_resourceType(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -75995,26 +76180,142 @@ func (ec *executionContext) _EncounterDiagnosis_resourceType(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterDiagnosis_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterDiagnosis_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterDiagnosis", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _EncounterDiagnosis_use(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterDiagnosis_use(ctx, field) +func (ec *executionContext) _EncounterDiagnosis_id(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterDiagnosis_id(ctx, field) if err != nil { return graphql.Null } @@ -76027,7 +76328,7 @@ func (ec *executionContext) _EncounterDiagnosis_use(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Use, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -76036,38 +76337,26 @@ func (ec *executionContext) _EncounterDiagnosis_use(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterDiagnosis_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterDiagnosis_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterDiagnosis", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EncounterDiagnosis_condition(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterDiagnosis_condition(ctx, field) +func (ec *executionContext) _EncounterDiagnosis_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterDiagnosis_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -76080,7 +76369,7 @@ func (ec *executionContext) _EncounterDiagnosis_condition(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Condition, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -76089,12 +76378,12 @@ func (ec *executionContext) _EncounterDiagnosis_condition(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterDiagnosis_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterDiagnosis_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterDiagnosis", Field: field, @@ -76102,23 +76391,129 @@ func (ec *executionContext) fieldContext_EncounterDiagnosis_condition(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _EncounterDiagnosis_extension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterDiagnosis_extension(ctx, field) +func (ec *executionContext) _EncounterDiagnosis_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterDiagnosis_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -76131,7 +76526,7 @@ func (ec *executionContext) _EncounterDiagnosis_extension(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -76140,142 +76535,26 @@ func (ec *executionContext) _EncounterDiagnosis_extension(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterDiagnosis_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterDiagnosis_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterDiagnosis", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EncounterDiagnosis_id(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterDiagnosis_id(ctx, field) +func (ec *executionContext) _EncounterLocation_id(ctx context.Context, field graphql.CollectedField, obj *model.EncounterLocation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterLocation_id(ctx, field) if err != nil { return graphql.Null } @@ -76302,9 +76581,9 @@ func (ec *executionContext) _EncounterDiagnosis_id(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterDiagnosis_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterLocation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EncounterDiagnosis", + Object: "EncounterLocation", Field: field, IsMethod: false, IsResolver: false, @@ -76315,8 +76594,8 @@ func (ec *executionContext) fieldContext_EncounterDiagnosis_id(_ context.Context return fc, nil } -func (ec *executionContext) _EncounterDiagnosis_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterDiagnosis) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterDiagnosis_modifierExtension(ctx, field) +func (ec *executionContext) _EncounterLocation_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterLocation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterLocation_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -76343,128 +76622,128 @@ func (ec *executionContext) _EncounterDiagnosis_modifierExtension(ctx context.Co return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterDiagnosis_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterLocation_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EncounterDiagnosis", + Object: "EncounterLocation", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -76508,16 +76787,16 @@ func (ec *executionContext) fieldContext_EncounterLocation_period(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -76643,120 +76922,120 @@ func (ec *executionContext) fieldContext_EncounterLocation_extension(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -76800,6 +77079,8 @@ func (ec *executionContext) fieldContext_EncounterLocation_form(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -76808,8 +77089,6 @@ func (ec *executionContext) fieldContext_EncounterLocation_form(_ context.Contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -76817,8 +77096,8 @@ func (ec *executionContext) fieldContext_EncounterLocation_form(_ context.Contex return fc, nil } -func (ec *executionContext) _EncounterLocation_id(ctx context.Context, field graphql.CollectedField, obj *model.EncounterLocation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterLocation_id(ctx, field) +func (ec *executionContext) _EncounterParticipant_id(ctx context.Context, field graphql.CollectedField, obj *model.EncounterParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterParticipant_id(ctx, field) if err != nil { return graphql.Null } @@ -76845,9 +77124,9 @@ func (ec *executionContext) _EncounterLocation_id(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterLocation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterParticipant_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EncounterLocation", + Object: "EncounterParticipant", Field: field, IsMethod: false, IsResolver: false, @@ -76858,8 +77137,8 @@ func (ec *executionContext) fieldContext_EncounterLocation_id(_ context.Context, return fc, nil } -func (ec *executionContext) _EncounterLocation_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterLocation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterLocation_modifierExtension(ctx, field) +func (ec *executionContext) _EncounterParticipant_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterParticipant_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -76886,326 +77165,128 @@ func (ec *executionContext) _EncounterLocation_modifierExtension(ctx context.Con return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterLocation_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterParticipant_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EncounterLocation", + Object: "EncounterParticipant", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) case "valueId": return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) case "valueUsageContext": return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EncounterParticipant_id(ctx context.Context, field graphql.CollectedField, obj *model.EncounterParticipant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterParticipant_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EncounterParticipant_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EncounterParticipant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EncounterParticipant_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterParticipant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterParticipant_modifierExtension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EncounterParticipant_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EncounterParticipant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) case "valueInteger": return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) case "valueUuid": return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -77249,16 +77330,16 @@ func (ec *executionContext) fieldContext_EncounterParticipant_period(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -77343,6 +77424,8 @@ func (ec *executionContext) fieldContext_EncounterParticipant_type(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -77351,8 +77434,6 @@ func (ec *executionContext) fieldContext_EncounterParticipant_type(_ context.Con return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -77396,120 +77477,120 @@ func (ec *executionContext) fieldContext_EncounterParticipant_extension(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -77517,8 +77598,8 @@ func (ec *executionContext) fieldContext_EncounterParticipant_extension(_ contex return fc, nil } -func (ec *executionContext) _EncounterReason_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterReason_resourceType(ctx, field) +func (ec *executionContext) _EncounterReason_value(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterReason_value(ctx, field) if err != nil { return graphql.Null } @@ -77531,7 +77612,7 @@ func (ec *executionContext) _EncounterReason_resourceType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -77540,26 +77621,36 @@ func (ec *executionContext) _EncounterReason_resourceType(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterReason_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterReason_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterReason", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _EncounterReason_use(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterReason_use(ctx, field) +func (ec *executionContext) _EncounterReason_extension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterReason_extension(ctx, field) if err != nil { return graphql.Null } @@ -77572,7 +77663,7 @@ func (ec *executionContext) _EncounterReason_use(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Use, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -77581,12 +77672,12 @@ func (ec *executionContext) _EncounterReason_use(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterReason_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterReason_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterReason", Field: field, @@ -77594,25 +77685,129 @@ func (ec *executionContext) fieldContext_EncounterReason_use(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _EncounterReason_value(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterReason_value(ctx, field) +func (ec *executionContext) _EncounterReason_id(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterReason_id(ctx, field) if err != nil { return graphql.Null } @@ -77625,7 +77820,7 @@ func (ec *executionContext) _EncounterReason_value(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Value, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -77634,36 +77829,26 @@ func (ec *executionContext) _EncounterReason_value(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterReason_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterReason_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterReason", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EncounterReason_extension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterReason_extension(ctx, field) +func (ec *executionContext) _EncounterReason_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterReason_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -77676,7 +77861,7 @@ func (ec *executionContext) _EncounterReason_extension(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -77690,7 +77875,7 @@ func (ec *executionContext) _EncounterReason_extension(ctx context.Context, fiel return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterReason_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterReason_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterReason", Field: field, @@ -77698,120 +77883,120 @@ func (ec *executionContext) fieldContext_EncounterReason_extension(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -77819,8 +78004,8 @@ func (ec *executionContext) fieldContext_EncounterReason_extension(_ context.Con return fc, nil } -func (ec *executionContext) _EncounterReason_id(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterReason_id(ctx, field) +func (ec *executionContext) _EncounterReason_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterReason_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -77833,7 +78018,7 @@ func (ec *executionContext) _EncounterReason_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -77847,7 +78032,7 @@ func (ec *executionContext) _EncounterReason_id(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterReason_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterReason_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterReason", Field: field, @@ -77860,8 +78045,8 @@ func (ec *executionContext) fieldContext_EncounterReason_id(_ context.Context, f return fc, nil } -func (ec *executionContext) _EncounterReason_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EncounterReason_modifierExtension(ctx, field) +func (ec *executionContext) _EncounterReason_use(ctx context.Context, field graphql.CollectedField, obj *model.EncounterReason) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterReason_use(ctx, field) if err != nil { return graphql.Null } @@ -77874,7 +78059,7 @@ func (ec *executionContext) _EncounterReason_modifierExtension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Use, nil }) if err != nil { ec.Error(ctx, err) @@ -77883,12 +78068,12 @@ func (ec *executionContext) _EncounterReason_modifierExtension(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EncounterReason_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EncounterReason_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "EncounterReason", Field: field, @@ -77896,122 +78081,18 @@ func (ec *executionContext) fieldContext_EncounterReason_modifierExtension(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -78094,120 +78175,120 @@ func (ec *executionContext) fieldContext_Expression_extension(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -78461,8 +78542,8 @@ func (ec *executionContext) fieldContext_Expression_description(_ context.Contex return fc, nil } -func (ec *executionContext) _ExtendedContactDetail_name(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExtendedContactDetail_name(ctx, field) +func (ec *executionContext) _ExtendedContactDetail_period(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExtendedContactDetail_period(ctx, field) if err != nil { return graphql.Null } @@ -78475,7 +78556,7 @@ func (ec *executionContext) _ExtendedContactDetail_name(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -78484,12 +78565,12 @@ func (ec *executionContext) _ExtendedContactDetail_name(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.HumanName) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOHumanName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ExtendedContactDetail_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ExtendedContactDetail_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ExtendedContactDetail", Field: field, @@ -78497,35 +78578,25 @@ func (ec *executionContext) fieldContext_ExtendedContactDetail_name(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "suffix": - return ec.fieldContext_HumanName_suffix(ctx, field) - case "use": - return ec.fieldContext_HumanName_use(ctx, field) - case "family": - return ec.fieldContext_HumanName_family(ctx, field) - case "given": - return ec.fieldContext_HumanName_given(ctx, field) - case "id": - return ec.fieldContext_HumanName_id(ctx, field) - case "prefix": - return ec.fieldContext_HumanName_prefix(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_HumanName_extension(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) case "resourceType": - return ec.fieldContext_HumanName_resourceType(ctx, field) - case "period": - return ec.fieldContext_HumanName_period(ctx, field) - case "text": - return ec.fieldContext_HumanName_text(ctx, field) + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _ExtendedContactDetail_organization(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExtendedContactDetail_organization(ctx, field) +func (ec *executionContext) _ExtendedContactDetail_telecom(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) if err != nil { return graphql.Null } @@ -78538,7 +78609,7 @@ func (ec *executionContext) _ExtendedContactDetail_organization(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization, nil + return obj.Telecom, nil }) if err != nil { ec.Error(ctx, err) @@ -78547,12 +78618,12 @@ func (ec *executionContext) _ExtendedContactDetail_organization(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.([]*model.ContactPoint) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ExtendedContactDetail_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ExtendedContactDetail_telecom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ExtendedContactDetail", Field: field, @@ -78560,62 +78631,31 @@ func (ec *executionContext) fieldContext_ExtendedContactDetail_organization(ctx IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) + return ec.fieldContext_ContactPoint_resourceType(ctx, field) + case "system": + return ec.fieldContext_ContactPoint_system(ctx, field) + case "use": + return ec.fieldContext_ContactPoint_use(ctx, field) + case "value": + return ec.fieldContext_ContactPoint_value(ctx, field) + case "extension": + return ec.fieldContext_ContactPoint_extension(ctx, field) case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) + return ec.fieldContext_ContactPoint_id(ctx, field) + case "period": + return ec.fieldContext_ContactPoint_period(ctx, field) + case "rank": + return ec.fieldContext_ContactPoint_rank(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ExtendedContactDetail_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ExtendedContactDetail_purpose(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) +func (ec *executionContext) _ExtendedContactDetail_address(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExtendedContactDetail_address(ctx, field) if err != nil { return graphql.Null } @@ -78628,7 +78668,7 @@ func (ec *executionContext) _ExtendedContactDetail_purpose(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Purpose, nil + return obj.Address, nil }) if err != nil { ec.Error(ctx, err) @@ -78637,12 +78677,12 @@ func (ec *executionContext) _ExtendedContactDetail_purpose(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Address) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ExtendedContactDetail_purpose(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ExtendedContactDetail_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ExtendedContactDetail", Field: field, @@ -78650,25 +78690,41 @@ func (ec *executionContext) fieldContext_ExtendedContactDetail_purpose(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "country": + return ec.fieldContext_Address_country(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Address_extension(ctx, field) + case "use": + return ec.fieldContext_Address_use(ctx, field) + case "district": + return ec.fieldContext_Address_district(ctx, field) + case "period": + return ec.fieldContext_Address_period(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Address_resourceType(ctx, field) + case "text": + return ec.fieldContext_Address_text(ctx, field) + case "city": + return ec.fieldContext_Address_city(ctx, field) + case "postalCode": + return ec.fieldContext_Address_postalCode(ctx, field) + case "line": + return ec.fieldContext_Address_line(ctx, field) + case "state": + return ec.fieldContext_Address_state(ctx, field) + case "type": + return ec.fieldContext_Address_type(ctx, field) + case "id": + return ec.fieldContext_Address_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) }, } return fc, nil } -func (ec *executionContext) _ExtendedContactDetail_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) +func (ec *executionContext) _ExtendedContactDetail_organization(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExtendedContactDetail_organization(ctx, field) if err != nil { return graphql.Null } @@ -78681,35 +78737,87 @@ func (ec *executionContext) _ExtendedContactDetail_resourceType(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Organization, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ExtendedContactDetail_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ExtendedContactDetail_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ExtendedContactDetail", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ExtendedContactDetail_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ExtendedContactDetail_telecom(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) +func (ec *executionContext) _ExtendedContactDetail_purpose(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) if err != nil { return graphql.Null } @@ -78722,7 +78830,7 @@ func (ec *executionContext) _ExtendedContactDetail_telecom(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Telecom, nil + return obj.Purpose, nil }) if err != nil { ec.Error(ctx, err) @@ -78731,12 +78839,12 @@ func (ec *executionContext) _ExtendedContactDetail_telecom(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ContactPoint) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ExtendedContactDetail_telecom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ExtendedContactDetail_purpose(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ExtendedContactDetail", Field: field, @@ -78744,31 +78852,25 @@ func (ec *executionContext) fieldContext_ExtendedContactDetail_telecom(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_ContactPoint_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_ContactPoint_id(ctx, field) - case "period": - return ec.fieldContext_ContactPoint_period(ctx, field) - case "rank": - return ec.fieldContext_ContactPoint_rank(ctx, field) - case "resourceType": - return ec.fieldContext_ContactPoint_resourceType(ctx, field) - case "system": - return ec.fieldContext_ContactPoint_system(ctx, field) - case "use": - return ec.fieldContext_ContactPoint_use(ctx, field) - case "value": - return ec.fieldContext_ContactPoint_value(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ExtendedContactDetail_address(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExtendedContactDetail_address(ctx, field) +func (ec *executionContext) _ExtendedContactDetail_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -78781,7 +78883,7 @@ func (ec *executionContext) _ExtendedContactDetail_address(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Address, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -78790,54 +78892,26 @@ func (ec *executionContext) _ExtendedContactDetail_address(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Address) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ExtendedContactDetail_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ExtendedContactDetail_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ExtendedContactDetail", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_Address_text(ctx, field) - case "use": - return ec.fieldContext_Address_use(ctx, field) - case "id": - return ec.fieldContext_Address_id(ctx, field) - case "line": - return ec.fieldContext_Address_line(ctx, field) - case "country": - return ec.fieldContext_Address_country(ctx, field) - case "postalCode": - return ec.fieldContext_Address_postalCode(ctx, field) - case "state": - return ec.fieldContext_Address_state(ctx, field) - case "city": - return ec.fieldContext_Address_city(ctx, field) - case "district": - return ec.fieldContext_Address_district(ctx, field) - case "period": - return ec.fieldContext_Address_period(ctx, field) - case "resourceType": - return ec.fieldContext_Address_resourceType(ctx, field) - case "type": - return ec.fieldContext_Address_type(ctx, field) - case "extension": - return ec.fieldContext_Address_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ExtendedContactDetail_id(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExtendedContactDetail_id(ctx, field) +func (ec *executionContext) _ExtendedContactDetail_name(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExtendedContactDetail_name(ctx, field) if err != nil { return graphql.Null } @@ -78850,7 +78924,7 @@ func (ec *executionContext) _ExtendedContactDetail_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -78859,19 +78933,41 @@ func (ec *executionContext) _ExtendedContactDetail_id(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.HumanName) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOHumanName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ExtendedContactDetail_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ExtendedContactDetail_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ExtendedContactDetail", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "given": + return ec.fieldContext_HumanName_given(ctx, field) + case "resourceType": + return ec.fieldContext_HumanName_resourceType(ctx, field) + case "use": + return ec.fieldContext_HumanName_use(ctx, field) + case "family": + return ec.fieldContext_HumanName_family(ctx, field) + case "suffix": + return ec.fieldContext_HumanName_suffix(ctx, field) + case "id": + return ec.fieldContext_HumanName_id(ctx, field) + case "period": + return ec.fieldContext_HumanName_period(ctx, field) + case "prefix": + return ec.fieldContext_HumanName_prefix(ctx, field) + case "extension": + return ec.fieldContext_HumanName_extension(ctx, field) + case "text": + return ec.fieldContext_HumanName_text(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) }, } return fc, nil @@ -78913,120 +79009,120 @@ func (ec *executionContext) fieldContext_ExtendedContactDetail_extension(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -79034,8 +79130,8 @@ func (ec *executionContext) fieldContext_ExtendedContactDetail_extension(_ conte return fc, nil } -func (ec *executionContext) _ExtendedContactDetail_period(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExtendedContactDetail_period(ctx, field) +func (ec *executionContext) _ExtendedContactDetail_id(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExtendedContactDetail_id(ctx, field) if err != nil { return graphql.Null } @@ -79048,7 +79144,7 @@ func (ec *executionContext) _ExtendedContactDetail_period(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -79057,38 +79153,26 @@ func (ec *executionContext) _ExtendedContactDetail_period(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ExtendedContactDetail_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ExtendedContactDetail_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ExtendedContactDetail", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_valueUri(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueUri(ctx, field) +func (ec *executionContext) _Extension_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valuePeriod(ctx, field) if err != nil { return graphql.Null } @@ -79101,7 +79185,7 @@ func (ec *executionContext) _Extension_valueUri(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueURI, nil + return obj.ValuePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -79110,26 +79194,38 @@ func (ec *executionContext) _Extension_valueUri(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueInteger(ctx, field) +func (ec *executionContext) _Extension_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueQuantity(ctx, field) if err != nil { return graphql.Null } @@ -79142,7 +79238,7 @@ func (ec *executionContext) _Extension_valueInteger(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInteger, nil + return obj.ValueQuantity, nil }) if err != nil { ec.Error(ctx, err) @@ -79151,26 +79247,44 @@ func (ec *executionContext) _Extension_valueInteger(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueAttachment(ctx, field) +func (ec *executionContext) _Extension_valueExpression(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueExpression(ctx, field) if err != nil { return graphql.Null } @@ -79183,7 +79297,7 @@ func (ec *executionContext) _Extension_valueAttachment(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAttachment, nil + return obj.ValueExpression, nil }) if err != nil { ec.Error(ctx, err) @@ -79192,12 +79306,12 @@ func (ec *executionContext) _Extension_valueAttachment(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Attachment) + res := resTmp.(*model.Expression) fc.Result = res - return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueExpression(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -79205,47 +79319,31 @@ func (ec *executionContext) fieldContext_Extension_valueAttachment(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) + case "expression": + return ec.fieldContext_Expression_expression(ctx, field) case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) - case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) + return ec.fieldContext_Expression_extension(ctx, field) case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) + return ec.fieldContext_Expression_id(ctx, field) case "language": - return ec.fieldContext_Attachment_language(ctx, field) + return ec.fieldContext_Expression_language(ctx, field) + case "name": + return ec.fieldContext_Expression_name(ctx, field) + case "reference": + return ec.fieldContext_Expression_reference(ctx, field) + case "resourceType": + return ec.fieldContext_Expression_resourceType(ctx, field) + case "description": + return ec.fieldContext_Expression_description(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Expression", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueParameterDefinition(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueParameterDefinition(ctx, field) +func (ec *executionContext) _Extension_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueSampledData(ctx, field) if err != nil { return graphql.Null } @@ -79258,7 +79356,7 @@ func (ec *executionContext) _Extension_valueParameterDefinition(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueParameterDefinition, nil + return obj.ValueSampledData, nil }) if err != nil { ec.Error(ctx, err) @@ -79267,12 +79365,12 @@ func (ec *executionContext) _Extension_valueParameterDefinition(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ParameterDefinition) + res := resTmp.(*model.SampledData) fc.Result = res - return ec.marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx, field.Selections, res) + return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueParameterDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -79280,35 +79378,41 @@ func (ec *executionContext) fieldContext_Extension_valueParameterDefinition(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_ParameterDefinition_profile(ctx, field) - case "min": - return ec.fieldContext_ParameterDefinition_min(ctx, field) - case "name": - return ec.fieldContext_ParameterDefinition_name(ctx, field) - case "type": - return ec.fieldContext_ParameterDefinition_type(ctx, field) - case "documentation": - return ec.fieldContext_ParameterDefinition_documentation(ctx, field) - case "extension": - return ec.fieldContext_ParameterDefinition_extension(ctx, field) - case "id": - return ec.fieldContext_ParameterDefinition_id(ctx, field) - case "max": - return ec.fieldContext_ParameterDefinition_max(ctx, field) + case "intervalUnit": + return ec.fieldContext_SampledData_intervalUnit(ctx, field) case "resourceType": - return ec.fieldContext_ParameterDefinition_resourceType(ctx, field) - case "use": - return ec.fieldContext_ParameterDefinition_use(ctx, field) + return ec.fieldContext_SampledData_resourceType(ctx, field) + case "lowerLimit": + return ec.fieldContext_SampledData_lowerLimit(ctx, field) + case "factor": + return ec.fieldContext_SampledData_factor(ctx, field) + case "id": + return ec.fieldContext_SampledData_id(ctx, field) + case "extension": + return ec.fieldContext_SampledData_extension(ctx, field) + case "upperLimit": + return ec.fieldContext_SampledData_upperLimit(ctx, field) + case "dimensions": + return ec.fieldContext_SampledData_dimensions(ctx, field) + case "interval": + return ec.fieldContext_SampledData_interval(ctx, field) + case "offsets": + return ec.fieldContext_SampledData_offsets(ctx, field) + case "origin": + return ec.fieldContext_SampledData_origin(ctx, field) + case "codeMap": + return ec.fieldContext_SampledData_codeMap(ctx, field) + case "data": + return ec.fieldContext_SampledData_data(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ParameterDefinition", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueInteger64(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueInteger64(ctx, field) +func (ec *executionContext) _Extension_valueContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueContactDetail(ctx, field) if err != nil { return graphql.Null } @@ -79321,7 +79425,7 @@ func (ec *executionContext) _Extension_valueInteger64(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInteger64, nil + return obj.ValueContactDetail, nil }) if err != nil { ec.Error(ctx, err) @@ -79330,26 +79434,38 @@ func (ec *executionContext) _Extension_valueInteger64(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ContactDetail) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactDetail(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueInteger64(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_ContactDetail_extension(ctx, field) + case "id": + return ec.fieldContext_ContactDetail_id(ctx, field) + case "name": + return ec.fieldContext_ContactDetail_name(ctx, field) + case "resourceType": + return ec.fieldContext_ContactDetail_resourceType(ctx, field) + case "telecom": + return ec.fieldContext_ContactDetail_telecom(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactDetail", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueHumanName(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueHumanName(ctx, field) +func (ec *executionContext) _Extension_valueCodeableReference(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueCodeableReference(ctx, field) if err != nil { return graphql.Null } @@ -79362,7 +79478,7 @@ func (ec *executionContext) _Extension_valueHumanName(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueHumanName, nil + return obj.ValueCodeableReference, nil }) if err != nil { ec.Error(ctx, err) @@ -79371,12 +79487,12 @@ func (ec *executionContext) _Extension_valueHumanName(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.HumanName) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueHumanName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueCodeableReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -79384,35 +79500,23 @@ func (ec *executionContext) fieldContext_Extension_valueHumanName(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "suffix": - return ec.fieldContext_HumanName_suffix(ctx, field) - case "use": - return ec.fieldContext_HumanName_use(ctx, field) - case "family": - return ec.fieldContext_HumanName_family(ctx, field) - case "given": - return ec.fieldContext_HumanName_given(ctx, field) - case "id": - return ec.fieldContext_HumanName_id(ctx, field) - case "prefix": - return ec.fieldContext_HumanName_prefix(ctx, field) - case "extension": - return ec.fieldContext_HumanName_extension(ctx, field) case "resourceType": - return ec.fieldContext_HumanName_resourceType(ctx, field) - case "period": - return ec.fieldContext_HumanName_period(ctx, field) - case "text": - return ec.fieldContext_HumanName_text(ctx, field) + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueAge(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueAge(ctx, field) +func (ec *executionContext) _Extension_valueRelatedArtifact(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) if err != nil { return graphql.Null } @@ -79425,7 +79529,7 @@ func (ec *executionContext) _Extension_valueAge(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAge, nil + return obj.ValueRelatedArtifact, nil }) if err != nil { ec.Error(ctx, err) @@ -79434,12 +79538,12 @@ func (ec *executionContext) _Extension_valueAge(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.(*model.RelatedArtifact) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueRelatedArtifact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -79447,31 +79551,41 @@ func (ec *executionContext) fieldContext_Extension_valueAge(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) + case "type": + return ec.fieldContext_RelatedArtifact_type(ctx, field) + case "resource": + return ec.fieldContext_RelatedArtifact_resource(ctx, field) + case "resourceReference": + return ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) case "extension": - return ec.fieldContext_Age_extension(ctx, field) + return ec.fieldContext_RelatedArtifact_extension(ctx, field) case "id": - return ec.fieldContext_Age_id(ctx, field) + return ec.fieldContext_RelatedArtifact_id(ctx, field) + case "label": + return ec.fieldContext_RelatedArtifact_label(ctx, field) + case "document": + return ec.fieldContext_RelatedArtifact_document(ctx, field) + case "publicationStatus": + return ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) - case "value": - return ec.fieldContext_Age_value(ctx, field) + return ec.fieldContext_RelatedArtifact_resourceType(ctx, field) + case "classifier": + return ec.fieldContext_RelatedArtifact_classifier(ctx, field) + case "publicationDate": + return ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) + case "citation": + return ec.fieldContext_RelatedArtifact_citation(ctx, field) + case "display": + return ec.fieldContext_RelatedArtifact_display(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RelatedArtifact", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueCodeableConcept(ctx, field) +func (ec *executionContext) _Extension_valueParameterDefinition(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueParameterDefinition(ctx, field) if err != nil { return graphql.Null } @@ -79484,7 +79598,7 @@ func (ec *executionContext) _Extension_valueCodeableConcept(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCodeableConcept, nil + return obj.ValueParameterDefinition, nil }) if err != nil { ec.Error(ctx, err) @@ -79493,12 +79607,12 @@ func (ec *executionContext) _Extension_valueCodeableConcept(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.ParameterDefinition) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueParameterDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -79506,94 +79620,35 @@ func (ec *executionContext) fieldContext_Extension_valueCodeableConcept(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "max": + return ec.fieldContext_ParameterDefinition_max(ctx, field) + case "name": + return ec.fieldContext_ParameterDefinition_name(ctx, field) + case "documentation": + return ec.fieldContext_ParameterDefinition_documentation(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_ParameterDefinition_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Extension_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueSampledData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ValueSampledData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.SampledData) - fc.Result = res - return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Extension_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Extension", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_SampledData_resourceType(ctx, field) - case "origin": - return ec.fieldContext_SampledData_origin(ctx, field) - case "codeMap": - return ec.fieldContext_SampledData_codeMap(ctx, field) - case "intervalUnit": - return ec.fieldContext_SampledData_intervalUnit(ctx, field) - case "lowerLimit": - return ec.fieldContext_SampledData_lowerLimit(ctx, field) - case "upperLimit": - return ec.fieldContext_SampledData_upperLimit(ctx, field) + return ec.fieldContext_ParameterDefinition_resourceType(ctx, field) case "extension": - return ec.fieldContext_SampledData_extension(ctx, field) - case "id": - return ec.fieldContext_SampledData_id(ctx, field) - case "dimensions": - return ec.fieldContext_SampledData_dimensions(ctx, field) - case "factor": - return ec.fieldContext_SampledData_factor(ctx, field) - case "interval": - return ec.fieldContext_SampledData_interval(ctx, field) - case "offsets": - return ec.fieldContext_SampledData_offsets(ctx, field) - case "data": - return ec.fieldContext_SampledData_data(ctx, field) + return ec.fieldContext_ParameterDefinition_extension(ctx, field) + case "profile": + return ec.fieldContext_ParameterDefinition_profile(ctx, field) + case "use": + return ec.fieldContext_ParameterDefinition_use(ctx, field) + case "min": + return ec.fieldContext_ParameterDefinition_min(ctx, field) + case "type": + return ec.fieldContext_ParameterDefinition_type(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ParameterDefinition", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueDateTime(ctx, field) +func (ec *executionContext) _Extension_valueInstant(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueInstant(ctx, field) if err != nil { return graphql.Null } @@ -79606,7 +79661,7 @@ func (ec *executionContext) _Extension_valueDateTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDateTime, nil + return obj.ValueInstant, nil }) if err != nil { ec.Error(ctx, err) @@ -79620,7 +79675,7 @@ func (ec *executionContext) _Extension_valueDateTime(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueInstant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -79669,24 +79724,24 @@ func (ec *executionContext) fieldContext_Extension_valueExtendedContactDetail(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_ExtendedContactDetail_name(ctx, field) + case "period": + return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + case "telecom": + return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) + case "address": + return ec.fieldContext_ExtendedContactDetail_address(ctx, field) case "organization": return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) case "purpose": return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) case "resourceType": return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) - case "telecom": - return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) - case "address": - return ec.fieldContext_ExtendedContactDetail_address(ctx, field) - case "id": - return ec.fieldContext_ExtendedContactDetail_id(ctx, field) + case "name": + return ec.fieldContext_ExtendedContactDetail_name(ctx, field) case "extension": return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) - case "period": - return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + case "id": + return ec.fieldContext_ExtendedContactDetail_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) }, @@ -79694,8 +79749,8 @@ func (ec *executionContext) fieldContext_Extension_valueExtendedContactDetail(_ return fc, nil } -func (ec *executionContext) _Extension_valueMarkdown(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueMarkdown(ctx, field) +func (ec *executionContext) _Extension_valueId(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueId(ctx, field) if err != nil { return graphql.Null } @@ -79708,7 +79763,7 @@ func (ec *executionContext) _Extension_valueMarkdown(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueMarkdown, nil + return obj.ValueID, nil }) if err != nil { ec.Error(ctx, err) @@ -79722,7 +79777,7 @@ func (ec *executionContext) _Extension_valueMarkdown(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueMarkdown(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -79735,8 +79790,8 @@ func (ec *executionContext) fieldContext_Extension_valueMarkdown(_ context.Conte return fc, nil } -func (ec *executionContext) _Extension_valueTriggerDefinition(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) +func (ec *executionContext) _Extension_valueCount(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueCount(ctx, field) if err != nil { return graphql.Null } @@ -79749,7 +79804,7 @@ func (ec *executionContext) _Extension_valueTriggerDefinition(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTriggerDefinition, nil + return obj.ValueCount, nil }) if err != nil { ec.Error(ctx, err) @@ -79758,12 +79813,12 @@ func (ec *executionContext) _Extension_valueTriggerDefinition(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.TriggerDefinition) + res := resTmp.(*model.Count) fc.Result = res - return ec.marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx, field.Selections, res) + return ec.marshalOCount2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCount(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueTriggerDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -79771,80 +79826,31 @@ func (ec *executionContext) fieldContext_Extension_valueTriggerDefinition(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "condition": - return ec.fieldContext_TriggerDefinition_condition(ctx, field) - case "name": - return ec.fieldContext_TriggerDefinition_name(ctx, field) - case "data": - return ec.fieldContext_TriggerDefinition_data(ctx, field) - case "extension": - return ec.fieldContext_TriggerDefinition_extension(ctx, field) case "id": - return ec.fieldContext_TriggerDefinition_id(ctx, field) - case "timingTiming": - return ec.fieldContext_TriggerDefinition_timingTiming(ctx, field) - case "code": - return ec.fieldContext_TriggerDefinition_code(ctx, field) - case "timingDateTime": - return ec.fieldContext_TriggerDefinition_timingDateTime(ctx, field) - case "type": - return ec.fieldContext_TriggerDefinition_type(ctx, field) + return ec.fieldContext_Count_id(ctx, field) case "resourceType": - return ec.fieldContext_TriggerDefinition_resourceType(ctx, field) - case "timingDate": - return ec.fieldContext_TriggerDefinition_timingDate(ctx, field) - case "subscriptionTopic": - return ec.fieldContext_TriggerDefinition_subscriptionTopic(ctx, field) + return ec.fieldContext_Count_resourceType(ctx, field) + case "system": + return ec.fieldContext_Count_system(ctx, field) + case "unit": + return ec.fieldContext_Count_unit(ctx, field) + case "value": + return ec.fieldContext_Count_value(ctx, field) + case "code": + return ec.fieldContext_Count_code(ctx, field) + case "comparator": + return ec.fieldContext_Count_comparator(ctx, field) + case "extension": + return ec.fieldContext_Count_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TriggerDefinition", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Extension_valueString(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueString(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ValueString, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Extension_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Extension", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Count", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueContactPoint(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueContactPoint(ctx, field) +func (ec *executionContext) _Extension_valueCoding(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueCoding(ctx, field) if err != nil { return graphql.Null } @@ -79857,7 +79863,7 @@ func (ec *executionContext) _Extension_valueContactPoint(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueContactPoint, nil + return obj.ValueCoding, nil }) if err != nil { ec.Error(ctx, err) @@ -79866,12 +79872,12 @@ func (ec *executionContext) _Extension_valueContactPoint(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ContactPoint) + res := resTmp.(*model.Coding) fc.Result = res - return ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) + return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueContactPoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueCoding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -79879,31 +79885,31 @@ func (ec *executionContext) fieldContext_Extension_valueContactPoint(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "userSelected": + return ec.fieldContext_Coding_userSelected(ctx, field) + case "version": + return ec.fieldContext_Coding_version(ctx, field) + case "code": + return ec.fieldContext_Coding_code(ctx, field) + case "display": + return ec.fieldContext_Coding_display(ctx, field) case "extension": - return ec.fieldContext_ContactPoint_extension(ctx, field) + return ec.fieldContext_Coding_extension(ctx, field) case "id": - return ec.fieldContext_ContactPoint_id(ctx, field) - case "period": - return ec.fieldContext_ContactPoint_period(ctx, field) - case "rank": - return ec.fieldContext_ContactPoint_rank(ctx, field) + return ec.fieldContext_Coding_id(ctx, field) case "resourceType": - return ec.fieldContext_ContactPoint_resourceType(ctx, field) + return ec.fieldContext_Coding_resourceType(ctx, field) case "system": - return ec.fieldContext_ContactPoint_system(ctx, field) - case "use": - return ec.fieldContext_ContactPoint_use(ctx, field) - case "value": - return ec.fieldContext_ContactPoint_value(ctx, field) + return ec.fieldContext_Coding_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueAnnotation(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueAnnotation(ctx, field) +func (ec *executionContext) _Extension_valueUsageContext(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueUsageContext(ctx, field) if err != nil { return graphql.Null } @@ -79916,28 +79922,31 @@ func (ec *executionContext) _Extension_valueAnnotation(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAnnotation, nil + return obj.ValueUsageContext, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ExtensionValueAnnotationUnion) + res := resTmp.(model.ExtensionValueUsageContextUnion) fc.Result = res - return ec.marshalOExtensionValueAnnotationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueAnnotationUnion(ctx, field.Selections, res) + return ec.marshalNExtensionValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueUsageContextUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueAnnotation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueUsageContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ExtensionValueAnnotationUnion does not have child fields") + return nil, errors.New("field of type ExtensionValueUsageContextUnion does not have child fields") }, } defer func() { @@ -79947,15 +79956,15 @@ func (ec *executionContext) fieldContext_Extension_valueAnnotation(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Extension_valueAnnotation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Extension_valueUsageContext_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Extension_valueContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueContactDetail(ctx, field) +func (ec *executionContext) _Extension_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueInteger(ctx, field) if err != nil { return graphql.Null } @@ -79968,7 +79977,7 @@ func (ec *executionContext) _Extension_valueContactDetail(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueContactDetail, nil + return obj.ValueInteger, nil }) if err != nil { ec.Error(ctx, err) @@ -79977,38 +79986,26 @@ func (ec *executionContext) _Extension_valueContactDetail(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ContactDetail) + res := resTmp.(*string) fc.Result = res - return ec.marshalOContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactDetail(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "telecom": - return ec.fieldContext_ContactDetail_telecom(ctx, field) - case "extension": - return ec.fieldContext_ContactDetail_extension(ctx, field) - case "id": - return ec.fieldContext_ContactDetail_id(ctx, field) - case "name": - return ec.fieldContext_ContactDetail_name(ctx, field) - case "resourceType": - return ec.fieldContext_ContactDetail_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactDetail", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueQuantity(ctx, field) +func (ec *executionContext) _Extension_valueUuid(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueUuid(ctx, field) if err != nil { return graphql.Null } @@ -80021,7 +80018,7 @@ func (ec *executionContext) _Extension_valueQuantity(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueQuantity, nil + return obj.ValueUUID, nil }) if err != nil { ec.Error(ctx, err) @@ -80030,44 +80027,26 @@ func (ec *executionContext) _Extension_valueQuantity(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*string) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueUuid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_valueUuid(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueUuid(ctx, field) +func (ec *executionContext) _Extension_valueMeta(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueMeta(ctx, field) if err != nil { return graphql.Null } @@ -80080,7 +80059,7 @@ func (ec *executionContext) _Extension_valueUuid(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueUUID, nil + return obj.ValueMeta, nil }) if err != nil { ec.Error(ctx, err) @@ -80089,26 +80068,46 @@ func (ec *executionContext) _Extension_valueUuid(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueUuid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueMeta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueRange(ctx, field) +func (ec *executionContext) _Extension_valueOid(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueOid(ctx, field) if err != nil { return graphql.Null } @@ -80121,7 +80120,7 @@ func (ec *executionContext) _Extension_valueRange(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRange, nil + return obj.ValueOid, nil }) if err != nil { ec.Error(ctx, err) @@ -80130,38 +80129,26 @@ func (ec *executionContext) _Extension_valueRange(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(*string) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueOid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_valueCanonical(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueCanonical(ctx, field) +func (ec *executionContext) _Extension_valueTriggerDefinition(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) if err != nil { return graphql.Null } @@ -80174,7 +80161,7 @@ func (ec *executionContext) _Extension_valueCanonical(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCanonical, nil + return obj.ValueTriggerDefinition, nil }) if err != nil { ec.Error(ctx, err) @@ -80183,26 +80170,52 @@ func (ec *executionContext) _Extension_valueCanonical(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.TriggerDefinition) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueTriggerDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "data": + return ec.fieldContext_TriggerDefinition_data(ctx, field) + case "id": + return ec.fieldContext_TriggerDefinition_id(ctx, field) + case "name": + return ec.fieldContext_TriggerDefinition_name(ctx, field) + case "code": + return ec.fieldContext_TriggerDefinition_code(ctx, field) + case "condition": + return ec.fieldContext_TriggerDefinition_condition(ctx, field) + case "timingTiming": + return ec.fieldContext_TriggerDefinition_timingTiming(ctx, field) + case "subscriptionTopic": + return ec.fieldContext_TriggerDefinition_subscriptionTopic(ctx, field) + case "timingDate": + return ec.fieldContext_TriggerDefinition_timingDate(ctx, field) + case "timingDateTime": + return ec.fieldContext_TriggerDefinition_timingDateTime(ctx, field) + case "extension": + return ec.fieldContext_TriggerDefinition_extension(ctx, field) + case "resourceType": + return ec.fieldContext_TriggerDefinition_resourceType(ctx, field) + case "type": + return ec.fieldContext_TriggerDefinition_type(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TriggerDefinition", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueCodeableReference(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueCodeableReference(ctx, field) +func (ec *executionContext) _Extension_id(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_id(ctx, field) if err != nil { return graphql.Null } @@ -80215,7 +80228,7 @@ func (ec *executionContext) _Extension_valueCodeableReference(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCodeableReference, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -80224,36 +80237,26 @@ func (ec *executionContext) _Extension_valueCodeableReference(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueCodeableReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_id(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_id(ctx, field) +func (ec *executionContext) _Extension_valueMarkdown(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueMarkdown(ctx, field) if err != nil { return graphql.Null } @@ -80266,7 +80269,7 @@ func (ec *executionContext) _Extension_id(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ValueMarkdown, nil }) if err != nil { ec.Error(ctx, err) @@ -80280,7 +80283,7 @@ func (ec *executionContext) _Extension_id(ctx context.Context, field graphql.Col return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueMarkdown(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -80293,8 +80296,8 @@ func (ec *executionContext) fieldContext_Extension_id(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Extension_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueRatio(ctx, field) +func (ec *executionContext) _Extension_valueIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueIdentifier(ctx, field) if err != nil { return graphql.Null } @@ -80307,7 +80310,7 @@ func (ec *executionContext) _Extension_valueRatio(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRatio, nil + return obj.ValueIdentifier, nil }) if err != nil { ec.Error(ctx, err) @@ -80316,12 +80319,12 @@ func (ec *executionContext) _Extension_valueRatio(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Ratio) + res := resTmp.(*model.Identifier) fc.Result = res - return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -80330,24 +80333,32 @@ func (ec *executionContext) fieldContext_Extension_valueRatio(_ context.Context, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "extension": - return ec.fieldContext_Ratio_extension(ctx, field) - case "id": - return ec.fieldContext_Ratio_id(ctx, field) - case "numerator": - return ec.fieldContext_Ratio_numerator(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueOid(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueOid(ctx, field) +func (ec *executionContext) _Extension_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueRange(ctx, field) if err != nil { return graphql.Null } @@ -80360,7 +80371,7 @@ func (ec *executionContext) _Extension_valueOid(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueOid, nil + return obj.ValueRange, nil }) if err != nil { ec.Error(ctx, err) @@ -80369,26 +80380,38 @@ func (ec *executionContext) _Extension_valueOid(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueOid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) + case "resourceType": + return ec.fieldContext_Range_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueRatioRange(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueRatioRange(ctx, field) +func (ec *executionContext) _Extension_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueAttachment(ctx, field) if err != nil { return graphql.Null } @@ -80401,7 +80424,7 @@ func (ec *executionContext) _Extension_valueRatioRange(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRatioRange, nil + return obj.ValueAttachment, nil }) if err != nil { ec.Error(ctx, err) @@ -80410,12 +80433,12 @@ func (ec *executionContext) _Extension_valueRatioRange(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.RatioRange) + res := resTmp.(*model.Attachment) fc.Result = res - return ec.marshalORatioRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatioRange(ctx, field.Selections, res) + return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueRatioRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -80423,27 +80446,47 @@ func (ec *executionContext) fieldContext_Extension_valueRatioRange(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) case "resourceType": - return ec.fieldContext_RatioRange_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_RatioRange_denominator(ctx, field) + return ec.fieldContext_Attachment_resourceType(ctx, field) case "extension": - return ec.fieldContext_RatioRange_extension(ctx, field) - case "highNumerator": - return ec.fieldContext_RatioRange_highNumerator(ctx, field) + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) case "id": - return ec.fieldContext_RatioRange_id(ctx, field) - case "lowNumerator": - return ec.fieldContext_RatioRange_lowNumerator(ctx, field) + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type RatioRange", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueInstant(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueInstant(ctx, field) +func (ec *executionContext) _Extension_valueDate(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueDate(ctx, field) if err != nil { return graphql.Null } @@ -80456,7 +80499,7 @@ func (ec *executionContext) _Extension_valueInstant(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInstant, nil + return obj.ValueDate, nil }) if err != nil { ec.Error(ctx, err) @@ -80470,7 +80513,7 @@ func (ec *executionContext) _Extension_valueInstant(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueInstant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -80483,8 +80526,8 @@ func (ec *executionContext) fieldContext_Extension_valueInstant(_ context.Contex return fc, nil } -func (ec *executionContext) _Extension_valueDuration(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueDuration(ctx, field) +func (ec *executionContext) _Extension_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueRatio(ctx, field) if err != nil { return graphql.Null } @@ -80497,7 +80540,7 @@ func (ec *executionContext) _Extension_valueDuration(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDuration, nil + return obj.ValueRatio, nil }) if err != nil { ec.Error(ctx, err) @@ -80506,12 +80549,12 @@ func (ec *executionContext) _Extension_valueDuration(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Duration) + res := resTmp.(*model.Ratio) fc.Result = res - return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -80519,31 +80562,25 @@ func (ec *executionContext) fieldContext_Extension_valueDuration(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) case "extension": - return ec.fieldContext_Duration_extension(ctx, field) + return ec.fieldContext_Ratio_extension(ctx, field) case "id": - return ec.fieldContext_Duration_id(ctx, field) + return ec.fieldContext_Ratio_id(ctx, field) + case "numerator": + return ec.fieldContext_Ratio_numerator(ctx, field) case "resourceType": - return ec.fieldContext_Duration_resourceType(ctx, field) - case "system": - return ec.fieldContext_Duration_system(ctx, field) - case "unit": - return ec.fieldContext_Duration_unit(ctx, field) - case "value": - return ec.fieldContext_Duration_value(ctx, field) + return ec.fieldContext_Ratio_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueRelatedArtifact(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) +func (ec *executionContext) _Extension_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueBoolean(ctx, field) if err != nil { return graphql.Null } @@ -80556,7 +80593,7 @@ func (ec *executionContext) _Extension_valueRelatedArtifact(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRelatedArtifact, nil + return obj.ValueBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -80565,54 +80602,26 @@ func (ec *executionContext) _Extension_valueRelatedArtifact(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.RelatedArtifact) + res := resTmp.(*string) fc.Result = res - return ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueRelatedArtifact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "display": - return ec.fieldContext_RelatedArtifact_display(ctx, field) - case "publicationDate": - return ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) - case "publicationStatus": - return ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) - case "classifier": - return ec.fieldContext_RelatedArtifact_classifier(ctx, field) - case "document": - return ec.fieldContext_RelatedArtifact_document(ctx, field) - case "resourceReference": - return ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) - case "extension": - return ec.fieldContext_RelatedArtifact_extension(ctx, field) - case "id": - return ec.fieldContext_RelatedArtifact_id(ctx, field) - case "label": - return ec.fieldContext_RelatedArtifact_label(ctx, field) - case "citation": - return ec.fieldContext_RelatedArtifact_citation(ctx, field) - case "resource": - return ec.fieldContext_RelatedArtifact_resource(ctx, field) - case "type": - return ec.fieldContext_RelatedArtifact_type(ctx, field) - case "resourceType": - return ec.fieldContext_RelatedArtifact_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RelatedArtifact", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_valueSignature(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueSignature(ctx, field) +func (ec *executionContext) _Extension_valueString(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueString(ctx, field) if err != nil { return graphql.Null } @@ -80625,7 +80634,7 @@ func (ec *executionContext) _Extension_valueSignature(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueSignature, nil + return obj.ValueString, nil }) if err != nil { ec.Error(ctx, err) @@ -80634,37 +80643,26 @@ func (ec *executionContext) _Extension_valueSignature(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ExtensionValueSignatureUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtensionValueSignatureUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueSignatureUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueSignature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ExtensionValueSignatureUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Extension_valueSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Extension_valueDate(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueDate(ctx, field) +func (ec *executionContext) _Extension_valueDuration(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueDuration(ctx, field) if err != nil { return graphql.Null } @@ -80677,7 +80675,7 @@ func (ec *executionContext) _Extension_valueDate(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDate, nil + return obj.ValueDuration, nil }) if err != nil { ec.Error(ctx, err) @@ -80686,26 +80684,44 @@ func (ec *executionContext) _Extension_valueDate(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Duration) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Duration_id(ctx, field) + case "resourceType": + return ec.fieldContext_Duration_resourceType(ctx, field) + case "system": + return ec.fieldContext_Duration_system(ctx, field) + case "unit": + return ec.fieldContext_Duration_unit(ctx, field) + case "value": + return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) + case "extension": + return ec.fieldContext_Duration_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueDosage(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueDosage(ctx, field) +func (ec *executionContext) _Extension_valueDataRequirement(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueDataRequirement(ctx, field) if err != nil { return graphql.Null } @@ -80718,7 +80734,7 @@ func (ec *executionContext) _Extension_valueDosage(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDosage, nil + return obj.ValueDataRequirement, nil }) if err != nil { ec.Error(ctx, err) @@ -80727,12 +80743,12 @@ func (ec *executionContext) _Extension_valueDosage(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Dosage) + res := resTmp.(*model.DataRequirement) fc.Result = res - return ec.marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) + return ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueDosage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueDataRequirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -80740,51 +80756,41 @@ func (ec *executionContext) fieldContext_Extension_valueDosage(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "asNeededFor": - return ec.fieldContext_Dosage_asNeededFor(ctx, field) - case "doseAndRate": - return ec.fieldContext_Dosage_doseAndRate(ctx, field) - case "route": - return ec.fieldContext_Dosage_route(ctx, field) - case "method": - return ec.fieldContext_Dosage_method(ctx, field) - case "modifierExtension": - return ec.fieldContext_Dosage_modifierExtension(ctx, field) - case "patientInstruction": - return ec.fieldContext_Dosage_patientInstruction(ctx, field) - case "text": - return ec.fieldContext_Dosage_text(ctx, field) + case "type": + return ec.fieldContext_DataRequirement_type(ctx, field) + case "valueFilter": + return ec.fieldContext_DataRequirement_valueFilter(ctx, field) + case "id": + return ec.fieldContext_DataRequirement_id(ctx, field) + case "profile": + return ec.fieldContext_DataRequirement_profile(ctx, field) + case "subjectReference": + return ec.fieldContext_DataRequirement_subjectReference(ctx, field) + case "codeFilter": + return ec.fieldContext_DataRequirement_codeFilter(ctx, field) + case "limit": + return ec.fieldContext_DataRequirement_limit(ctx, field) + case "subjectCodeableConcept": + return ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) + case "mustSupport": + return ec.fieldContext_DataRequirement_mustSupport(ctx, field) case "extension": - return ec.fieldContext_Dosage_extension(ctx, field) - case "site": - return ec.fieldContext_Dosage_site(ctx, field) - case "maxDosePerAdministration": - return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) - case "maxDosePerLifetime": - return ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) + return ec.fieldContext_DataRequirement_extension(ctx, field) case "resourceType": - return ec.fieldContext_Dosage_resourceType(ctx, field) - case "additionalInstruction": - return ec.fieldContext_Dosage_additionalInstruction(ctx, field) - case "asNeeded": - return ec.fieldContext_Dosage_asNeeded(ctx, field) - case "timing": - return ec.fieldContext_Dosage_timing(ctx, field) - case "id": - return ec.fieldContext_Dosage_id(ctx, field) - case "sequence": - return ec.fieldContext_Dosage_sequence(ctx, field) - case "maxDosePerPeriod": - return ec.fieldContext_Dosage_maxDosePerPeriod(ctx, field) + return ec.fieldContext_DataRequirement_resourceType(ctx, field) + case "sort": + return ec.fieldContext_DataRequirement_sort(ctx, field) + case "dateFilter": + return ec.fieldContext_DataRequirement_dateFilter(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Dosage", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DataRequirement", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueBase64Binary(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueBase64Binary(ctx, field) +func (ec *executionContext) _Extension_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -80797,7 +80803,7 @@ func (ec *executionContext) _Extension_valueBase64Binary(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueBase64Binary, nil + return obj.ValueCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -80806,26 +80812,38 @@ func (ec *executionContext) _Extension_valueBase64Binary(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueBase64Binary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valuePeriod(ctx, field) +func (ec *executionContext) _Extension_valueContactPoint(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueContactPoint(ctx, field) if err != nil { return graphql.Null } @@ -80838,7 +80856,7 @@ func (ec *executionContext) _Extension_valuePeriod(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValuePeriod, nil + return obj.ValueContactPoint, nil }) if err != nil { ec.Error(ctx, err) @@ -80847,12 +80865,12 @@ func (ec *executionContext) _Extension_valuePeriod(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*model.ContactPoint) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueContactPoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -80860,25 +80878,31 @@ func (ec *executionContext) fieldContext_Extension_valuePeriod(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_ContactPoint_resourceType(ctx, field) + case "system": + return ec.fieldContext_ContactPoint_system(ctx, field) + case "use": + return ec.fieldContext_ContactPoint_use(ctx, field) + case "value": + return ec.fieldContext_ContactPoint_value(ctx, field) case "extension": - return ec.fieldContext_Period_extension(ctx, field) + return ec.fieldContext_ContactPoint_extension(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_ContactPoint_id(ctx, field) + case "period": + return ec.fieldContext_ContactPoint_period(ctx, field) + case "rank": + return ec.fieldContext_ContactPoint_rank(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueMoney(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueMoney(ctx, field) +func (ec *executionContext) _Extension_valueAvailability(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueAvailability(ctx, field) if err != nil { return graphql.Null } @@ -80891,7 +80915,7 @@ func (ec *executionContext) _Extension_valueMoney(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueMoney, nil + return obj.ValueAvailability, nil }) if err != nil { ec.Error(ctx, err) @@ -80900,12 +80924,12 @@ func (ec *executionContext) _Extension_valueMoney(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Money) + res := resTmp.(*model.Availability) fc.Result = res - return ec.marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx, field.Selections, res) + return ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueMoney(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueAvailability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -80913,25 +80937,25 @@ func (ec *executionContext) fieldContext_Extension_valueMoney(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "currency": - return ec.fieldContext_Money_currency(ctx, field) + case "notAvailableTime": + return ec.fieldContext_Availability_notAvailableTime(ctx, field) + case "resourceType": + return ec.fieldContext_Availability_resourceType(ctx, field) + case "availableTime": + return ec.fieldContext_Availability_availableTime(ctx, field) case "extension": - return ec.fieldContext_Money_extension(ctx, field) + return ec.fieldContext_Availability_extension(ctx, field) case "id": - return ec.fieldContext_Money_id(ctx, field) - case "resourceType": - return ec.fieldContext_Money_resourceType(ctx, field) - case "value": - return ec.fieldContext_Money_value(ctx, field) + return ec.fieldContext_Availability_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Money", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Availability", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueIdentifier(ctx, field) +func (ec *executionContext) _Extension_valueDosage(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueDosage(ctx, field) if err != nil { return graphql.Null } @@ -80944,7 +80968,7 @@ func (ec *executionContext) _Extension_valueIdentifier(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueIdentifier, nil + return obj.ValueDosage, nil }) if err != nil { ec.Error(ctx, err) @@ -80953,12 +80977,12 @@ func (ec *executionContext) _Extension_valueIdentifier(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Identifier) + res := resTmp.(*model.Dosage) fc.Result = res - return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueDosage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -80966,33 +80990,51 @@ func (ec *executionContext) fieldContext_Extension_valueIdentifier(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + case "doseAndRate": + return ec.fieldContext_Dosage_doseAndRate(ctx, field) + case "additionalInstruction": + return ec.fieldContext_Dosage_additionalInstruction(ctx, field) + case "route": + return ec.fieldContext_Dosage_route(ctx, field) + case "timing": + return ec.fieldContext_Dosage_timing(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Dosage_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Dosage_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Dosage_resourceType(ctx, field) + case "text": + return ec.fieldContext_Dosage_text(ctx, field) + case "sequence": + return ec.fieldContext_Dosage_sequence(ctx, field) + case "asNeeded": + return ec.fieldContext_Dosage_asNeeded(ctx, field) + case "site": + return ec.fieldContext_Dosage_site(ctx, field) + case "extension": + return ec.fieldContext_Dosage_extension(ctx, field) + case "patientInstruction": + return ec.fieldContext_Dosage_patientInstruction(ctx, field) + case "asNeededFor": + return ec.fieldContext_Dosage_asNeededFor(ctx, field) + case "maxDosePerLifetime": + return ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) + case "method": + return ec.fieldContext_Dosage_method(ctx, field) + case "maxDosePerPeriod": + return ec.fieldContext_Dosage_maxDosePerPeriod(ctx, field) + case "maxDosePerAdministration": + return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Dosage", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_url(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_url(ctx, field) +func (ec *executionContext) _Extension_valueUnsignedInt(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueUnsignedInt(ctx, field) if err != nil { return graphql.Null } @@ -81005,7 +81047,7 @@ func (ec *executionContext) _Extension_url(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.URL, nil + return obj.ValueUnsignedInt, nil }) if err != nil { ec.Error(ctx, err) @@ -81019,7 +81061,7 @@ func (ec *executionContext) _Extension_url(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueUnsignedInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81032,8 +81074,8 @@ func (ec *executionContext) fieldContext_Extension_url(_ context.Context, field return fc, nil } -func (ec *executionContext) _Extension_valueCode(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueCode(ctx, field) +func (ec *executionContext) _Extension_valueAge(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueAge(ctx, field) if err != nil { return graphql.Null } @@ -81046,7 +81088,7 @@ func (ec *executionContext) _Extension_valueCode(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCode, nil + return obj.ValueAge, nil }) if err != nil { ec.Error(ctx, err) @@ -81055,26 +81097,44 @@ func (ec *executionContext) _Extension_valueCode(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Age) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) + case "extension": + return ec.fieldContext_Age_extension(ctx, field) + case "id": + return ec.fieldContext_Age_id(ctx, field) + case "resourceType": + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valuePositiveInt(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valuePositiveInt(ctx, field) +func (ec *executionContext) _Extension_valueHumanName(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueHumanName(ctx, field) if err != nil { return graphql.Null } @@ -81087,7 +81147,7 @@ func (ec *executionContext) _Extension_valuePositiveInt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValuePositiveInt, nil + return obj.ValueHumanName, nil }) if err != nil { ec.Error(ctx, err) @@ -81096,26 +81156,48 @@ func (ec *executionContext) _Extension_valuePositiveInt(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.HumanName) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valuePositiveInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueHumanName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "given": + return ec.fieldContext_HumanName_given(ctx, field) + case "resourceType": + return ec.fieldContext_HumanName_resourceType(ctx, field) + case "use": + return ec.fieldContext_HumanName_use(ctx, field) + case "family": + return ec.fieldContext_HumanName_family(ctx, field) + case "suffix": + return ec.fieldContext_HumanName_suffix(ctx, field) + case "id": + return ec.fieldContext_HumanName_id(ctx, field) + case "period": + return ec.fieldContext_HumanName_period(ctx, field) + case "prefix": + return ec.fieldContext_HumanName_prefix(ctx, field) + case "extension": + return ec.fieldContext_HumanName_extension(ctx, field) + case "text": + return ec.fieldContext_HumanName_text(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueId(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueId(ctx, field) +func (ec *executionContext) _Extension_valueInteger64(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueInteger64(ctx, field) if err != nil { return graphql.Null } @@ -81128,7 +81210,7 @@ func (ec *executionContext) _Extension_valueId(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueID, nil + return obj.ValueInteger64, nil }) if err != nil { ec.Error(ctx, err) @@ -81142,7 +81224,7 @@ func (ec *executionContext) _Extension_valueId(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueInteger64(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81155,8 +81237,8 @@ func (ec *executionContext) fieldContext_Extension_valueId(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Extension_valueUnsignedInt(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueUnsignedInt(ctx, field) +func (ec *executionContext) _Extension_valueUrl(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueUrl(ctx, field) if err != nil { return graphql.Null } @@ -81169,7 +81251,7 @@ func (ec *executionContext) _Extension_valueUnsignedInt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueUnsignedInt, nil + return obj.ValueURL, nil }) if err != nil { ec.Error(ctx, err) @@ -81183,7 +81265,7 @@ func (ec *executionContext) _Extension_valueUnsignedInt(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueUnsignedInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81196,8 +81278,8 @@ func (ec *executionContext) fieldContext_Extension_valueUnsignedInt(_ context.Co return fc, nil } -func (ec *executionContext) _Extension_valueDataRequirement(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueDataRequirement(ctx, field) +func (ec *executionContext) _Extension_extension(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_extension(ctx, field) if err != nil { return graphql.Null } @@ -81210,7 +81292,7 @@ func (ec *executionContext) _Extension_valueDataRequirement(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDataRequirement, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -81219,12 +81301,12 @@ func (ec *executionContext) _Extension_valueDataRequirement(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.DataRequirement) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueDataRequirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81232,41 +81314,129 @@ func (ec *executionContext) fieldContext_Extension_valueDataRequirement(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_DataRequirement_type(ctx, field) - case "valueFilter": - return ec.fieldContext_DataRequirement_valueFilter(ctx, field) - case "dateFilter": - return ec.fieldContext_DataRequirement_dateFilter(ctx, field) - case "limit": - return ec.fieldContext_DataRequirement_limit(ctx, field) - case "subjectCodeableConcept": - return ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) - case "extension": - return ec.fieldContext_DataRequirement_extension(ctx, field) - case "mustSupport": - return ec.fieldContext_DataRequirement_mustSupport(ctx, field) - case "sort": - return ec.fieldContext_DataRequirement_sort(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_DataRequirement_id(ctx, field) - case "profile": - return ec.fieldContext_DataRequirement_profile(ctx, field) - case "subjectReference": - return ec.fieldContext_DataRequirement_subjectReference(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_DataRequirement_resourceType(ctx, field) - case "codeFilter": - return ec.fieldContext_DataRequirement_codeFilter(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DataRequirement", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueTime(ctx, field) +func (ec *executionContext) _Extension_valueBase64Binary(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueBase64Binary(ctx, field) if err != nil { return graphql.Null } @@ -81279,7 +81449,7 @@ func (ec *executionContext) _Extension_valueTime(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTime, nil + return obj.ValueBase64Binary, nil }) if err != nil { ec.Error(ctx, err) @@ -81293,7 +81463,7 @@ func (ec *executionContext) _Extension_valueTime(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueBase64Binary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81306,8 +81476,8 @@ func (ec *executionContext) fieldContext_Extension_valueTime(_ context.Context, return fc, nil } -func (ec *executionContext) _Extension_valueCoding(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueCoding(ctx, field) +func (ec *executionContext) _Extension_valueCode(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueCode(ctx, field) if err != nil { return graphql.Null } @@ -81320,7 +81490,7 @@ func (ec *executionContext) _Extension_valueCoding(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCoding, nil + return obj.ValueCode, nil }) if err != nil { ec.Error(ctx, err) @@ -81329,44 +81499,26 @@ func (ec *executionContext) _Extension_valueCoding(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Coding) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueCoding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) - case "userSelected": - return ec.fieldContext_Coding_userSelected(ctx, field) - case "version": - return ec.fieldContext_Coding_version(ctx, field) - case "code": - return ec.fieldContext_Coding_code(ctx, field) - case "display": - return ec.fieldContext_Coding_display(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_valueTiming(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueTiming(ctx, field) +func (ec *executionContext) _Extension_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -81379,7 +81531,7 @@ func (ec *executionContext) _Extension_valueTiming(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTiming, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -81388,42 +81540,26 @@ func (ec *executionContext) _Extension_valueTiming(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Timing) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "repeat": - return ec.fieldContext_Timing_repeat(ctx, field) - case "resourceType": - return ec.fieldContext_Timing_resourceType(ctx, field) - case "code": - return ec.fieldContext_Timing_code(ctx, field) - case "event": - return ec.fieldContext_Timing_event(ctx, field) - case "extension": - return ec.fieldContext_Timing_extension(ctx, field) - case "id": - return ec.fieldContext_Timing_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_Timing_modifierExtension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_valueExpression(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueExpression(ctx, field) +func (ec *executionContext) _Extension_valueDecimal(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueDecimal(ctx, field) if err != nil { return graphql.Null } @@ -81436,7 +81572,7 @@ func (ec *executionContext) _Extension_valueExpression(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueExpression, nil + return obj.ValueDecimal, nil }) if err != nil { ec.Error(ctx, err) @@ -81445,44 +81581,26 @@ func (ec *executionContext) _Extension_valueExpression(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Expression) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueExpression(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueDecimal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "expression": - return ec.fieldContext_Expression_expression(ctx, field) - case "extension": - return ec.fieldContext_Expression_extension(ctx, field) - case "id": - return ec.fieldContext_Expression_id(ctx, field) - case "language": - return ec.fieldContext_Expression_language(ctx, field) - case "name": - return ec.fieldContext_Expression_name(ctx, field) - case "reference": - return ec.fieldContext_Expression_reference(ctx, field) - case "resourceType": - return ec.fieldContext_Expression_resourceType(ctx, field) - case "description": - return ec.fieldContext_Expression_description(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Expression", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_valueDistance(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueDistance(ctx, field) +func (ec *executionContext) _Extension_valuePositiveInt(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valuePositiveInt(ctx, field) if err != nil { return graphql.Null } @@ -81495,7 +81613,7 @@ func (ec *executionContext) _Extension_valueDistance(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDistance, nil + return obj.ValuePositiveInt, nil }) if err != nil { ec.Error(ctx, err) @@ -81504,44 +81622,26 @@ func (ec *executionContext) _Extension_valueDistance(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Distance) + res := resTmp.(*string) fc.Result = res - return ec.marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueDistance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valuePositiveInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_Distance_resourceType(ctx, field) - case "system": - return ec.fieldContext_Distance_system(ctx, field) - case "unit": - return ec.fieldContext_Distance_unit(ctx, field) - case "value": - return ec.fieldContext_Distance_value(ctx, field) - case "code": - return ec.fieldContext_Distance_code(ctx, field) - case "comparator": - return ec.fieldContext_Distance_comparator(ctx, field) - case "extension": - return ec.fieldContext_Distance_extension(ctx, field) - case "id": - return ec.fieldContext_Distance_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Distance", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Extension_valueCount(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueCount(ctx, field) +func (ec *executionContext) _Extension_valueAddress(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueAddress(ctx, field) if err != nil { return graphql.Null } @@ -81554,7 +81654,7 @@ func (ec *executionContext) _Extension_valueCount(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCount, nil + return obj.ValueAddress, nil }) if err != nil { ec.Error(ctx, err) @@ -81563,12 +81663,12 @@ func (ec *executionContext) _Extension_valueCount(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Count) + res := resTmp.(*model.Address) fc.Result = res - return ec.marshalOCount2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCount(ctx, field.Selections, res) + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81576,31 +81676,41 @@ func (ec *executionContext) fieldContext_Extension_valueCount(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "country": + return ec.fieldContext_Address_country(ctx, field) case "extension": - return ec.fieldContext_Count_extension(ctx, field) - case "id": - return ec.fieldContext_Count_id(ctx, field) + return ec.fieldContext_Address_extension(ctx, field) + case "use": + return ec.fieldContext_Address_use(ctx, field) + case "district": + return ec.fieldContext_Address_district(ctx, field) + case "period": + return ec.fieldContext_Address_period(ctx, field) case "resourceType": - return ec.fieldContext_Count_resourceType(ctx, field) - case "system": - return ec.fieldContext_Count_system(ctx, field) - case "unit": - return ec.fieldContext_Count_unit(ctx, field) - case "value": - return ec.fieldContext_Count_value(ctx, field) - case "code": - return ec.fieldContext_Count_code(ctx, field) - case "comparator": - return ec.fieldContext_Count_comparator(ctx, field) + return ec.fieldContext_Address_resourceType(ctx, field) + case "text": + return ec.fieldContext_Address_text(ctx, field) + case "city": + return ec.fieldContext_Address_city(ctx, field) + case "postalCode": + return ec.fieldContext_Address_postalCode(ctx, field) + case "line": + return ec.fieldContext_Address_line(ctx, field) + case "state": + return ec.fieldContext_Address_state(ctx, field) + case "type": + return ec.fieldContext_Address_type(ctx, field) + case "id": + return ec.fieldContext_Address_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Count", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_resourceType(ctx, field) +func (ec *executionContext) _Extension_valueUri(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueUri(ctx, field) if err != nil { return graphql.Null } @@ -81613,7 +81723,7 @@ func (ec *executionContext) _Extension_resourceType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ValueURI, nil }) if err != nil { ec.Error(ctx, err) @@ -81627,7 +81737,7 @@ func (ec *executionContext) _Extension_resourceType(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81640,8 +81750,8 @@ func (ec *executionContext) fieldContext_Extension_resourceType(_ context.Contex return fc, nil } -func (ec *executionContext) _Extension_valueAvailability(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueAvailability(ctx, field) +func (ec *executionContext) _Extension_valueSignature(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueSignature(ctx, field) if err != nil { return graphql.Null } @@ -81654,47 +81764,49 @@ func (ec *executionContext) _Extension_valueAvailability(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAvailability, nil + return obj.ValueSignature, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.Availability) + res := resTmp.(model.ExtensionValueSignatureUnion) fc.Result = res - return ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) + return ec.marshalNExtensionValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueSignatureUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueAvailability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueSignature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "availableTime": - return ec.fieldContext_Availability_availableTime(ctx, field) - case "extension": - return ec.fieldContext_Availability_extension(ctx, field) - case "id": - return ec.fieldContext_Availability_id(ctx, field) - case "notAvailableTime": - return ec.fieldContext_Availability_notAvailableTime(ctx, field) - case "resourceType": - return ec.fieldContext_Availability_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Availability", field.Name) + return nil, errors.New("field of type ExtensionValueSignatureUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Extension_valueSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Extension_valueUrl(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueUrl(ctx, field) +func (ec *executionContext) _Extension_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueDateTime(ctx, field) if err != nil { return graphql.Null } @@ -81707,7 +81819,7 @@ func (ec *executionContext) _Extension_valueUrl(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueURL, nil + return obj.ValueDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -81721,7 +81833,7 @@ func (ec *executionContext) _Extension_valueUrl(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81734,8 +81846,8 @@ func (ec *executionContext) fieldContext_Extension_valueUrl(_ context.Context, f return fc, nil } -func (ec *executionContext) _Extension_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueBoolean(ctx, field) +func (ec *executionContext) _Extension_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueTime(ctx, field) if err != nil { return graphql.Null } @@ -81748,7 +81860,7 @@ func (ec *executionContext) _Extension_valueBoolean(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueBoolean, nil + return obj.ValueTime, nil }) if err != nil { ec.Error(ctx, err) @@ -81762,7 +81874,7 @@ func (ec *executionContext) _Extension_valueBoolean(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81775,8 +81887,8 @@ func (ec *executionContext) fieldContext_Extension_valueBoolean(_ context.Contex return fc, nil } -func (ec *executionContext) _Extension_valueDecimal(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueDecimal(ctx, field) +func (ec *executionContext) _Extension_valueMoney(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueMoney(ctx, field) if err != nil { return graphql.Null } @@ -81789,7 +81901,7 @@ func (ec *executionContext) _Extension_valueDecimal(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDecimal, nil + return obj.ValueMoney, nil }) if err != nil { ec.Error(ctx, err) @@ -81798,26 +81910,38 @@ func (ec *executionContext) _Extension_valueDecimal(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Money) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueDecimal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueMoney(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "currency": + return ec.fieldContext_Money_currency(ctx, field) + case "extension": + return ec.fieldContext_Money_extension(ctx, field) + case "id": + return ec.fieldContext_Money_id(ctx, field) + case "resourceType": + return ec.fieldContext_Money_resourceType(ctx, field) + case "value": + return ec.fieldContext_Money_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Money", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueMeta(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueMeta(ctx, field) +func (ec *executionContext) _Extension_valueDistance(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueDistance(ctx, field) if err != nil { return graphql.Null } @@ -81830,7 +81954,7 @@ func (ec *executionContext) _Extension_valueMeta(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueMeta, nil + return obj.ValueDistance, nil }) if err != nil { ec.Error(ctx, err) @@ -81839,12 +81963,12 @@ func (ec *executionContext) _Extension_valueMeta(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*model.Distance) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueMeta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueDistance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81852,33 +81976,31 @@ func (ec *executionContext) fieldContext_Extension_valueMeta(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + case "comparator": + return ec.fieldContext_Distance_comparator(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_Distance_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_Distance_id(ctx, field) + case "resourceType": + return ec.fieldContext_Distance_resourceType(ctx, field) + case "system": + return ec.fieldContext_Distance_system(ctx, field) + case "unit": + return ec.fieldContext_Distance_unit(ctx, field) + case "value": + return ec.fieldContext_Distance_value(ctx, field) + case "code": + return ec.fieldContext_Distance_code(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Distance", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueAddress(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueAddress(ctx, field) +func (ec *executionContext) _Extension_valueTiming(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueTiming(ctx, field) if err != nil { return graphql.Null } @@ -81891,7 +82013,7 @@ func (ec *executionContext) _Extension_valueAddress(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAddress, nil + return obj.ValueTiming, nil }) if err != nil { ec.Error(ctx, err) @@ -81900,12 +82022,12 @@ func (ec *executionContext) _Extension_valueAddress(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Address) + res := resTmp.(*model.Timing) fc.Result = res - return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) + return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, @@ -81913,41 +82035,84 @@ func (ec *executionContext) fieldContext_Extension_valueAddress(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_Address_text(ctx, field) - case "use": - return ec.fieldContext_Address_use(ctx, field) + case "code": + return ec.fieldContext_Timing_code(ctx, field) + case "event": + return ec.fieldContext_Timing_event(ctx, field) + case "extension": + return ec.fieldContext_Timing_extension(ctx, field) case "id": - return ec.fieldContext_Address_id(ctx, field) - case "line": - return ec.fieldContext_Address_line(ctx, field) - case "country": - return ec.fieldContext_Address_country(ctx, field) - case "postalCode": - return ec.fieldContext_Address_postalCode(ctx, field) - case "state": - return ec.fieldContext_Address_state(ctx, field) - case "city": - return ec.fieldContext_Address_city(ctx, field) - case "district": - return ec.fieldContext_Address_district(ctx, field) - case "period": - return ec.fieldContext_Address_period(ctx, field) + return ec.fieldContext_Timing_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Timing_modifierExtension(ctx, field) + case "repeat": + return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_Address_resourceType(ctx, field) - case "type": - return ec.fieldContext_Address_type(ctx, field) + return ec.fieldContext_Timing_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Extension_valueRatioRange(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueRatioRange(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ValueRatioRange, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.RatioRange) + fc.Result = res + return ec.marshalORatioRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatioRange(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueRatioRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Extension", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_RatioRange_resourceType(ctx, field) + case "denominator": + return ec.fieldContext_RatioRange_denominator(ctx, field) case "extension": - return ec.fieldContext_Address_extension(ctx, field) + return ec.fieldContext_RatioRange_extension(ctx, field) + case "highNumerator": + return ec.fieldContext_RatioRange_highNumerator(ctx, field) + case "id": + return ec.fieldContext_RatioRange_id(ctx, field) + case "lowNumerator": + return ec.fieldContext_RatioRange_lowNumerator(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RatioRange", field.Name) }, } return fc, nil } -func (ec *executionContext) _Extension_valueUsageContext(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_valueUsageContext(ctx, field) +func (ec *executionContext) _Extension_valueCanonical(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueCanonical(ctx, field) if err != nil { return graphql.Null } @@ -81960,7 +82125,7 @@ func (ec *executionContext) _Extension_valueUsageContext(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueUsageContext, nil + return obj.ValueCanonical, nil }) if err != nil { ec.Error(ctx, err) @@ -81969,19 +82134,104 @@ func (ec *executionContext) _Extension_valueUsageContext(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ExtensionValueUsageContextUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtensionValueUsageContextUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueUsageContextUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_valueUsageContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Extension_valueCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Extension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ExtensionValueUsageContextUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Extension_url(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_url(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.URL, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Extension", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Extension_valueAnnotation(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueAnnotation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ValueAnnotation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.ExtensionValueAnnotationUnion) + fc.Result = res + return ec.marshalNExtensionValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueAnnotationUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueAnnotation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Extension", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ExtensionValueAnnotationUnion does not have child fields") }, } defer func() { @@ -81991,15 +82241,15 @@ func (ec *executionContext) fieldContext_Extension_valueUsageContext(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Extension_valueUsageContext_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Extension_valueAnnotation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Extension_extension(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Extension_extension(ctx, field) +func (ec *executionContext) _FHIRPrimitiveExtension_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.FHIRPrimitiveExtension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FHIRPrimitiveExtension_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -82012,7 +82262,7 @@ func (ec *executionContext) _Extension_extension(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -82021,135 +82271,19 @@ func (ec *executionContext) _Extension_extension(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Extension_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FHIRPrimitiveExtension_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Extension", + Object: "FHIRPrimitiveExtension", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -82191,120 +82325,120 @@ func (ec *executionContext) fieldContext_FHIRPrimitiveExtension_extension(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -82353,8 +82487,8 @@ func (ec *executionContext) fieldContext_FHIRPrimitiveExtension_id(_ context.Con return fc, nil } -func (ec *executionContext) _FHIRPrimitiveExtension_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.FHIRPrimitiveExtension) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FHIRPrimitiveExtension_resourceType(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_onsetPeriod(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_onsetPeriod(ctx, field) if err != nil { return graphql.Null } @@ -82367,7 +82501,7 @@ func (ec *executionContext) _FHIRPrimitiveExtension_resourceType(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.OnsetPeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -82376,26 +82510,38 @@ func (ec *executionContext) _FHIRPrimitiveExtension_resourceType(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FHIRPrimitiveExtension_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_onsetPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FHIRPrimitiveExtension", + Object: "FamilyMemberHistoryCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryCondition_onsetPeriod(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_onsetPeriod(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_id(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_id(ctx, field) if err != nil { return graphql.Null } @@ -82408,7 +82554,7 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_onsetPeriod(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OnsetPeriod, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -82417,38 +82563,26 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_onsetPeriod(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_onsetPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryCondition_extension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_extension(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_outcome(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_outcome(ctx, field) if err != nil { return graphql.Null } @@ -82461,7 +82595,7 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_extension(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Outcome, nil }) if err != nil { ec.Error(ctx, err) @@ -82470,12 +82604,12 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_extension(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_outcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryCondition", Field: field, @@ -82483,181 +82617,25 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_extension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _FamilyMemberHistoryCondition_note(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_note(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Note, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.FamilyMemberHistoryConditionNoteUnion) - fc.Result = res - return ec.marshalOFamilyMemberHistoryConditionNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryConditionNoteUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FamilyMemberHistoryCondition", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FamilyMemberHistoryConditionNoteUnion does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_FamilyMemberHistoryCondition_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryCondition_onsetAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_onsetAge(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -82670,7 +82648,7 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_onsetAge(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OnsetAge, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -82679,37 +82657,19 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_onsetAge(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_onsetAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) - case "extension": - return ec.fieldContext_Age_extension(ctx, field) - case "id": - return ec.fieldContext_Age_id(ctx, field) - case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) - case "value": - return ec.fieldContext_Age_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -82751,16 +82711,16 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_onsetRange IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": return ec.fieldContext_Range_resourceType(ctx, field) case "extension": return ec.fieldContext_Range_extension(ctx, field) case "high": return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, @@ -82768,49 +82728,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_onsetRange return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryCondition_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FamilyMemberHistoryCondition", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _FamilyMemberHistoryCondition_contributedToDeath(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_contributedToDeath(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_code(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_code(ctx, field) if err != nil { return graphql.Null } @@ -82823,7 +82742,7 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_contributedToDeath(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ContributedToDeath, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -82832,26 +82751,38 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_contributedToDeath(ctx if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_contributedToDeath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryCondition_id(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_id(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -82864,7 +82795,7 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_id(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -82873,26 +82804,142 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_id(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryCondition_code(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_code(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_extension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_extension(ctx, field) if err != nil { return graphql.Null } @@ -82905,7 +82952,7 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_code(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -82914,12 +82961,12 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_code(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryCondition", Field: field, @@ -82927,18 +82974,122 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_code(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil @@ -82985,8 +83136,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_onsetStrin return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryCondition_outcome(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_outcome(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_contributedToDeath(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_contributedToDeath(ctx, field) if err != nil { return graphql.Null } @@ -82999,7 +83150,7 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_outcome(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Outcome, nil + return obj.ContributedToDeath, nil }) if err != nil { ec.Error(ctx, err) @@ -83008,38 +83159,26 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_outcome(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_outcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_contributedToDeath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryCondition_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryCondition_modifierExtension(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_note(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_note(ctx, field) if err != nil { return graphql.Null } @@ -83052,151 +83191,49 @@ func (ec *executionContext) _FamilyMemberHistoryCondition_modifierExtension(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(model.FamilyMemberHistoryConditionNoteUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNFamilyMemberHistoryConditionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryConditionNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type FamilyMemberHistoryConditionNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_FamilyMemberHistoryCondition_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryParticipant_actor(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryParticipant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryParticipant_actor(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryCondition_onsetAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_onsetAge(ctx, field) if err != nil { return graphql.Null } @@ -83209,7 +83246,7 @@ func (ec *executionContext) _FamilyMemberHistoryParticipant_actor(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Actor, nil + return obj.OnsetAge, nil }) if err != nil { ec.Error(ctx, err) @@ -83218,32 +83255,39 @@ func (ec *executionContext) _FamilyMemberHistoryParticipant_actor(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]model.FamilyMemberHistoryParticipantActorUnion) + res := resTmp.(*model.Age) fc.Result = res - return ec.marshalOFamilyMemberHistoryParticipantActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantActorUnion(ctx, field.Selections, res) + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryParticipant_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryCondition_onsetAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FamilyMemberHistoryParticipant", + Object: "FamilyMemberHistoryCondition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FamilyMemberHistoryParticipantActorUnion does not have child fields") + switch field.Name { + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) + case "extension": + return ec.fieldContext_Age_extension(ctx, field) + case "id": + return ec.fieldContext_Age_id(ctx, field) + case "resourceType": + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_FamilyMemberHistoryParticipant_actor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -83283,120 +83327,120 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryParticipant_extensio IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -83440,6 +83484,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryParticipant_function IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -83448,8 +83494,6 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryParticipant_function return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -83534,120 +83578,120 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryParticipant_modifier IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) case "valueId": return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) case "valueAvailability": return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -83696,8 +83740,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryParticipant_resource return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryProcedure_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_modifierExtension(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryParticipant_actor(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryParticipant_actor(ctx, field) if err != nil { return graphql.Null } @@ -83710,146 +83754,44 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_modifierExtension(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Actor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(model.FamilyMemberHistoryParticipantActorUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNFamilyMemberHistoryParticipantActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantActorUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryParticipant_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FamilyMemberHistoryProcedure", + Object: "FamilyMemberHistoryParticipant", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type FamilyMemberHistoryParticipantActorUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_FamilyMemberHistoryParticipant_actor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } @@ -83874,11 +83816,14 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_note(ctx context.Conte return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.FamilyMemberHistoryProcedureNoteUnion) + res := resTmp.(model.FamilyMemberHistoryProcedureNoteUnion) fc.Result = res - return ec.marshalOFamilyMemberHistoryProcedureNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedureNoteUnion(ctx, field.Selections, res) + return ec.marshalNFamilyMemberHistoryProcedureNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedureNoteUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -83905,8 +83850,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_note(ctx c return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryProcedure_performedDateTime(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_performedDateTime(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryProcedure_outcome(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_outcome(ctx, field) if err != nil { return graphql.Null } @@ -83919,7 +83864,7 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_performedDateTime(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PerformedDateTime, nil + return obj.Outcome, nil }) if err != nil { ec.Error(ctx, err) @@ -83928,26 +83873,38 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_performedDateTime(ctx if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_performedDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_outcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryProcedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryProcedure_performedRange(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_performedRange(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryProcedure_performedDateTime(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_performedDateTime(ctx, field) if err != nil { return graphql.Null } @@ -83960,7 +83917,7 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_performedRange(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PerformedRange, nil + return obj.PerformedDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -83969,31 +83926,19 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_performedRange(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(*string) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_performedRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_performedDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryProcedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -84040,8 +83985,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_contribute return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryProcedure_performedAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_performedAge(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryProcedure_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -84054,7 +83999,7 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_performedAge(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PerformedAge, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -84063,37 +84008,19 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_performedAge(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_performedAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryProcedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) - case "extension": - return ec.fieldContext_Age_extension(ctx, field) - case "id": - return ec.fieldContext_Age_id(ctx, field) - case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) - case "value": - return ec.fieldContext_Age_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -84135,16 +84062,16 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_performedP IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -84193,47 +84120,6 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_performedS return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryProcedure_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FamilyMemberHistoryProcedure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - func (ec *executionContext) _FamilyMemberHistoryProcedure_id(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_id(ctx, field) if err != nil { @@ -84311,120 +84197,120 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_extension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -84432,8 +84318,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_extension( return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryProcedure_code(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_code(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryProcedure_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -84446,7 +84332,7 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_code(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -84455,12 +84341,12 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_code(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryProcedure", Field: field, @@ -84468,25 +84354,129 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_code(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryProcedure_outcome(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_outcome(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryProcedure_performedAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_performedAge(ctx, field) if err != nil { return graphql.Null } @@ -84499,7 +84489,7 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_outcome(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Outcome, nil + return obj.PerformedAge, nil }) if err != nil { ec.Error(ctx, err) @@ -84508,12 +84498,12 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure_outcome(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Age) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_outcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_performedAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryProcedure", Field: field, @@ -84521,25 +84511,31 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_outcome(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Age_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Age_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_condition(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_condition(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryProcedure_performedRange(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_performedRange(ctx, field) if err != nil { return graphql.Null } @@ -84552,7 +84548,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_condition(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Condition, nil + return obj.PerformedRange, nil }) if err != nil { ec.Error(ctx, err) @@ -84561,52 +84557,38 @@ func (ec *executionContext) _FamilyMemberHistoryType_condition(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.FamilyMemberHistoryCondition) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOFamilyMemberHistoryCondition2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryCondition(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_performedRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FamilyMemberHistoryType", + Object: "FamilyMemberHistoryProcedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "onsetPeriod": - return ec.fieldContext_FamilyMemberHistoryCondition_onsetPeriod(ctx, field) - case "extension": - return ec.fieldContext_FamilyMemberHistoryCondition_extension(ctx, field) - case "note": - return ec.fieldContext_FamilyMemberHistoryCondition_note(ctx, field) - case "onsetAge": - return ec.fieldContext_FamilyMemberHistoryCondition_onsetAge(ctx, field) - case "onsetRange": - return ec.fieldContext_FamilyMemberHistoryCondition_onsetRange(ctx, field) - case "resourceType": - return ec.fieldContext_FamilyMemberHistoryCondition_resourceType(ctx, field) - case "contributedToDeath": - return ec.fieldContext_FamilyMemberHistoryCondition_contributedToDeath(ctx, field) case "id": - return ec.fieldContext_FamilyMemberHistoryCondition_id(ctx, field) - case "code": - return ec.fieldContext_FamilyMemberHistoryCondition_code(ctx, field) - case "onsetString": - return ec.fieldContext_FamilyMemberHistoryCondition_onsetString(ctx, field) - case "outcome": - return ec.fieldContext_FamilyMemberHistoryCondition_outcome(ctx, field) - case "modifierExtension": - return ec.fieldContext_FamilyMemberHistoryCondition_modifierExtension(ctx, field) + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) + case "resourceType": + return ec.fieldContext_Range_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FamilyMemberHistoryCondition", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_ageAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_ageAge(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryProcedure_code(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_code(ctx, field) if err != nil { return graphql.Null } @@ -84619,7 +84601,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_ageAge(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AgeAge, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -84628,44 +84610,38 @@ func (ec *executionContext) _FamilyMemberHistoryType_ageAge(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_ageAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryProcedure_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FamilyMemberHistoryType", + Object: "FamilyMemberHistoryProcedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Age_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Age_id(ctx, field) - case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) - case "value": - return ec.fieldContext_Age_value(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_deceasedRange(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedRange(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_ageRange(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_ageRange(ctx, field) if err != nil { return graphql.Null } @@ -84678,7 +84654,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_deceasedRange(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeceasedRange, nil + return obj.AgeRange, nil }) if err != nil { ec.Error(ctx, err) @@ -84692,7 +84668,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_deceasedRange(ctx context.C return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_ageRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -84700,16 +84676,16 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedRange(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": return ec.fieldContext_Range_resourceType(ctx, field) case "extension": return ec.fieldContext_Range_extension(ctx, field) case "high": return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, @@ -84717,8 +84693,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedRange(_ return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_deceasedAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedAge(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_patient(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_patient(ctx, field) if err != nil { return graphql.Null } @@ -84731,21 +84707,24 @@ func (ec *executionContext) _FamilyMemberHistoryType_deceasedAge(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeceasedAge, nil + return obj.Patient, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.(*model.PatientType) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalNPatientType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_patient(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -84753,31 +84732,80 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedAge(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) - case "extension": - return ec.fieldContext_Age_extension(ctx, field) + case "managingOrganization": + return ec.fieldContext_PatientType_managingOrganization(ctx, field) + case "contact": + return ec.fieldContext_PatientType_contact(ctx, field) + case "gender": + return ec.fieldContext_PatientType_gender(ctx, field) + case "link": + return ec.fieldContext_PatientType_link(ctx, field) + case "implicitRules": + return ec.fieldContext_PatientType_implicitRules(ctx, field) + case "multipleBirthInteger": + return ec.fieldContext_PatientType_multipleBirthInteger(ctx, field) case "id": - return ec.fieldContext_Age_id(ctx, field) + return ec.fieldContext_PatientType_id(ctx, field) + case "meta": + return ec.fieldContext_PatientType_meta(ctx, field) + case "contained": + return ec.fieldContext_PatientType_contained(ctx, field) + case "communication": + return ec.fieldContext_PatientType_communication(ctx, field) + case "birthDate": + return ec.fieldContext_PatientType_birthDate(ctx, field) + case "identifier": + return ec.fieldContext_PatientType_identifier(ctx, field) case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) - case "value": - return ec.fieldContext_Age_value(ctx, field) + return ec.fieldContext_PatientType_resourceType(ctx, field) + case "generalPractitioner": + return ec.fieldContext_PatientType_generalPractitioner(ctx, field) + case "language": + return ec.fieldContext_PatientType_language(ctx, field) + case "deceasedDateTime": + return ec.fieldContext_PatientType_deceasedDateTime(ctx, field) + case "telecom": + return ec.fieldContext_PatientType_telecom(ctx, field) + case "photo": + return ec.fieldContext_PatientType_photo(ctx, field) + case "text": + return ec.fieldContext_PatientType_text(ctx, field) + case "multipleBirthBoolean": + return ec.fieldContext_PatientType_multipleBirthBoolean(ctx, field) + case "address": + return ec.fieldContext_PatientType_address(ctx, field) + case "maritalStatus": + return ec.fieldContext_PatientType_maritalStatus(ctx, field) + case "modifierExtension": + return ec.fieldContext_PatientType_modifierExtension(ctx, field) + case "extension": + return ec.fieldContext_PatientType_extension(ctx, field) + case "name": + return ec.fieldContext_PatientType_name(ctx, field) + case "active": + return ec.fieldContext_PatientType_active(ctx, field) + case "deceasedBoolean": + return ec.fieldContext_PatientType_deceasedBoolean(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PatientType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_FamilyMemberHistoryType_patient_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_status(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_status(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_name(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_name(ctx, field) if err != nil { return graphql.Null } @@ -84790,7 +84818,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_status(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -84804,7 +84832,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_status(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -84817,8 +84845,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_status(_ contex return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_language(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_language(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_deceasedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedBoolean(ctx, field) if err != nil { return graphql.Null } @@ -84831,7 +84859,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_language(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.DeceasedBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -84845,7 +84873,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_language(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -84858,8 +84886,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_language(_ cont return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_identifier(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_instantiatesUri(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_instantiatesUri(ctx, field) if err != nil { return graphql.Null } @@ -84872,7 +84900,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_identifier(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.InstantiatesURI, nil }) if err != nil { ec.Error(ctx, err) @@ -84881,46 +84909,26 @@ func (ec *executionContext) _FamilyMemberHistoryType_identifier(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_instantiatesUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_sex(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_sex(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -84933,7 +84941,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_sex(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Sex, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -84942,12 +84950,12 @@ func (ec *executionContext) _FamilyMemberHistoryType_sex(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_sex(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -84955,38 +84963,142 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_sex(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _FamilyMemberHistoryType_note(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_note(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FamilyMemberHistoryType_instantiatesCanonical(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_instantiatesCanonical(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) ret = graphql.Null } }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.InstantiatesCanonical, nil }) if err != nil { ec.Error(ctx, err) @@ -84995,37 +85107,26 @@ func (ec *executionContext) _FamilyMemberHistoryType_note(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]model.FamilyMemberHistoryNoteUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOFamilyMemberHistoryNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryNoteUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_instantiatesCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FamilyMemberHistoryNoteUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_FamilyMemberHistoryType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_contained(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_contained(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_text(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_text(ctx, field) if err != nil { return graphql.Null } @@ -85038,7 +85139,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_contained(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -85047,19 +85148,31 @@ func (ec *executionContext) _FamilyMemberHistoryType_contained(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil @@ -85106,8 +85219,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_id(_ context.Co return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_resourceType(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_bornString(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_bornString(ctx, field) if err != nil { return graphql.Null } @@ -85120,7 +85233,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_resourceType(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.BornString, nil }) if err != nil { ec.Error(ctx, err) @@ -85134,7 +85247,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_resourceType(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_bornString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -85147,8 +85260,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_resourceType(_ return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_deceasedString(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedString(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_deceasedAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedAge(ctx, field) if err != nil { return graphql.Null } @@ -85161,7 +85274,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_deceasedString(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeceasedString, nil + return obj.DeceasedAge, nil }) if err != nil { ec.Error(ctx, err) @@ -85170,26 +85283,44 @@ func (ec *executionContext) _FamilyMemberHistoryType_deceasedString(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Age) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) + case "extension": + return ec.fieldContext_Age_extension(ctx, field) + case "id": + return ec.fieldContext_Age_id(ctx, field) + case "resourceType": + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_relationship(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_relationship(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_ageAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_ageAge(ctx, field) if err != nil { return graphql.Null } @@ -85202,7 +85333,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_relationship(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Relationship, nil + return obj.AgeAge, nil }) if err != nil { ec.Error(ctx, err) @@ -85211,12 +85342,12 @@ func (ec *executionContext) _FamilyMemberHistoryType_relationship(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Age) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_relationship(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_ageAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -85224,25 +85355,31 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_relationship(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Age_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Age_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_bornDate(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_bornDate(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_date(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_date(ctx, field) if err != nil { return graphql.Null } @@ -85255,7 +85392,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_bornDate(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BornDate, nil + return obj.Date, nil }) if err != nil { ec.Error(ctx, err) @@ -85269,7 +85406,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_bornDate(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_bornDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -85282,8 +85419,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_bornDate(_ cont return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_dataAbsentReason(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_dataAbsentReason(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_sex(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_sex(ctx, field) if err != nil { return graphql.Null } @@ -85296,7 +85433,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_dataAbsentReason(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DataAbsentReason, nil + return obj.Sex, nil }) if err != nil { ec.Error(ctx, err) @@ -85310,7 +85447,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_dataAbsentReason(ctx contex return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_dataAbsentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_sex(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -85318,6 +85455,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_dataAbsentReaso IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -85326,8 +85465,6 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_dataAbsentReaso return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -85335,8 +85472,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_dataAbsentReaso return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_estimatedAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_estimatedAge(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_language(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_language(ctx, field) if err != nil { return graphql.Null } @@ -85349,7 +85486,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_estimatedAge(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EstimatedAge, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -85363,7 +85500,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_estimatedAge(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_estimatedAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -85376,8 +85513,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_estimatedAge(_ return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_modifierExtension(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_contained(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_contained(ctx, field) if err != nil { return graphql.Null } @@ -85390,7 +85527,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_modifierExtension(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -85399,142 +85536,26 @@ func (ec *executionContext) _FamilyMemberHistoryType_modifierExtension(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_date(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_date(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_note(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_note(ctx, field) if err != nil { return graphql.Null } @@ -85547,35 +85568,49 @@ func (ec *executionContext) _FamilyMemberHistoryType_date(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Date, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.FamilyMemberHistoryNoteUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNFamilyMemberHistoryNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type FamilyMemberHistoryNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_FamilyMemberHistoryType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_patient(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_patient(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_reason(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_reason(ctx, field) if err != nil { return graphql.Null } @@ -85588,7 +85623,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_patient(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Patient, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -85597,12 +85632,12 @@ func (ec *executionContext) _FamilyMemberHistoryType_patient(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.PatientType) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOPatientType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_patient(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -85610,80 +85645,23 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_patient(ctx con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "modifierExtension": - return ec.fieldContext_PatientType_modifierExtension(ctx, field) - case "gender": - return ec.fieldContext_PatientType_gender(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_PatientType_extension(ctx, field) - case "deceasedBoolean": - return ec.fieldContext_PatientType_deceasedBoolean(ctx, field) - case "address": - return ec.fieldContext_PatientType_address(ctx, field) - case "link": - return ec.fieldContext_PatientType_link(ctx, field) - case "identifier": - return ec.fieldContext_PatientType_identifier(ctx, field) - case "generalPractitioner": - return ec.fieldContext_PatientType_generalPractitioner(ctx, field) - case "implicitRules": - return ec.fieldContext_PatientType_implicitRules(ctx, field) - case "meta": - return ec.fieldContext_PatientType_meta(ctx, field) - case "multipleBirthInteger": - return ec.fieldContext_PatientType_multipleBirthInteger(ctx, field) - case "multipleBirthBoolean": - return ec.fieldContext_PatientType_multipleBirthBoolean(ctx, field) - case "text": - return ec.fieldContext_PatientType_text(ctx, field) - case "managingOrganization": - return ec.fieldContext_PatientType_managingOrganization(ctx, field) - case "active": - return ec.fieldContext_PatientType_active(ctx, field) - case "birthDate": - return ec.fieldContext_PatientType_birthDate(ctx, field) - case "deceasedDateTime": - return ec.fieldContext_PatientType_deceasedDateTime(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_PatientType_id(ctx, field) - case "name": - return ec.fieldContext_PatientType_name(ctx, field) - case "photo": - return ec.fieldContext_PatientType_photo(ctx, field) - case "contained": - return ec.fieldContext_PatientType_contained(ctx, field) - case "contact": - return ec.fieldContext_PatientType_contact(ctx, field) - case "maritalStatus": - return ec.fieldContext_PatientType_maritalStatus(ctx, field) - case "communication": - return ec.fieldContext_PatientType_communication(ctx, field) - case "telecom": - return ec.fieldContext_PatientType_telecom(ctx, field) - case "language": - return ec.fieldContext_PatientType_language(ctx, field) - case "resourceType": - return ec.fieldContext_PatientType_resourceType(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PatientType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_FamilyMemberHistoryType_patient_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_extension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_extension(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_relationship(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_relationship(ctx, field) if err != nil { return graphql.Null } @@ -85696,7 +85674,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_extension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Relationship, nil }) if err != nil { ec.Error(ctx, err) @@ -85705,12 +85683,12 @@ func (ec *executionContext) _FamilyMemberHistoryType_extension(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_relationship(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -85718,129 +85696,25 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_extension(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_procedure(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_procedure(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_condition(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_condition(ctx, field) if err != nil { return graphql.Null } @@ -85853,7 +85727,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_procedure(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedure, nil + return obj.Condition, nil }) if err != nil { ec.Error(ctx, err) @@ -85862,12 +85736,12 @@ func (ec *executionContext) _FamilyMemberHistoryType_procedure(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.FamilyMemberHistoryProcedure) + res := resTmp.([]*model.FamilyMemberHistoryCondition) fc.Result = res - return ec.marshalOFamilyMemberHistoryProcedure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedure(ctx, field.Selections, res) + return ec.marshalOFamilyMemberHistoryCondition2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryCondition(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -85875,41 +85749,39 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_procedure(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "modifierExtension": - return ec.fieldContext_FamilyMemberHistoryProcedure_modifierExtension(ctx, field) - case "note": - return ec.fieldContext_FamilyMemberHistoryProcedure_note(ctx, field) - case "performedDateTime": - return ec.fieldContext_FamilyMemberHistoryProcedure_performedDateTime(ctx, field) - case "performedRange": - return ec.fieldContext_FamilyMemberHistoryProcedure_performedRange(ctx, field) - case "contributedToDeath": - return ec.fieldContext_FamilyMemberHistoryProcedure_contributedToDeath(ctx, field) - case "performedAge": - return ec.fieldContext_FamilyMemberHistoryProcedure_performedAge(ctx, field) - case "performedPeriod": - return ec.fieldContext_FamilyMemberHistoryProcedure_performedPeriod(ctx, field) - case "performedString": - return ec.fieldContext_FamilyMemberHistoryProcedure_performedString(ctx, field) - case "resourceType": - return ec.fieldContext_FamilyMemberHistoryProcedure_resourceType(ctx, field) + case "onsetPeriod": + return ec.fieldContext_FamilyMemberHistoryCondition_onsetPeriod(ctx, field) case "id": - return ec.fieldContext_FamilyMemberHistoryProcedure_id(ctx, field) - case "extension": - return ec.fieldContext_FamilyMemberHistoryProcedure_extension(ctx, field) - case "code": - return ec.fieldContext_FamilyMemberHistoryProcedure_code(ctx, field) + return ec.fieldContext_FamilyMemberHistoryCondition_id(ctx, field) case "outcome": - return ec.fieldContext_FamilyMemberHistoryProcedure_outcome(ctx, field) + return ec.fieldContext_FamilyMemberHistoryCondition_outcome(ctx, field) + case "resourceType": + return ec.fieldContext_FamilyMemberHistoryCondition_resourceType(ctx, field) + case "onsetRange": + return ec.fieldContext_FamilyMemberHistoryCondition_onsetRange(ctx, field) + case "code": + return ec.fieldContext_FamilyMemberHistoryCondition_code(ctx, field) + case "modifierExtension": + return ec.fieldContext_FamilyMemberHistoryCondition_modifierExtension(ctx, field) + case "extension": + return ec.fieldContext_FamilyMemberHistoryCondition_extension(ctx, field) + case "onsetString": + return ec.fieldContext_FamilyMemberHistoryCondition_onsetString(ctx, field) + case "contributedToDeath": + return ec.fieldContext_FamilyMemberHistoryCondition_contributedToDeath(ctx, field) + case "note": + return ec.fieldContext_FamilyMemberHistoryCondition_note(ctx, field) + case "onsetAge": + return ec.fieldContext_FamilyMemberHistoryCondition_onsetAge(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FamilyMemberHistoryProcedure", field.Name) + return nil, fmt.Errorf("no field named %q was found under type FamilyMemberHistoryCondition", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_meta(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_meta(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_extension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_extension(ctx, field) if err != nil { return graphql.Null } @@ -85922,7 +85794,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_meta(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -85931,12 +85803,12 @@ func (ec *executionContext) _FamilyMemberHistoryType_meta(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -85944,33 +85816,129 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_meta(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_ageRange(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_ageRange(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_meta(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_meta(ctx, field) if err != nil { return graphql.Null } @@ -85983,7 +85951,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_ageRange(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AgeRange, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -85992,12 +85960,12 @@ func (ec *executionContext) _FamilyMemberHistoryType_ageRange(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_ageRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -86005,25 +85973,33 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_ageRange(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_name(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_name(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_deceasedString(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedString(ctx, field) if err != nil { return graphql.Null } @@ -86036,7 +86012,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_name(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.DeceasedString, nil }) if err != nil { ec.Error(ctx, err) @@ -86050,7 +86026,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_name(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -86063,8 +86039,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_name(_ context. return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_deceasedDate(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedDate(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_status(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_status(ctx, field) if err != nil { return graphql.Null } @@ -86077,7 +86053,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_deceasedDate(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeceasedDate, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -86091,7 +86067,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_deceasedDate(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -86104,8 +86080,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedDate(_ return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_deceasedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedBoolean(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_ageString(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_ageString(ctx, field) if err != nil { return graphql.Null } @@ -86118,7 +86094,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_deceasedBoolean(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeceasedBoolean, nil + return obj.AgeString, nil }) if err != nil { ec.Error(ctx, err) @@ -86132,7 +86108,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_deceasedBoolean(ctx context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_ageString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -86145,8 +86121,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedBoolean return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_instantiatesCanonical(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_instantiatesCanonical(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -86159,7 +86135,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_instantiatesCanonical(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InstantiatesCanonical, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -86168,26 +86144,46 @@ func (ec *executionContext) _FamilyMemberHistoryType_instantiatesCanonical(ctx c if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_instantiatesCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_ageString(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_ageString(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_participant(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_participant(ctx, field) if err != nil { return graphql.Null } @@ -86200,35 +86196,49 @@ func (ec *executionContext) _FamilyMemberHistoryType_ageString(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AgeString, nil + return obj.Participant, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.FamilyMemberHistoryParticipantUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNFamilyMemberHistoryParticipantUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_ageString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_participant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type FamilyMemberHistoryParticipantUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_FamilyMemberHistoryType_participant_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_text(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_text(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_deceasedDate(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedDate(ctx, field) if err != nil { return graphql.Null } @@ -86241,7 +86251,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_text(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.DeceasedDate, nil }) if err != nil { ec.Error(ctx, err) @@ -86250,38 +86260,26 @@ func (ec *executionContext) _FamilyMemberHistoryType_text(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_implicitRules(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_estimatedAge(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_estimatedAge(ctx, field) if err != nil { return graphql.Null } @@ -86294,7 +86292,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_implicitRules(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.EstimatedAge, nil }) if err != nil { ec.Error(ctx, err) @@ -86308,7 +86306,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_implicitRules(ctx context.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_estimatedAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -86321,8 +86319,8 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_implicitRules(_ return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_reason(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_reason(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_dataAbsentReason(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_dataAbsentReason(ctx, field) if err != nil { return graphql.Null } @@ -86335,7 +86333,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_reason(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.DataAbsentReason, nil }) if err != nil { ec.Error(ctx, err) @@ -86344,12 +86342,12 @@ func (ec *executionContext) _FamilyMemberHistoryType_reason(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_dataAbsentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -86357,23 +86355,25 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_reason(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_instantiatesUri(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_instantiatesUri(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_procedure(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_procedure(ctx, field) if err != nil { return graphql.Null } @@ -86386,7 +86386,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_instantiatesUri(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InstantiatesURI, nil + return obj.Procedure, nil }) if err != nil { ec.Error(ctx, err) @@ -86395,26 +86395,54 @@ func (ec *executionContext) _FamilyMemberHistoryType_instantiatesUri(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.FamilyMemberHistoryProcedure) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOFamilyMemberHistoryProcedure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_instantiatesUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "note": + return ec.fieldContext_FamilyMemberHistoryProcedure_note(ctx, field) + case "outcome": + return ec.fieldContext_FamilyMemberHistoryProcedure_outcome(ctx, field) + case "performedDateTime": + return ec.fieldContext_FamilyMemberHistoryProcedure_performedDateTime(ctx, field) + case "contributedToDeath": + return ec.fieldContext_FamilyMemberHistoryProcedure_contributedToDeath(ctx, field) + case "resourceType": + return ec.fieldContext_FamilyMemberHistoryProcedure_resourceType(ctx, field) + case "performedPeriod": + return ec.fieldContext_FamilyMemberHistoryProcedure_performedPeriod(ctx, field) + case "performedString": + return ec.fieldContext_FamilyMemberHistoryProcedure_performedString(ctx, field) + case "id": + return ec.fieldContext_FamilyMemberHistoryProcedure_id(ctx, field) + case "extension": + return ec.fieldContext_FamilyMemberHistoryProcedure_extension(ctx, field) + case "modifierExtension": + return ec.fieldContext_FamilyMemberHistoryProcedure_modifierExtension(ctx, field) + case "performedAge": + return ec.fieldContext_FamilyMemberHistoryProcedure_performedAge(ctx, field) + case "performedRange": + return ec.fieldContext_FamilyMemberHistoryProcedure_performedRange(ctx, field) + case "code": + return ec.fieldContext_FamilyMemberHistoryProcedure_code(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FamilyMemberHistoryProcedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_bornString(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_bornString(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_bornPeriod(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_bornPeriod(ctx, field) if err != nil { return graphql.Null } @@ -86427,7 +86455,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_bornString(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BornString, nil + return obj.BornPeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -86436,26 +86464,38 @@ func (ec *executionContext) _FamilyMemberHistoryType_bornString(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_bornString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_bornPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_participant(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_participant(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -86468,7 +86508,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_participant(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Participant, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -86477,37 +86517,26 @@ func (ec *executionContext) _FamilyMemberHistoryType_participant(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]model.FamilyMemberHistoryParticipantUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOFamilyMemberHistoryParticipantUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_participant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FamilyMemberHistoryParticipantUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_FamilyMemberHistoryType_participant_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _FamilyMemberHistoryType_bornPeriod(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FamilyMemberHistoryType_bornPeriod(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_deceasedRange(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_deceasedRange(ctx, field) if err != nil { return graphql.Null } @@ -86520,7 +86549,7 @@ func (ec *executionContext) _FamilyMemberHistoryType_bornPeriod(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BornPeriod, nil + return obj.DeceasedRange, nil }) if err != nil { ec.Error(ctx, err) @@ -86529,12 +86558,12 @@ func (ec *executionContext) _FamilyMemberHistoryType_bornPeriod(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FamilyMemberHistoryType_bornPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_deceasedRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "FamilyMemberHistoryType", Field: field, @@ -86542,78 +86571,25 @@ func (ec *executionContext) fieldContext_FamilyMemberHistoryType_bornPeriod(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _GroupCharacteristic_period(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupCharacteristic_period(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Period, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Period) - fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupCharacteristic_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupCharacteristic", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { + return ec.fieldContext_Range_resourceType(ctx, field) case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupCharacteristic_code(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupCharacteristic_code(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -86626,7 +86602,7 @@ func (ec *executionContext) _GroupCharacteristic_code(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -86635,38 +86611,26 @@ func (ec *executionContext) _GroupCharacteristic_code(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupCharacteristic_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupCharacteristic", + Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupCharacteristic_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupCharacteristic_valueBoolean(ctx, field) +func (ec *executionContext) _FamilyMemberHistoryType_bornDate(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_bornDate(ctx, field) if err != nil { return graphql.Null } @@ -86679,7 +86643,7 @@ func (ec *executionContext) _GroupCharacteristic_valueBoolean(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueBoolean, nil + return obj.BornDate, nil }) if err != nil { ec.Error(ctx, err) @@ -86693,9 +86657,9 @@ func (ec *executionContext) _GroupCharacteristic_valueBoolean(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupCharacteristic_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_bornDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupCharacteristic", + Object: "FamilyMemberHistoryType", Field: field, IsMethod: false, IsResolver: false, @@ -86706,8 +86670,8 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_valueBoolean(_ cont return fc, nil } -func (ec *executionContext) _GroupCharacteristic_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupCharacteristic_valueQuantity(ctx, field) +func (ec *executionContext) _GroupCharacteristic_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_valueRange(ctx, field) if err != nil { return graphql.Null } @@ -86720,7 +86684,7 @@ func (ec *executionContext) _GroupCharacteristic_valueQuantity(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueQuantity, nil + return obj.ValueRange, nil }) if err != nil { ec.Error(ctx, err) @@ -86729,12 +86693,12 @@ func (ec *executionContext) _GroupCharacteristic_valueQuantity(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupCharacteristic_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupCharacteristic_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupCharacteristic", Field: field, @@ -86742,31 +86706,25 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_valueQuantity(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_Quantity_id(ctx, field) + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_Range_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupCharacteristic_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupCharacteristic_valueRange(ctx, field) +func (ec *executionContext) _GroupCharacteristic_code(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_code(ctx, field) if err != nil { return graphql.Null } @@ -86779,7 +86737,7 @@ func (ec *executionContext) _GroupCharacteristic_valueRange(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRange, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -86788,12 +86746,12 @@ func (ec *executionContext) _GroupCharacteristic_valueRange(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupCharacteristic_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupCharacteristic_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupCharacteristic", Field: field, @@ -86802,17 +86760,17 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_valueRange(_ contex Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -86854,120 +86812,120 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_extension(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -86975,8 +86933,8 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_extension(_ context return fc, nil } -func (ec *executionContext) _GroupCharacteristic_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupCharacteristic_modifierExtension(ctx, field) +func (ec *executionContext) _GroupCharacteristic_period(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_period(ctx, field) if err != nil { return graphql.Null } @@ -86989,7 +86947,7 @@ func (ec *executionContext) _GroupCharacteristic_modifierExtension(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -86998,12 +86956,12 @@ func (ec *executionContext) _GroupCharacteristic_modifierExtension(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupCharacteristic_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupCharacteristic_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupCharacteristic", Field: field, @@ -87011,122 +86969,18 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_modifierExtension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Period_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil @@ -87173,6 +87027,47 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_resourceType(_ cont return fc, nil } +func (ec *executionContext) _GroupCharacteristic_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_valueBoolean(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ValueBoolean, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupCharacteristic_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupCharacteristic", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _GroupCharacteristic_exclude(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { fc, err := ec.fieldContext_GroupCharacteristic_exclude(ctx, field) if err != nil { @@ -87250,6 +87145,8 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_valueCodeableConcep IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -87258,8 +87155,6 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_valueCodeableConcep return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -87308,8 +87203,8 @@ func (ec *executionContext) fieldContext_GroupCharacteristic_id(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupMember_entity(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMember_entity(ctx, field) +func (ec *executionContext) _GroupCharacteristic_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -87322,7 +87217,7 @@ func (ec *executionContext) _GroupMember_entity(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entity, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -87331,37 +87226,201 @@ func (ec *executionContext) _GroupMember_entity(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]model.GroupMemberEntityUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOGroupMemberEntityUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberEntityUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMember_entity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupCharacteristic_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMember", + Object: "GroupCharacteristic", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupMemberEntityUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _GroupCharacteristic_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_valueQuantity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_GroupMember_entity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ValueQuantity, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Quantity) + fc.Result = res + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupCharacteristic_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupCharacteristic", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + }, } return fc, nil } -func (ec *executionContext) _GroupMember_extension(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMember_extension(ctx, field) +func (ec *executionContext) _GroupMember_period(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMember_period(ctx, field) if err != nil { return graphql.Null } @@ -87374,7 +87433,7 @@ func (ec *executionContext) _GroupMember_extension(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -87383,12 +87442,12 @@ func (ec *executionContext) _GroupMember_extension(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMember_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMember_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupMember", Field: field, @@ -87396,129 +87455,25 @@ func (ec *executionContext) fieldContext_GroupMember_extension(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Period_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupMember_id(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMember_id(ctx, field) +func (ec *executionContext) _GroupMember_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMember_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -87531,7 +87486,7 @@ func (ec *executionContext) _GroupMember_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -87545,7 +87500,7 @@ func (ec *executionContext) _GroupMember_id(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMember_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMember_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupMember", Field: field, @@ -87558,8 +87513,8 @@ func (ec *executionContext) fieldContext_GroupMember_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _GroupMember_inactive(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMember_inactive(ctx, field) +func (ec *executionContext) _GroupMember_entity(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMember_entity(ctx, field) if err != nil { return graphql.Null } @@ -87572,35 +87527,49 @@ func (ec *executionContext) _GroupMember_inactive(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Inactive, nil + return obj.Entity, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.GroupMemberEntityUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNGroupMemberEntityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberEntityUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMember_inactive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMember_entity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupMember", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type GroupMemberEntityUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_GroupMember_entity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMember_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMember_modifierExtension(ctx, field) +func (ec *executionContext) _GroupMember_extension(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMember_extension(ctx, field) if err != nil { return graphql.Null } @@ -87613,7 +87582,7 @@ func (ec *executionContext) _GroupMember_modifierExtension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -87627,7 +87596,7 @@ func (ec *executionContext) _GroupMember_modifierExtension(ctx context.Context, return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMember_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMember_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupMember", Field: field, @@ -87635,120 +87604,120 @@ func (ec *executionContext) fieldContext_GroupMember_modifierExtension(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -87756,8 +87725,8 @@ func (ec *executionContext) fieldContext_GroupMember_modifierExtension(_ context return fc, nil } -func (ec *executionContext) _GroupMember_period(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMember_period(ctx, field) +func (ec *executionContext) _GroupMember_id(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMember_id(ctx, field) if err != nil { return graphql.Null } @@ -87770,7 +87739,7 @@ func (ec *executionContext) _GroupMember_period(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -87779,38 +87748,26 @@ func (ec *executionContext) _GroupMember_period(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMember_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMember_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupMember", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMember_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMember_resourceType(ctx, field) +func (ec *executionContext) _GroupMember_inactive(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMember_inactive(ctx, field) if err != nil { return graphql.Null } @@ -87823,7 +87780,7 @@ func (ec *executionContext) _GroupMember_resourceType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Inactive, nil }) if err != nil { ec.Error(ctx, err) @@ -87837,7 +87794,7 @@ func (ec *executionContext) _GroupMember_resourceType(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMember_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMember_inactive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupMember", Field: field, @@ -87850,60 +87807,8 @@ func (ec *executionContext) fieldContext_GroupMember_resourceType(_ context.Cont return fc, nil } -func (ec *executionContext) _GroupType_member(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_member(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Member, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.GroupMemberUnion) - fc.Result = res - return ec.marshalOGroupMemberUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupType_member(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupMemberUnion does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_GroupType_member_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _GroupType_extension(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_extension(ctx, field) +func (ec *executionContext) _GroupMember_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.GroupMember) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMember_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -87916,7 +87821,7 @@ func (ec *executionContext) _GroupType_extension(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -87930,128 +87835,128 @@ func (ec *executionContext) _GroupType_extension(ctx context.Context, field grap return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMember_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupType", + Object: "GroupMember", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -88059,8 +87964,8 @@ func (ec *executionContext) fieldContext_GroupType_extension(_ context.Context, return fc, nil } -func (ec *executionContext) _GroupType_meta(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_meta(ctx, field) +func (ec *executionContext) _GroupType_language(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_language(ctx, field) if err != nil { return graphql.Null } @@ -88073,7 +87978,7 @@ func (ec *executionContext) _GroupType_meta(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -88082,46 +87987,26 @@ func (ec *executionContext) _GroupType_meta(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) - case "id": - return ec.fieldContext_Meta_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupType_contained(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_contained(ctx, field) +func (ec *executionContext) _GroupType_extension(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_extension(ctx, field) if err != nil { return graphql.Null } @@ -88134,7 +88019,7 @@ func (ec *executionContext) _GroupType_contained(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -88143,26 +88028,142 @@ func (ec *executionContext) _GroupType_contained(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupType_membership(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_membership(ctx, field) +func (ec *executionContext) _GroupType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -88175,7 +88176,7 @@ func (ec *executionContext) _GroupType_membership(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Membership, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -88189,7 +88190,7 @@ func (ec *executionContext) _GroupType_membership(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_membership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, @@ -88202,8 +88203,8 @@ func (ec *executionContext) fieldContext_GroupType_membership(_ context.Context, return fc, nil } -func (ec *executionContext) _GroupType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_resourceType(ctx, field) +func (ec *executionContext) _GroupType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -88216,7 +88217,7 @@ func (ec *executionContext) _GroupType_resourceType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -88225,26 +88226,46 @@ func (ec *executionContext) _GroupType_resourceType(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupType_characteristic(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_characteristic(ctx, field) +func (ec *executionContext) _GroupType_member(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_member(ctx, field) if err != nil { return graphql.Null } @@ -88257,59 +88278,49 @@ func (ec *executionContext) _GroupType_characteristic(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Characteristic, nil + return obj.Member, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.GroupCharacteristic) + res := resTmp.(model.GroupMemberUnion) fc.Result = res - return ec.marshalOGroupCharacteristic2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupCharacteristic(ctx, field.Selections, res) + return ec.marshalNGroupMemberUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_characteristic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_member(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "period": - return ec.fieldContext_GroupCharacteristic_period(ctx, field) - case "code": - return ec.fieldContext_GroupCharacteristic_code(ctx, field) - case "valueBoolean": - return ec.fieldContext_GroupCharacteristic_valueBoolean(ctx, field) - case "valueQuantity": - return ec.fieldContext_GroupCharacteristic_valueQuantity(ctx, field) - case "valueRange": - return ec.fieldContext_GroupCharacteristic_valueRange(ctx, field) - case "extension": - return ec.fieldContext_GroupCharacteristic_extension(ctx, field) - case "modifierExtension": - return ec.fieldContext_GroupCharacteristic_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_GroupCharacteristic_resourceType(ctx, field) - case "exclude": - return ec.fieldContext_GroupCharacteristic_exclude(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_GroupCharacteristic_valueCodeableConcept(ctx, field) - case "id": - return ec.fieldContext_GroupCharacteristic_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupCharacteristic", field.Name) + return nil, errors.New("field of type GroupMemberUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_GroupType_member_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupType_quantity(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_quantity(ctx, field) +func (ec *executionContext) _GroupType_id(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_id(ctx, field) if err != nil { return graphql.Null } @@ -88322,7 +88333,7 @@ func (ec *executionContext) _GroupType_quantity(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Quantity, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -88336,7 +88347,7 @@ func (ec *executionContext) _GroupType_quantity(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_quantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, @@ -88349,8 +88360,8 @@ func (ec *executionContext) fieldContext_GroupType_quantity(_ context.Context, f return fc, nil } -func (ec *executionContext) _GroupType_type(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_type(ctx, field) +func (ec *executionContext) _GroupType_quantity(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_quantity(ctx, field) if err != nil { return graphql.Null } @@ -88363,7 +88374,7 @@ func (ec *executionContext) _GroupType_type(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Quantity, nil }) if err != nil { ec.Error(ctx, err) @@ -88377,7 +88388,7 @@ func (ec *executionContext) _GroupType_type(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_quantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, @@ -88390,8 +88401,8 @@ func (ec *executionContext) fieldContext_GroupType_type(_ context.Context, field return fc, nil } -func (ec *executionContext) _GroupType_active(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_active(ctx, field) +func (ec *executionContext) _GroupType_name(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_name(ctx, field) if err != nil { return graphql.Null } @@ -88404,7 +88415,7 @@ func (ec *executionContext) _GroupType_active(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Active, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -88418,7 +88429,7 @@ func (ec *executionContext) _GroupType_active(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, @@ -88431,8 +88442,8 @@ func (ec *executionContext) fieldContext_GroupType_active(_ context.Context, fie return fc, nil } -func (ec *executionContext) _GroupType_description(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_description(ctx, field) +func (ec *executionContext) _GroupType_text(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_text(ctx, field) if err != nil { return graphql.Null } @@ -88445,7 +88456,7 @@ func (ec *executionContext) _GroupType_description(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -88454,26 +88465,38 @@ func (ec *executionContext) _GroupType_description(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupType_code(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_code(ctx, field) +func (ec *executionContext) _GroupType_contained(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_contained(ctx, field) if err != nil { return graphql.Null } @@ -88486,7 +88509,7 @@ func (ec *executionContext) _GroupType_code(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -88495,38 +88518,26 @@ func (ec *executionContext) _GroupType_code(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupType_id(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_id(ctx, field) +func (ec *executionContext) _GroupType_code(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_code(ctx, field) if err != nil { return graphql.Null } @@ -88539,7 +88550,7 @@ func (ec *executionContext) _GroupType_id(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -88548,26 +88559,38 @@ func (ec *executionContext) _GroupType_id(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupType_language(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_language(ctx, field) +func (ec *executionContext) _GroupType_description(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_description(ctx, field) if err != nil { return graphql.Null } @@ -88580,7 +88603,7 @@ func (ec *executionContext) _GroupType_language(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -88594,7 +88617,7 @@ func (ec *executionContext) _GroupType_language(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, @@ -88643,120 +88666,120 @@ func (ec *executionContext) fieldContext_GroupType_modifierExtension(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -88764,8 +88787,8 @@ func (ec *executionContext) fieldContext_GroupType_modifierExtension(_ context.C return fc, nil } -func (ec *executionContext) _GroupType_name(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_name(ctx, field) +func (ec *executionContext) _GroupType_active(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_active(ctx, field) if err != nil { return graphql.Null } @@ -88778,7 +88801,7 @@ func (ec *executionContext) _GroupType_name(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Active, nil }) if err != nil { ec.Error(ctx, err) @@ -88792,7 +88815,7 @@ func (ec *executionContext) _GroupType_name(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, @@ -88805,8 +88828,8 @@ func (ec *executionContext) fieldContext_GroupType_name(_ context.Context, field return fc, nil } -func (ec *executionContext) _GroupType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_implicitRules(ctx, field) +func (ec *executionContext) _GroupType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -88819,7 +88842,7 @@ func (ec *executionContext) _GroupType_implicitRules(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -88833,7 +88856,7 @@ func (ec *executionContext) _GroupType_implicitRules(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, @@ -88846,8 +88869,8 @@ func (ec *executionContext) fieldContext_GroupType_implicitRules(_ context.Conte return fc, nil } -func (ec *executionContext) _GroupType_text(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_text(ctx, field) +func (ec *executionContext) _GroupType_membership(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_membership(ctx, field) if err != nil { return graphql.Null } @@ -88860,7 +88883,7 @@ func (ec *executionContext) _GroupType_text(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Membership, nil }) if err != nil { ec.Error(ctx, err) @@ -88869,38 +88892,26 @@ func (ec *executionContext) _GroupType_text(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_membership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupType_managingEntity(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_managingEntity(ctx, field) +func (ec *executionContext) _GroupType_type(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_type(ctx, field) if err != nil { return graphql.Null } @@ -88913,7 +88924,7 @@ func (ec *executionContext) _GroupType_managingEntity(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ManagingEntity, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -88922,37 +88933,26 @@ func (ec *executionContext) _GroupType_managingEntity(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]model.GroupManagingEntityUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOGroupManagingEntityUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupManagingEntityUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_managingEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupManagingEntityUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_GroupType_managingEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _GroupType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupType_identifier(ctx, field) +func (ec *executionContext) _GroupType_characteristic(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_characteristic(ctx, field) if err != nil { return graphql.Null } @@ -88965,7 +88965,7 @@ func (ec *executionContext) _GroupType_identifier(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Characteristic, nil }) if err != nil { ec.Error(ctx, err) @@ -88974,12 +88974,12 @@ func (ec *executionContext) _GroupType_identifier(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.([]*model.GroupCharacteristic) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOGroupCharacteristic2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupCharacteristic(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_characteristic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GroupType", Field: field, @@ -88987,33 +88987,37 @@ func (ec *executionContext) fieldContext_GroupType_identifier(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) + case "valueRange": + return ec.fieldContext_GroupCharacteristic_valueRange(ctx, field) + case "code": + return ec.fieldContext_GroupCharacteristic_code(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) + return ec.fieldContext_GroupCharacteristic_extension(ctx, field) case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_GroupCharacteristic_period(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_GroupCharacteristic_resourceType(ctx, field) + case "valueBoolean": + return ec.fieldContext_GroupCharacteristic_valueBoolean(ctx, field) + case "exclude": + return ec.fieldContext_GroupCharacteristic_exclude(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_GroupCharacteristic_valueCodeableConcept(ctx, field) + case "id": + return ec.fieldContext_GroupCharacteristic_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_GroupCharacteristic_modifierExtension(ctx, field) + case "valueQuantity": + return ec.fieldContext_GroupCharacteristic_valueQuantity(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupCharacteristic", field.Name) }, } return fc, nil } -func (ec *executionContext) _HumanName_suffix(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HumanName_suffix(ctx, field) +func (ec *executionContext) _GroupType_managingEntity(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_managingEntity(ctx, field) if err != nil { return graphql.Null } @@ -89026,35 +89030,49 @@ func (ec *executionContext) _HumanName_suffix(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Suffix, nil + return obj.ManagingEntity, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.GroupManagingEntityUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNGroupManagingEntityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupManagingEntityUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HumanName_suffix(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_managingEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HumanName", + Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type GroupManagingEntityUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_GroupType_managingEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _HumanName_use(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HumanName_use(ctx, field) +func (ec *executionContext) _GroupType_meta(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_meta(ctx, field) if err != nil { return graphql.Null } @@ -89067,7 +89085,7 @@ func (ec *executionContext) _HumanName_use(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Use, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -89076,26 +89094,46 @@ func (ec *executionContext) _HumanName_use(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HumanName_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HumanName", + Object: "GroupType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _HumanName_family(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HumanName_family(ctx, field) +func (ec *executionContext) _HumanName_given(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_given(ctx, field) if err != nil { return graphql.Null } @@ -89108,7 +89146,7 @@ func (ec *executionContext) _HumanName_family(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Family, nil + return obj.Given, nil }) if err != nil { ec.Error(ctx, err) @@ -89122,7 +89160,7 @@ func (ec *executionContext) _HumanName_family(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HumanName_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HumanName_given(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HumanName", Field: field, @@ -89135,8 +89173,8 @@ func (ec *executionContext) fieldContext_HumanName_family(_ context.Context, fie return fc, nil } -func (ec *executionContext) _HumanName_given(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HumanName_given(ctx, field) +func (ec *executionContext) _HumanName_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -89149,7 +89187,7 @@ func (ec *executionContext) _HumanName_given(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Given, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -89163,7 +89201,7 @@ func (ec *executionContext) _HumanName_given(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HumanName_given(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HumanName_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HumanName", Field: field, @@ -89176,8 +89214,8 @@ func (ec *executionContext) fieldContext_HumanName_given(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _HumanName_id(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HumanName_id(ctx, field) +func (ec *executionContext) _HumanName_use(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_use(ctx, field) if err != nil { return graphql.Null } @@ -89190,7 +89228,7 @@ func (ec *executionContext) _HumanName_id(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Use, nil }) if err != nil { ec.Error(ctx, err) @@ -89204,7 +89242,7 @@ func (ec *executionContext) _HumanName_id(ctx context.Context, field graphql.Col return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HumanName_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HumanName_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HumanName", Field: field, @@ -89217,8 +89255,8 @@ func (ec *executionContext) fieldContext_HumanName_id(_ context.Context, field g return fc, nil } -func (ec *executionContext) _HumanName_prefix(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HumanName_prefix(ctx, field) +func (ec *executionContext) _HumanName_family(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_family(ctx, field) if err != nil { return graphql.Null } @@ -89231,7 +89269,7 @@ func (ec *executionContext) _HumanName_prefix(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Prefix, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) @@ -89245,7 +89283,7 @@ func (ec *executionContext) _HumanName_prefix(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HumanName_prefix(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HumanName_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HumanName", Field: field, @@ -89258,8 +89296,8 @@ func (ec *executionContext) fieldContext_HumanName_prefix(_ context.Context, fie return fc, nil } -func (ec *executionContext) _HumanName_extension(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HumanName_extension(ctx, field) +func (ec *executionContext) _HumanName_suffix(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_suffix(ctx, field) if err != nil { return graphql.Null } @@ -89272,7 +89310,7 @@ func (ec *executionContext) _HumanName_extension(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Suffix, nil }) if err != nil { ec.Error(ctx, err) @@ -89281,142 +89319,26 @@ func (ec *executionContext) _HumanName_extension(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HumanName_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HumanName_suffix(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HumanName", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HumanName_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HumanName_resourceType(ctx, field) +func (ec *executionContext) _HumanName_id(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_id(ctx, field) if err != nil { return graphql.Null } @@ -89429,7 +89351,7 @@ func (ec *executionContext) _HumanName_resourceType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -89443,7 +89365,7 @@ func (ec *executionContext) _HumanName_resourceType(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HumanName_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HumanName_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HumanName", Field: field, @@ -89492,16 +89414,16 @@ func (ec *executionContext) fieldContext_HumanName_period(_ context.Context, fie IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -89509,8 +89431,8 @@ func (ec *executionContext) fieldContext_HumanName_period(_ context.Context, fie return fc, nil } -func (ec *executionContext) _HumanName_text(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HumanName_text(ctx, field) +func (ec *executionContext) _HumanName_prefix(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_prefix(ctx, field) if err != nil { return graphql.Null } @@ -89523,7 +89445,7 @@ func (ec *executionContext) _HumanName_text(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Prefix, nil }) if err != nil { ec.Error(ctx, err) @@ -89537,7 +89459,7 @@ func (ec *executionContext) _HumanName_text(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HumanName_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HumanName_prefix(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HumanName", Field: field, @@ -89550,8 +89472,8 @@ func (ec *executionContext) fieldContext_HumanName_text(_ context.Context, field return fc, nil } -func (ec *executionContext) _Identifier_type(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Identifier_type(ctx, field) +func (ec *executionContext) _HumanName_extension(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_extension(ctx, field) if err != nil { return graphql.Null } @@ -89564,7 +89486,7 @@ func (ec *executionContext) _Identifier_type(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -89573,31 +89495,176 @@ func (ec *executionContext) _Identifier_type(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Identifier_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HumanName_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Identifier", + Object: "HumanName", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _HumanName_text(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_text(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Text, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HumanName_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HumanName", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -89639,120 +89706,120 @@ func (ec *executionContext) fieldContext_Identifier_extension(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -89760,8 +89827,8 @@ func (ec *executionContext) fieldContext_Identifier_extension(_ context.Context, return fc, nil } -func (ec *executionContext) _Identifier_period(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Identifier_period(ctx, field) +func (ec *executionContext) _Identifier_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Identifier_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -89774,7 +89841,7 @@ func (ec *executionContext) _Identifier_period(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -89783,38 +89850,26 @@ func (ec *executionContext) _Identifier_period(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Identifier_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Identifier_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Identifier", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Identifier_system(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Identifier_system(ctx, field) +func (ec *executionContext) _Identifier_use(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Identifier_use(ctx, field) if err != nil { return graphql.Null } @@ -89827,7 +89882,7 @@ func (ec *executionContext) _Identifier_system(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.System, nil + return obj.Use, nil }) if err != nil { ec.Error(ctx, err) @@ -89841,7 +89896,7 @@ func (ec *executionContext) _Identifier_system(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Identifier_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Identifier_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Identifier", Field: field, @@ -89854,8 +89909,8 @@ func (ec *executionContext) fieldContext_Identifier_system(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Identifier_value(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Identifier_value(ctx, field) +func (ec *executionContext) _Identifier_assigner(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Identifier_assigner(ctx, field) if err != nil { return graphql.Null } @@ -89868,35 +89923,87 @@ func (ec *executionContext) _Identifier_value(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Value, nil + return obj.Assigner, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Identifier_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Identifier_assigner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Identifier", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Identifier_assigner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Identifier_assigner(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Identifier_assigner(ctx, field) +func (ec *executionContext) _Identifier_period(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Identifier_period(ctx, field) if err != nil { return graphql.Null } @@ -89909,7 +90016,7 @@ func (ec *executionContext) _Identifier_assigner(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Assigner, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -89918,12 +90025,12 @@ func (ec *executionContext) _Identifier_assigner(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Identifier_assigner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Identifier_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Identifier", Field: field, @@ -89931,62 +90038,78 @@ func (ec *executionContext) fieldContext_Identifier_assigner(ctx context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _Identifier_type(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Identifier_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Identifier_assigner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Identifier_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Identifier", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, } return fc, nil } -func (ec *executionContext) _Identifier_id(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Identifier_id(ctx, field) +func (ec *executionContext) _Identifier_value(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Identifier_value(ctx, field) if err != nil { return graphql.Null } @@ -89999,7 +90122,7 @@ func (ec *executionContext) _Identifier_id(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -90013,7 +90136,7 @@ func (ec *executionContext) _Identifier_id(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Identifier_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Identifier_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Identifier", Field: field, @@ -90026,8 +90149,8 @@ func (ec *executionContext) fieldContext_Identifier_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _Identifier_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Identifier_resourceType(ctx, field) +func (ec *executionContext) _Identifier_id(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Identifier_id(ctx, field) if err != nil { return graphql.Null } @@ -90040,7 +90163,7 @@ func (ec *executionContext) _Identifier_resourceType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -90054,7 +90177,7 @@ func (ec *executionContext) _Identifier_resourceType(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Identifier_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Identifier_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Identifier", Field: field, @@ -90067,8 +90190,8 @@ func (ec *executionContext) fieldContext_Identifier_resourceType(_ context.Conte return fc, nil } -func (ec *executionContext) _Identifier_use(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Identifier_use(ctx, field) +func (ec *executionContext) _Identifier_system(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Identifier_system(ctx, field) if err != nil { return graphql.Null } @@ -90081,7 +90204,7 @@ func (ec *executionContext) _Identifier_use(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Use, nil + return obj.System, nil }) if err != nil { ec.Error(ctx, err) @@ -90095,7 +90218,7 @@ func (ec *executionContext) _Identifier_use(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Identifier_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Identifier_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Identifier", Field: field, @@ -90108,8 +90231,8 @@ func (ec *executionContext) fieldContext_Identifier_use(_ context.Context, field return fc, nil } -func (ec *executionContext) _ImagingStudySeries_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_bodySite(ctx, field) +func (ec *executionContext) _ImagingStudySeries_laterality(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_laterality(ctx, field) if err != nil { return graphql.Null } @@ -90122,7 +90245,7 @@ func (ec *executionContext) _ImagingStudySeries_bodySite(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BodySite, nil + return obj.Laterality, nil }) if err != nil { ec.Error(ctx, err) @@ -90131,12 +90254,12 @@ func (ec *executionContext) _ImagingStudySeries_bodySite(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_laterality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, @@ -90144,23 +90267,25 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_bodySite(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImagingStudySeries_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_resourceType(ctx, field) +func (ec *executionContext) _ImagingStudySeries_uid(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_uid(ctx, field) if err != nil { return graphql.Null } @@ -90173,7 +90298,7 @@ func (ec *executionContext) _ImagingStudySeries_resourceType(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.UID, nil }) if err != nil { ec.Error(ctx, err) @@ -90187,7 +90312,7 @@ func (ec *executionContext) _ImagingStudySeries_resourceType(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_uid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, @@ -90200,8 +90325,8 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_resourceType(_ conte return fc, nil } -func (ec *executionContext) _ImagingStudySeries_id(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_id(ctx, field) +func (ec *executionContext) _ImagingStudySeries_description(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_description(ctx, field) if err != nil { return graphql.Null } @@ -90214,7 +90339,7 @@ func (ec *executionContext) _ImagingStudySeries_id(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -90228,7 +90353,7 @@ func (ec *executionContext) _ImagingStudySeries_id(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, @@ -90241,8 +90366,8 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_id(_ context.Context return fc, nil } -func (ec *executionContext) _ImagingStudySeries_started(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_started(ctx, field) +func (ec *executionContext) _ImagingStudySeries_id(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_id(ctx, field) if err != nil { return graphql.Null } @@ -90255,7 +90380,7 @@ func (ec *executionContext) _ImagingStudySeries_started(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Started, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -90269,7 +90394,7 @@ func (ec *executionContext) _ImagingStudySeries_started(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_started(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, @@ -90282,8 +90407,8 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_started(_ context.Co return fc, nil } -func (ec *executionContext) _ImagingStudySeries_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_extension(ctx, field) +func (ec *executionContext) _ImagingStudySeries_instance(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_instance(ctx, field) if err != nil { return graphql.Null } @@ -90296,7 +90421,7 @@ func (ec *executionContext) _ImagingStudySeries_extension(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Instance, nil }) if err != nil { ec.Error(ctx, err) @@ -90305,12 +90430,12 @@ func (ec *executionContext) _ImagingStudySeries_extension(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.ImagingStudySeriesInstance) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOImagingStudySeriesInstance2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesInstance(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_instance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, @@ -90318,129 +90443,31 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_extension(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "title": + return ec.fieldContext_ImagingStudySeriesInstance_title(ctx, field) + case "uid": + return ec.fieldContext_ImagingStudySeriesInstance_uid(ctx, field) + case "extension": + return ec.fieldContext_ImagingStudySeriesInstance_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_ImagingStudySeriesInstance_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ImagingStudySeriesInstance_modifierExtension(ctx, field) + case "number": + return ec.fieldContext_ImagingStudySeriesInstance_number(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_ImagingStudySeriesInstance_resourceType(ctx, field) + case "sopClass": + return ec.fieldContext_ImagingStudySeriesInstance_sopClass(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ImagingStudySeriesInstance", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImagingStudySeries_numberOfInstances(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_numberOfInstances(ctx, field) +func (ec *executionContext) _ImagingStudySeries_modality(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_modality(ctx, field) if err != nil { return graphql.Null } @@ -90453,7 +90480,7 @@ func (ec *executionContext) _ImagingStudySeries_numberOfInstances(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NumberOfInstances, nil + return obj.Modality, nil }) if err != nil { ec.Error(ctx, err) @@ -90462,26 +90489,38 @@ func (ec *executionContext) _ImagingStudySeries_numberOfInstances(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_numberOfInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_modality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImagingStudySeries_uid(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_uid(ctx, field) +func (ec *executionContext) _ImagingStudySeries_performer(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_performer(ctx, field) if err != nil { return graphql.Null } @@ -90494,35 +90533,49 @@ func (ec *executionContext) _ImagingStudySeries_uid(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UID, nil + return obj.Performer, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ImagingStudySeriesPerformerUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNImagingStudySeriesPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_uid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ImagingStudySeriesPerformerUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ImagingStudySeries_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ImagingStudySeries_laterality(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_laterality(ctx, field) +func (ec *executionContext) _ImagingStudySeries_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -90535,7 +90588,7 @@ func (ec *executionContext) _ImagingStudySeries_laterality(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Laterality, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -90544,38 +90597,26 @@ func (ec *executionContext) _ImagingStudySeries_laterality(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_laterality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ImagingStudySeries_modality(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_modality(ctx, field) +func (ec *executionContext) _ImagingStudySeries_started(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_started(ctx, field) if err != nil { return graphql.Null } @@ -90588,7 +90629,7 @@ func (ec *executionContext) _ImagingStudySeries_modality(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Modality, nil + return obj.Started, nil }) if err != nil { ec.Error(ctx, err) @@ -90597,38 +90638,26 @@ func (ec *executionContext) _ImagingStudySeries_modality(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_modality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_started(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ImagingStudySeries_performer(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_performer(ctx, field) +func (ec *executionContext) _ImagingStudySeries_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_extension(ctx, field) if err != nil { return graphql.Null } @@ -90641,7 +90670,7 @@ func (ec *executionContext) _ImagingStudySeries_performer(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Performer, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -90650,32 +90679,137 @@ func (ec *executionContext) _ImagingStudySeries_performer(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ImagingStudySeriesPerformerUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOImagingStudySeriesPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ImagingStudySeriesPerformerUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ImagingStudySeries_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -90715,120 +90849,120 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_modifierExtension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -90836,8 +90970,8 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_modifierExtension(_ return fc, nil } -func (ec *executionContext) _ImagingStudySeries_description(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_description(ctx, field) +func (ec *executionContext) _ImagingStudySeries_numberOfInstances(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_numberOfInstances(ctx, field) if err != nil { return graphql.Null } @@ -90850,7 +90984,7 @@ func (ec *executionContext) _ImagingStudySeries_description(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.NumberOfInstances, nil }) if err != nil { ec.Error(ctx, err) @@ -90864,7 +90998,7 @@ func (ec *executionContext) _ImagingStudySeries_description(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_numberOfInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, @@ -90877,8 +91011,8 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_description(_ contex return fc, nil } -func (ec *executionContext) _ImagingStudySeries_number(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_number(ctx, field) +func (ec *executionContext) _ImagingStudySeries_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_bodySite(ctx, field) if err != nil { return graphql.Null } @@ -90891,7 +91025,7 @@ func (ec *executionContext) _ImagingStudySeries_number(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Number, nil + return obj.BodySite, nil }) if err != nil { ec.Error(ctx, err) @@ -90900,26 +91034,36 @@ func (ec *executionContext) _ImagingStudySeries_number(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_number(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImagingStudySeries_instance(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeries_instance(ctx, field) +func (ec *executionContext) _ImagingStudySeries_number(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_number(ctx, field) if err != nil { return graphql.Null } @@ -90932,7 +91076,7 @@ func (ec *executionContext) _ImagingStudySeries_instance(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Instance, nil + return obj.Number, nil }) if err != nil { ec.Error(ctx, err) @@ -90941,37 +91085,19 @@ func (ec *executionContext) _ImagingStudySeries_instance(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ImagingStudySeriesInstance) + res := resTmp.(*string) fc.Result = res - return ec.marshalOImagingStudySeriesInstance2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesInstance(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeries_instance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeries_number(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudySeries", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "sopClass": - return ec.fieldContext_ImagingStudySeriesInstance_sopClass(ctx, field) - case "title": - return ec.fieldContext_ImagingStudySeriesInstance_title(ctx, field) - case "uid": - return ec.fieldContext_ImagingStudySeriesInstance_uid(ctx, field) - case "extension": - return ec.fieldContext_ImagingStudySeriesInstance_extension(ctx, field) - case "id": - return ec.fieldContext_ImagingStudySeriesInstance_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ImagingStudySeriesInstance_modifierExtension(ctx, field) - case "number": - return ec.fieldContext_ImagingStudySeriesInstance_number(ctx, field) - case "resourceType": - return ec.fieldContext_ImagingStudySeriesInstance_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ImagingStudySeriesInstance", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -90998,11 +91124,14 @@ func (ec *executionContext) _ImagingStudySeries_specimen(ctx context.Context, fi return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.SpecimenType) + res := resTmp.(*model.SpecimenType) fc.Result = res - return ec.marshalOSpecimenType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, field.Selections, res) + return ec.marshalNSpecimenType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ImagingStudySeries_specimen(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -91013,54 +91142,54 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_specimen(ctx context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "identifier": - return ec.fieldContext_SpecimenType_identifier(ctx, field) - case "text": - return ec.fieldContext_SpecimenType_text(ctx, field) - case "contained": - return ec.fieldContext_SpecimenType_contained(ctx, field) + case "resourceType": + return ec.fieldContext_SpecimenType_resourceType(ctx, field) + case "subject": + return ec.fieldContext_SpecimenType_subject(ctx, field) case "combined": return ec.fieldContext_SpecimenType_combined(ctx, field) - case "role": - return ec.fieldContext_SpecimenType_role(ctx, field) - case "extension": - return ec.fieldContext_SpecimenType_extension(ctx, field) + case "accessionIdentifier": + return ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) + case "modifierExtension": + return ec.fieldContext_SpecimenType_modifierExtension(ctx, field) case "type": return ec.fieldContext_SpecimenType_type(ctx, field) - case "resourceType": - return ec.fieldContext_SpecimenType_resourceType(ctx, field) - case "id": - return ec.fieldContext_SpecimenType_id(ctx, field) + case "text": + return ec.fieldContext_SpecimenType_text(ctx, field) + case "container": + return ec.fieldContext_SpecimenType_container(ctx, field) + case "implicitRules": + return ec.fieldContext_SpecimenType_implicitRules(ctx, field) case "parent": return ec.fieldContext_SpecimenType_parent(ctx, field) - case "modifierExtension": - return ec.fieldContext_SpecimenType_modifierExtension(ctx, field) - case "status": - return ec.fieldContext_SpecimenType_status(ctx, field) - case "condition": - return ec.fieldContext_SpecimenType_condition(ctx, field) case "meta": return ec.fieldContext_SpecimenType_meta(ctx, field) - case "receivedTime": - return ec.fieldContext_SpecimenType_receivedTime(ctx, field) + case "condition": + return ec.fieldContext_SpecimenType_condition(ctx, field) case "feature": return ec.fieldContext_SpecimenType_feature(ctx, field) + case "contained": + return ec.fieldContext_SpecimenType_contained(ctx, field) + case "id": + return ec.fieldContext_SpecimenType_id(ctx, field) + case "processing": + return ec.fieldContext_SpecimenType_processing(ctx, field) + case "extension": + return ec.fieldContext_SpecimenType_extension(ctx, field) + case "identifier": + return ec.fieldContext_SpecimenType_identifier(ctx, field) case "collection": return ec.fieldContext_SpecimenType_collection(ctx, field) - case "subject": - return ec.fieldContext_SpecimenType_subject(ctx, field) - case "accessionIdentifier": - return ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) - case "container": - return ec.fieldContext_SpecimenType_container(ctx, field) + case "receivedTime": + return ec.fieldContext_SpecimenType_receivedTime(ctx, field) + case "role": + return ec.fieldContext_SpecimenType_role(ctx, field) case "language": return ec.fieldContext_SpecimenType_language(ctx, field) - case "processing": - return ec.fieldContext_SpecimenType_processing(ctx, field) - case "implicitRules": - return ec.fieldContext_SpecimenType_implicitRules(ctx, field) case "note": return ec.fieldContext_SpecimenType_note(ctx, field) + case "status": + return ec.fieldContext_SpecimenType_status(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type SpecimenType", field.Name) }, @@ -91079,65 +91208,6 @@ func (ec *executionContext) fieldContext_ImagingStudySeries_specimen(ctx context return fc, nil } -func (ec *executionContext) _ImagingStudySeriesInstance_sopClass(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeriesInstance_sopClass(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SopClass, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Coding) - fc.Result = res - return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ImagingStudySeriesInstance_sopClass(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ImagingStudySeriesInstance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) - case "userSelected": - return ec.fieldContext_Coding_userSelected(ctx, field) - case "version": - return ec.fieldContext_Coding_version(ctx, field) - case "code": - return ec.fieldContext_Coding_code(ctx, field) - case "display": - return ec.fieldContext_Coding_display(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) - }, - } - return fc, nil -} - func (ec *executionContext) _ImagingStudySeriesInstance_title(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesInstance) (ret graphql.Marshaler) { fc, err := ec.fieldContext_ImagingStudySeriesInstance_title(ctx, field) if err != nil { @@ -91256,120 +91326,120 @@ func (ec *executionContext) fieldContext_ImagingStudySeriesInstance_extension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -91454,120 +91524,120 @@ func (ec *executionContext) fieldContext_ImagingStudySeriesInstance_modifierExte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) case "valuePositiveInt": return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) case "valueTime": return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) case "valueDistance": return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -91657,8 +91727,8 @@ func (ec *executionContext) fieldContext_ImagingStudySeriesInstance_resourceType return fc, nil } -func (ec *executionContext) _ImagingStudySeriesPerformer_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudySeriesPerformer_modifierExtension(ctx, field) +func (ec *executionContext) _ImagingStudySeriesInstance_sopClass(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesInstance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesInstance_sopClass(ctx, field) if err != nil { return graphql.Null } @@ -91671,7 +91741,7 @@ func (ec *executionContext) _ImagingStudySeriesPerformer_modifierExtension(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.SopClass, nil }) if err != nil { ec.Error(ctx, err) @@ -91680,135 +91750,37 @@ func (ec *executionContext) _ImagingStudySeriesPerformer_modifierExtension(ctx c if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Coding) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudySeriesPerformer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeriesInstance_sopClass(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ImagingStudySeriesPerformer", + Object: "ImagingStudySeriesInstance", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "userSelected": + return ec.fieldContext_Coding_userSelected(ctx, field) + case "version": + return ec.fieldContext_Coding_version(ctx, field) + case "code": + return ec.fieldContext_Coding_code(ctx, field) + case "display": + return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Coding_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, } return fc, nil @@ -91876,11 +91848,14 @@ func (ec *executionContext) _ImagingStudySeriesPerformer_actor(ctx context.Conte return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ImagingStudySeriesPerformerActorUnion) + res := resTmp.(model.ImagingStudySeriesPerformerActorUnion) fc.Result = res - return ec.marshalOImagingStudySeriesPerformerActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerActorUnion(ctx, field.Selections, res) + return ec.marshalNImagingStudySeriesPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerActorUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ImagingStudySeriesPerformer_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -91943,120 +91918,120 @@ func (ec *executionContext) fieldContext_ImagingStudySeriesPerformer_extension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -92100,6 +92075,8 @@ func (ec *executionContext) fieldContext_ImagingStudySeriesPerformer_function(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -92108,8 +92085,6 @@ func (ec *executionContext) fieldContext_ImagingStudySeriesPerformer_function(_ return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -92158,8 +92133,8 @@ func (ec *executionContext) fieldContext_ImagingStudySeriesPerformer_id(_ contex return fc, nil } -func (ec *executionContext) _ImagingStudyType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_partOf(ctx, field) +func (ec *executionContext) _ImagingStudySeriesPerformer_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesPerformer_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -92172,7 +92147,7 @@ func (ec *executionContext) _ImagingStudyType_partOf(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PartOf, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -92181,119 +92156,142 @@ func (ec *executionContext) _ImagingStudyType_partOf(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ProcedureType) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOProcedureType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudySeriesPerformer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ImagingStudyType", + Object: "ImagingStudySeriesPerformer", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "resourceType": - return ec.fieldContext_ProcedureType_resourceType(ctx, field) - case "recorder": - return ec.fieldContext_ProcedureType_recorder(ctx, field) - case "occurrenceTiming": - return ec.fieldContext_ProcedureType_occurrenceTiming(ctx, field) - case "occurrenceString": - return ec.fieldContext_ProcedureType_occurrenceString(ctx, field) - case "outcome": - return ec.fieldContext_ProcedureType_outcome(ctx, field) - case "reason": - return ec.fieldContext_ProcedureType_reason(ctx, field) - case "reportedReference": - return ec.fieldContext_ProcedureType_reportedReference(ctx, field) - case "occurrencePeriod": - return ec.fieldContext_ProcedureType_occurrencePeriod(ctx, field) - case "reportedBoolean": - return ec.fieldContext_ProcedureType_reportedBoolean(ctx, field) - case "extension": - return ec.fieldContext_ProcedureType_extension(ctx, field) - case "report": - return ec.fieldContext_ProcedureType_report(ctx, field) - case "code": - return ec.fieldContext_ProcedureType_code(ctx, field) - case "category": - return ec.fieldContext_ProcedureType_category(ctx, field) - case "used": - return ec.fieldContext_ProcedureType_used(ctx, field) - case "recorded": - return ec.fieldContext_ProcedureType_recorded(ctx, field) - case "partOf": - return ec.fieldContext_ProcedureType_partOf(ctx, field) - case "statusReason": - return ec.fieldContext_ProcedureType_statusReason(ctx, field) - case "modifierExtension": - return ec.fieldContext_ProcedureType_modifierExtension(ctx, field) - case "occurrenceRange": - return ec.fieldContext_ProcedureType_occurrenceRange(ctx, field) - case "followUp": - return ec.fieldContext_ProcedureType_followUp(ctx, field) - case "occurrenceAge": - return ec.fieldContext_ProcedureType_occurrenceAge(ctx, field) - case "bodySite": - return ec.fieldContext_ProcedureType_bodySite(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_ProcedureType_id(ctx, field) - case "focalDevice": - return ec.fieldContext_ProcedureType_focalDevice(ctx, field) - case "text": - return ec.fieldContext_ProcedureType_text(ctx, field) - case "meta": - return ec.fieldContext_ProcedureType_meta(ctx, field) - case "supportingInfo": - return ec.fieldContext_ProcedureType_supportingInfo(ctx, field) - case "language": - return ec.fieldContext_ProcedureType_language(ctx, field) - case "note": - return ec.fieldContext_ProcedureType_note(ctx, field) - case "status": - return ec.fieldContext_ProcedureType_status(ctx, field) - case "implicitRules": - return ec.fieldContext_ProcedureType_implicitRules(ctx, field) - case "contained": - return ec.fieldContext_ProcedureType_contained(ctx, field) - case "performer": - return ec.fieldContext_ProcedureType_performer(ctx, field) - case "instantiatesCanonical": - return ec.fieldContext_ProcedureType_instantiatesCanonical(ctx, field) - case "complication": - return ec.fieldContext_ProcedureType_complication(ctx, field) - case "occurrenceDateTime": - return ec.fieldContext_ProcedureType_occurrenceDateTime(ctx, field) - case "identifier": - return ec.fieldContext_ProcedureType_identifier(ctx, field) - case "instantiatesUri": - return ec.fieldContext_ProcedureType_instantiatesUri(ctx, field) - case "subject": - return ec.fieldContext_ProcedureType_subject(ctx, field) - case "focus": - return ec.fieldContext_ProcedureType_focus(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProcedureType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ImagingStudyType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ImagingStudyType_text(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_text(ctx, field) +func (ec *executionContext) _ImagingStudyType_description(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_description(ctx, field) if err != nil { return graphql.Null } @@ -92306,7 +92304,7 @@ func (ec *executionContext) _ImagingStudyType_text(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -92315,38 +92313,26 @@ func (ec *executionContext) _ImagingStudyType_text(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ImagingStudyType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_meta(ctx, field) +func (ec *executionContext) _ImagingStudyType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -92359,7 +92345,7 @@ func (ec *executionContext) _ImagingStudyType_meta(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -92368,12 +92354,12 @@ func (ec *executionContext) _ImagingStudyType_meta(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -92381,33 +92367,33 @@ func (ec *executionContext) fieldContext_ImagingStudyType_meta(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImagingStudyType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_extension(ctx, field) +func (ec *executionContext) _ImagingStudyType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_contained(ctx, field) if err != nil { return graphql.Null } @@ -92420,7 +92406,7 @@ func (ec *executionContext) _ImagingStudyType_extension(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -92429,142 +92415,26 @@ func (ec *executionContext) _ImagingStudyType_extension(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ImagingStudyType_language(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_language(ctx, field) +func (ec *executionContext) _ImagingStudyType_id(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_id(ctx, field) if err != nil { return graphql.Null } @@ -92577,7 +92447,7 @@ func (ec *executionContext) _ImagingStudyType_language(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -92591,7 +92461,7 @@ func (ec *executionContext) _ImagingStudyType_language(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -92604,8 +92474,8 @@ func (ec *executionContext) fieldContext_ImagingStudyType_language(_ context.Con return fc, nil } -func (ec *executionContext) _ImagingStudyType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_basedOn(ctx, field) +func (ec *executionContext) _ImagingStudyType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_subject(ctx, field) if err != nil { return graphql.Null } @@ -92618,28 +92488,31 @@ func (ec *executionContext) _ImagingStudyType_basedOn(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BasedOn, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ImagingStudyBasedOnUnion) + res := resTmp.(model.ImagingStudySubjectUnion) fc.Result = res - return ec.marshalOImagingStudyBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyBasedOnUnion(ctx, field.Selections, res) + return ec.marshalNImagingStudySubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySubjectUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ImagingStudyBasedOnUnion does not have child fields") + return nil, errors.New("field of type ImagingStudySubjectUnion does not have child fields") }, } defer func() { @@ -92649,15 +92522,15 @@ func (ec *executionContext) fieldContext_ImagingStudyType_basedOn(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ImagingStudyType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ImagingStudyType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ImagingStudyType_numberOfInstances(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_numberOfInstances(ctx, field) +func (ec *executionContext) _ImagingStudyType_status(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_status(ctx, field) if err != nil { return graphql.Null } @@ -92670,7 +92543,7 @@ func (ec *executionContext) _ImagingStudyType_numberOfInstances(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NumberOfInstances, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -92684,7 +92557,7 @@ func (ec *executionContext) _ImagingStudyType_numberOfInstances(ctx context.Cont return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_numberOfInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -92697,8 +92570,8 @@ func (ec *executionContext) fieldContext_ImagingStudyType_numberOfInstances(_ co return fc, nil } -func (ec *executionContext) _ImagingStudyType_procedure(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_procedure(ctx, field) +func (ec *executionContext) _ImagingStudyType_text(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_text(ctx, field) if err != nil { return graphql.Null } @@ -92711,7 +92584,7 @@ func (ec *executionContext) _ImagingStudyType_procedure(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedure, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -92720,12 +92593,12 @@ func (ec *executionContext) _ImagingStudyType_procedure(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -92734,22 +92607,24 @@ func (ec *executionContext) fieldContext_ImagingStudyType_procedure(_ context.Co Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImagingStudyType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_identifier(ctx, field) +func (ec *executionContext) _ImagingStudyType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_meta(ctx, field) if err != nil { return graphql.Null } @@ -92762,7 +92637,7 @@ func (ec *executionContext) _ImagingStudyType_identifier(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -92771,12 +92646,12 @@ func (ec *executionContext) _ImagingStudyType_identifier(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -92784,74 +92659,33 @@ func (ec *executionContext) fieldContext_ImagingStudyType_identifier(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ImagingStudyType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_implicitRules(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ImagingStudyType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ImagingStudyType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImagingStudyType_referrer(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_referrer(ctx, field) +func (ec *executionContext) _ImagingStudyType_series(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_series(ctx, field) if err != nil { return graphql.Null } @@ -92864,7 +92698,7 @@ func (ec *executionContext) _ImagingStudyType_referrer(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Referrer, nil + return obj.Series, nil }) if err != nil { ec.Error(ctx, err) @@ -92873,37 +92707,58 @@ func (ec *executionContext) _ImagingStudyType_referrer(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ImagingStudyReferrerUnion) + res := resTmp.([]*model.ImagingStudySeries) fc.Result = res - return ec.marshalOImagingStudyReferrerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyReferrerUnion(ctx, field.Selections, res) + return ec.marshalOImagingStudySeries2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeries(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_referrer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_series(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ImagingStudyReferrerUnion does not have child fields") + switch field.Name { + case "laterality": + return ec.fieldContext_ImagingStudySeries_laterality(ctx, field) + case "uid": + return ec.fieldContext_ImagingStudySeries_uid(ctx, field) + case "description": + return ec.fieldContext_ImagingStudySeries_description(ctx, field) + case "id": + return ec.fieldContext_ImagingStudySeries_id(ctx, field) + case "instance": + return ec.fieldContext_ImagingStudySeries_instance(ctx, field) + case "modality": + return ec.fieldContext_ImagingStudySeries_modality(ctx, field) + case "performer": + return ec.fieldContext_ImagingStudySeries_performer(ctx, field) + case "resourceType": + return ec.fieldContext_ImagingStudySeries_resourceType(ctx, field) + case "started": + return ec.fieldContext_ImagingStudySeries_started(ctx, field) + case "extension": + return ec.fieldContext_ImagingStudySeries_extension(ctx, field) + case "modifierExtension": + return ec.fieldContext_ImagingStudySeries_modifierExtension(ctx, field) + case "numberOfInstances": + return ec.fieldContext_ImagingStudySeries_numberOfInstances(ctx, field) + case "bodySite": + return ec.fieldContext_ImagingStudySeries_bodySite(ctx, field) + case "number": + return ec.fieldContext_ImagingStudySeries_number(ctx, field) + case "specimen": + return ec.fieldContext_ImagingStudySeries_specimen(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ImagingStudySeries", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ImagingStudyType_referrer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ImagingStudyType_modality(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_modality(ctx, field) +func (ec *executionContext) _ImagingStudyType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_extension(ctx, field) if err != nil { return graphql.Null } @@ -92916,7 +92771,7 @@ func (ec *executionContext) _ImagingStudyType_modality(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Modality, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -92925,12 +92780,12 @@ func (ec *executionContext) _ImagingStudyType_modality(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_modality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -92938,44 +92793,148 @@ func (ec *executionContext) fieldContext_ImagingStudyType_modality(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ImagingStudyType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ImagingStudyType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_implicitRules(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ImplicitRules, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { return graphql.Null } res := resTmp.(*string) @@ -92983,7 +92942,7 @@ func (ec *executionContext) _ImagingStudyType_resourceType(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -92996,8 +92955,8 @@ func (ec *executionContext) fieldContext_ImagingStudyType_resourceType(_ context return fc, nil } -func (ec *executionContext) _ImagingStudyType_note(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_note(ctx, field) +func (ec *executionContext) _ImagingStudyType_reason(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_reason(ctx, field) if err != nil { return graphql.Null } @@ -93010,7 +92969,7 @@ func (ec *executionContext) _ImagingStudyType_note(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -93019,37 +92978,130 @@ func (ec *executionContext) _ImagingStudyType_note(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ImagingStudyNoteUnion) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOImagingStudyNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyNoteUnion(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ImagingStudyNoteUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _ImagingStudyType_modality(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_modality(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Modality, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ImagingStudyType_modality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImagingStudyType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ImagingStudyType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_resourceType(ctx, field) + if err != nil { + return graphql.Null + } ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ImagingStudyType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ImagingStudyType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImagingStudyType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } -func (ec *executionContext) _ImagingStudyType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_contained(ctx, field) +func (ec *executionContext) _ImagingStudyType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_partOf(ctx, field) if err != nil { return graphql.Null } @@ -93062,30 +93114,126 @@ func (ec *executionContext) _ImagingStudyType_contained(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.PartOf, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*model.ProcedureType) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalNProcedureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "recorder": + return ec.fieldContext_ProcedureType_recorder(ctx, field) + case "report": + return ec.fieldContext_ProcedureType_report(ctx, field) + case "implicitRules": + return ec.fieldContext_ProcedureType_implicitRules(ctx, field) + case "meta": + return ec.fieldContext_ProcedureType_meta(ctx, field) + case "note": + return ec.fieldContext_ProcedureType_note(ctx, field) + case "bodySite": + return ec.fieldContext_ProcedureType_bodySite(ctx, field) + case "instantiatesUri": + return ec.fieldContext_ProcedureType_instantiatesUri(ctx, field) + case "occurrenceTiming": + return ec.fieldContext_ProcedureType_occurrenceTiming(ctx, field) + case "occurrenceAge": + return ec.fieldContext_ProcedureType_occurrenceAge(ctx, field) + case "occurrenceDateTime": + return ec.fieldContext_ProcedureType_occurrenceDateTime(ctx, field) + case "reportedBoolean": + return ec.fieldContext_ProcedureType_reportedBoolean(ctx, field) + case "subject": + return ec.fieldContext_ProcedureType_subject(ctx, field) + case "occurrenceRange": + return ec.fieldContext_ProcedureType_occurrenceRange(ctx, field) + case "modifierExtension": + return ec.fieldContext_ProcedureType_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_ProcedureType_resourceType(ctx, field) + case "contained": + return ec.fieldContext_ProcedureType_contained(ctx, field) + case "text": + return ec.fieldContext_ProcedureType_text(ctx, field) + case "status": + return ec.fieldContext_ProcedureType_status(ctx, field) + case "reportedReference": + return ec.fieldContext_ProcedureType_reportedReference(ctx, field) + case "reason": + return ec.fieldContext_ProcedureType_reason(ctx, field) + case "outcome": + return ec.fieldContext_ProcedureType_outcome(ctx, field) + case "partOf": + return ec.fieldContext_ProcedureType_partOf(ctx, field) + case "used": + return ec.fieldContext_ProcedureType_used(ctx, field) + case "code": + return ec.fieldContext_ProcedureType_code(ctx, field) + case "identifier": + return ec.fieldContext_ProcedureType_identifier(ctx, field) + case "category": + return ec.fieldContext_ProcedureType_category(ctx, field) + case "supportingInfo": + return ec.fieldContext_ProcedureType_supportingInfo(ctx, field) + case "language": + return ec.fieldContext_ProcedureType_language(ctx, field) + case "focalDevice": + return ec.fieldContext_ProcedureType_focalDevice(ctx, field) + case "id": + return ec.fieldContext_ProcedureType_id(ctx, field) + case "occurrenceString": + return ec.fieldContext_ProcedureType_occurrenceString(ctx, field) + case "recorded": + return ec.fieldContext_ProcedureType_recorded(ctx, field) + case "performer": + return ec.fieldContext_ProcedureType_performer(ctx, field) + case "statusReason": + return ec.fieldContext_ProcedureType_statusReason(ctx, field) + case "followUp": + return ec.fieldContext_ProcedureType_followUp(ctx, field) + case "complication": + return ec.fieldContext_ProcedureType_complication(ctx, field) + case "extension": + return ec.fieldContext_ProcedureType_extension(ctx, field) + case "focus": + return ec.fieldContext_ProcedureType_focus(ctx, field) + case "occurrencePeriod": + return ec.fieldContext_ProcedureType_occurrencePeriod(ctx, field) + case "instantiatesCanonical": + return ec.fieldContext_ProcedureType_instantiatesCanonical(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ImagingStudyType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } @@ -93125,120 +93273,120 @@ func (ec *executionContext) fieldContext_ImagingStudyType_modifierExtension(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -93246,8 +93394,8 @@ func (ec *executionContext) fieldContext_ImagingStudyType_modifierExtension(_ co return fc, nil } -func (ec *executionContext) _ImagingStudyType_series(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_series(ctx, field) +func (ec *executionContext) _ImagingStudyType_referrer(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_referrer(ctx, field) if err != nil { return graphql.Null } @@ -93260,67 +93408,49 @@ func (ec *executionContext) _ImagingStudyType_series(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Series, nil + return obj.Referrer, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.ImagingStudySeries) + res := resTmp.(model.ImagingStudyReferrerUnion) fc.Result = res - return ec.marshalOImagingStudySeries2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeries(ctx, field.Selections, res) + return ec.marshalNImagingStudyReferrerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyReferrerUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_series(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_referrer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "bodySite": - return ec.fieldContext_ImagingStudySeries_bodySite(ctx, field) - case "resourceType": - return ec.fieldContext_ImagingStudySeries_resourceType(ctx, field) - case "id": - return ec.fieldContext_ImagingStudySeries_id(ctx, field) - case "started": - return ec.fieldContext_ImagingStudySeries_started(ctx, field) - case "extension": - return ec.fieldContext_ImagingStudySeries_extension(ctx, field) - case "numberOfInstances": - return ec.fieldContext_ImagingStudySeries_numberOfInstances(ctx, field) - case "uid": - return ec.fieldContext_ImagingStudySeries_uid(ctx, field) - case "laterality": - return ec.fieldContext_ImagingStudySeries_laterality(ctx, field) - case "modality": - return ec.fieldContext_ImagingStudySeries_modality(ctx, field) - case "performer": - return ec.fieldContext_ImagingStudySeries_performer(ctx, field) - case "modifierExtension": - return ec.fieldContext_ImagingStudySeries_modifierExtension(ctx, field) - case "description": - return ec.fieldContext_ImagingStudySeries_description(ctx, field) - case "number": - return ec.fieldContext_ImagingStudySeries_number(ctx, field) - case "instance": - return ec.fieldContext_ImagingStudySeries_instance(ctx, field) - case "specimen": - return ec.fieldContext_ImagingStudySeries_specimen(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ImagingStudySeries", field.Name) + return nil, errors.New("field of type ImagingStudyReferrerUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ImagingStudyType_referrer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ImagingStudyType_reason(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_reason(ctx, field) +func (ec *executionContext) _ImagingStudyType_procedure(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_procedure(ctx, field) if err != nil { return graphql.Null } @@ -93333,7 +93463,7 @@ func (ec *executionContext) _ImagingStudyType_reason(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.Procedure, nil }) if err != nil { ec.Error(ctx, err) @@ -93347,7 +93477,7 @@ func (ec *executionContext) _ImagingStudyType_reason(ctx context.Context, field return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -93355,14 +93485,14 @@ func (ec *executionContext) fieldContext_ImagingStudyType_reason(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) case "resourceType": return ec.fieldContext_CodeableReference_resourceType(ctx, field) case "concept": return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, @@ -93411,8 +93541,8 @@ func (ec *executionContext) fieldContext_ImagingStudyType_started(_ context.Cont return fc, nil } -func (ec *executionContext) _ImagingStudyType_status(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_status(ctx, field) +func (ec *executionContext) _ImagingStudyType_numberOfSeries(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_numberOfSeries(ctx, field) if err != nil { return graphql.Null } @@ -93425,7 +93555,7 @@ func (ec *executionContext) _ImagingStudyType_status(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.NumberOfSeries, nil }) if err != nil { ec.Error(ctx, err) @@ -93439,7 +93569,7 @@ func (ec *executionContext) _ImagingStudyType_status(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_numberOfSeries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -93452,8 +93582,8 @@ func (ec *executionContext) fieldContext_ImagingStudyType_status(_ context.Conte return fc, nil } -func (ec *executionContext) _ImagingStudyType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_subject(ctx, field) +func (ec *executionContext) _ImagingStudyType_note(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_note(ctx, field) if err != nil { return graphql.Null } @@ -93466,28 +93596,31 @@ func (ec *executionContext) _ImagingStudyType_subject(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ImagingStudySubjectUnion) + res := resTmp.(model.ImagingStudyNoteUnion) fc.Result = res - return ec.marshalOImagingStudySubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySubjectUnion(ctx, field.Selections, res) + return ec.marshalNImagingStudyNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ImagingStudySubjectUnion does not have child fields") + return nil, errors.New("field of type ImagingStudyNoteUnion does not have child fields") }, } defer func() { @@ -93497,15 +93630,15 @@ func (ec *executionContext) fieldContext_ImagingStudyType_subject(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ImagingStudyType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ImagingStudyType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ImagingStudyType_description(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_description(ctx, field) +func (ec *executionContext) _ImagingStudyType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_basedOn(ctx, field) if err != nil { return graphql.Null } @@ -93518,35 +93651,49 @@ func (ec *executionContext) _ImagingStudyType_description(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.BasedOn, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ImagingStudyBasedOnUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNImagingStudyBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyBasedOnUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ImagingStudyBasedOnUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ImagingStudyType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ImagingStudyType_id(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_id(ctx, field) +func (ec *executionContext) _ImagingStudyType_language(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_language(ctx, field) if err != nil { return graphql.Null } @@ -93559,7 +93706,7 @@ func (ec *executionContext) _ImagingStudyType_id(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -93573,7 +93720,7 @@ func (ec *executionContext) _ImagingStudyType_id(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -93586,8 +93733,8 @@ func (ec *executionContext) fieldContext_ImagingStudyType_id(_ context.Context, return fc, nil } -func (ec *executionContext) _ImagingStudyType_numberOfSeries(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImagingStudyType_numberOfSeries(ctx, field) +func (ec *executionContext) _ImagingStudyType_numberOfInstances(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_numberOfInstances(ctx, field) if err != nil { return graphql.Null } @@ -93600,7 +93747,7 @@ func (ec *executionContext) _ImagingStudyType_numberOfSeries(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NumberOfSeries, nil + return obj.NumberOfInstances, nil }) if err != nil { ec.Error(ctx, err) @@ -93614,7 +93761,7 @@ func (ec *executionContext) _ImagingStudyType_numberOfSeries(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImagingStudyType_numberOfSeries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImagingStudyType_numberOfInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImagingStudyType", Field: field, @@ -93627,8 +93774,8 @@ func (ec *executionContext) fieldContext_ImagingStudyType_numberOfSeries(_ conte return fc, nil } -func (ec *executionContext) _Immunization_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_statusReason(ctx, field) +func (ec *executionContext) _Immunization_reaction(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_reaction(ctx, field) if err != nil { return graphql.Null } @@ -93641,7 +93788,7 @@ func (ec *executionContext) _Immunization_statusReason(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StatusReason, nil + return obj.Reaction, nil }) if err != nil { ec.Error(ctx, err) @@ -93650,12 +93797,12 @@ func (ec *executionContext) _Immunization_statusReason(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.ImmunizationReaction) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOImmunizationReaction2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_reaction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -93663,25 +93810,29 @@ func (ec *executionContext) fieldContext_Immunization_statusReason(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_ImmunizationReaction_id(ctx, field) + case "manifestation": + return ec.fieldContext_ImmunizationReaction_manifestation(ctx, field) + case "modifierExtension": + return ec.fieldContext_ImmunizationReaction_modifierExtension(ctx, field) + case "reported": + return ec.fieldContext_ImmunizationReaction_reported(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_ImmunizationReaction_resourceType(ctx, field) + case "date": + return ec.fieldContext_ImmunizationReaction_date(ctx, field) + case "extension": + return ec.fieldContext_ImmunizationReaction_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ImmunizationReaction", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_administeredProduct(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_administeredProduct(ctx, field) +func (ec *executionContext) _Immunization_note(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_note(ctx, field) if err != nil { return graphql.Null } @@ -93694,7 +93845,7 @@ func (ec *executionContext) _Immunization_administeredProduct(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AdministeredProduct, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) @@ -93703,12 +93854,12 @@ func (ec *executionContext) _Immunization_administeredProduct(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.([]*model.Annotation) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOAnnotation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotation(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_administeredProduct(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_note(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -93716,23 +93867,29 @@ func (ec *executionContext) fieldContext_Immunization_administeredProduct(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_Annotation_resourceType(ctx, field) + case "text": + return ec.fieldContext_Annotation_text(ctx, field) + case "time": + return ec.fieldContext_Annotation_time(ctx, field) + case "authorReference": + return ec.fieldContext_Annotation_authorReference(ctx, field) + case "authorString": + return ec.fieldContext_Annotation_authorString(ctx, field) case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_Annotation_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_Annotation_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Annotation", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_doseQuantity(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_doseQuantity(ctx, field) +func (ec *executionContext) _Immunization_programEligibility(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_programEligibility(ctx, field) if err != nil { return graphql.Null } @@ -93745,7 +93902,7 @@ func (ec *executionContext) _Immunization_doseQuantity(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DoseQuantity, nil + return obj.ProgramEligibility, nil }) if err != nil { ec.Error(ctx, err) @@ -93754,12 +93911,12 @@ func (ec *executionContext) _Immunization_doseQuantity(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.([]*model.ImmunizationProgramEligibility) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOImmunizationProgramEligibility2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProgramEligibility(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_doseQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_programEligibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -93767,31 +93924,27 @@ func (ec *executionContext) fieldContext_Immunization_doseQuantity(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) + return ec.fieldContext_ImmunizationProgramEligibility_extension(ctx, field) case "id": - return ec.fieldContext_Quantity_id(ctx, field) + return ec.fieldContext_ImmunizationProgramEligibility_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ImmunizationProgramEligibility_modifierExtension(ctx, field) + case "program": + return ec.fieldContext_ImmunizationProgramEligibility_program(ctx, field) + case "programStatus": + return ec.fieldContext_ImmunizationProgramEligibility_programStatus(ctx, field) case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_ImmunizationProgramEligibility_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ImmunizationProgramEligibility", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_lotNumber(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_lotNumber(ctx, field) +func (ec *executionContext) _Immunization_occurrenceDateTime(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_occurrenceDateTime(ctx, field) if err != nil { return graphql.Null } @@ -93804,7 +93957,7 @@ func (ec *executionContext) _Immunization_lotNumber(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LotNumber, nil + return obj.OccurrenceDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -93818,7 +93971,7 @@ func (ec *executionContext) _Immunization_lotNumber(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_lotNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_occurrenceDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -93831,8 +93984,8 @@ func (ec *executionContext) fieldContext_Immunization_lotNumber(_ context.Contex return fc, nil } -func (ec *executionContext) _Immunization_status(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_status(ctx, field) +func (ec *executionContext) _Immunization_vaccineCode(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_vaccineCode(ctx, field) if err != nil { return graphql.Null } @@ -93845,7 +93998,7 @@ func (ec *executionContext) _Immunization_status(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.VaccineCode, nil }) if err != nil { ec.Error(ctx, err) @@ -93854,26 +94007,38 @@ func (ec *executionContext) _Immunization_status(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_vaccineCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_manufacturer(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_manufacturer(ctx, field) +func (ec *executionContext) _Immunization_language(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_language(ctx, field) if err != nil { return graphql.Null } @@ -93886,7 +94051,7 @@ func (ec *executionContext) _Immunization_manufacturer(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Manufacturer, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -93895,36 +94060,26 @@ func (ec *executionContext) _Immunization_manufacturer(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_manufacturer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Immunization_extension(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_extension(ctx, field) +func (ec *executionContext) _Immunization_contained(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_contained(ctx, field) if err != nil { return graphql.Null } @@ -93937,7 +94092,7 @@ func (ec *executionContext) _Immunization_extension(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -93946,142 +94101,26 @@ func (ec *executionContext) _Immunization_extension(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Immunization_expirationDate(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_expirationDate(ctx, field) +func (ec *executionContext) _Immunization_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_statusReason(ctx, field) if err != nil { return graphql.Null } @@ -94094,7 +94133,7 @@ func (ec *executionContext) _Immunization_expirationDate(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExpirationDate, nil + return obj.StatusReason, nil }) if err != nil { ec.Error(ctx, err) @@ -94103,26 +94142,38 @@ func (ec *executionContext) _Immunization_expirationDate(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_expirationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_identifier(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_identifier(ctx, field) +func (ec *executionContext) _Immunization_text(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_text(ctx, field) if err != nil { return graphql.Null } @@ -94135,7 +94186,7 @@ func (ec *executionContext) _Immunization_identifier(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -94144,12 +94195,12 @@ func (ec *executionContext) _Immunization_identifier(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94157,33 +94208,25 @@ func (ec *executionContext) fieldContext_Immunization_identifier(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_note(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_note(ctx, field) +func (ec *executionContext) _Immunization_reason(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_reason(ctx, field) if err != nil { return graphql.Null } @@ -94196,7 +94239,7 @@ func (ec *executionContext) _Immunization_note(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -94205,12 +94248,12 @@ func (ec *executionContext) _Immunization_note(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Annotation) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOAnnotation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotation(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_note(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94218,29 +94261,23 @@ func (ec *executionContext) fieldContext_Immunization_note(_ context.Context, fi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "authorString": - return ec.fieldContext_Annotation_authorString(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_Annotation_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_Annotation_id(ctx, field) - case "resourceType": - return ec.fieldContext_Annotation_resourceType(ctx, field) - case "text": - return ec.fieldContext_Annotation_text(ctx, field) - case "time": - return ec.fieldContext_Annotation_time(ctx, field) - case "authorReference": - return ec.fieldContext_Annotation_authorReference(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Annotation", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_reaction(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_reaction(ctx, field) +func (ec *executionContext) _Immunization_performer(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_performer(ctx, field) if err != nil { return graphql.Null } @@ -94253,7 +94290,7 @@ func (ec *executionContext) _Immunization_reaction(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reaction, nil + return obj.Performer, nil }) if err != nil { ec.Error(ctx, err) @@ -94262,12 +94299,12 @@ func (ec *executionContext) _Immunization_reaction(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ImmunizationReaction) + res := resTmp.([]*model.ImmunizationPerformer) fc.Result = res - return ec.marshalOImmunizationReaction2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx, field.Selections, res) + return ec.marshalOImmunizationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_reaction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_performer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94275,29 +94312,25 @@ func (ec *executionContext) fieldContext_Immunization_reaction(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "manifestation": - return ec.fieldContext_ImmunizationReaction_manifestation(ctx, field) - case "modifierExtension": - return ec.fieldContext_ImmunizationReaction_modifierExtension(ctx, field) - case "reported": - return ec.fieldContext_ImmunizationReaction_reported(ctx, field) case "resourceType": - return ec.fieldContext_ImmunizationReaction_resourceType(ctx, field) - case "date": - return ec.fieldContext_ImmunizationReaction_date(ctx, field) + return ec.fieldContext_ImmunizationPerformer_resourceType(ctx, field) case "extension": - return ec.fieldContext_ImmunizationReaction_extension(ctx, field) + return ec.fieldContext_ImmunizationPerformer_extension(ctx, field) + case "function": + return ec.fieldContext_ImmunizationPerformer_function(ctx, field) case "id": - return ec.fieldContext_ImmunizationReaction_id(ctx, field) + return ec.fieldContext_ImmunizationPerformer_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ImmunizationPerformer_modifierExtension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ImmunizationReaction", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ImmunizationPerformer", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_protocolApplied(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_protocolApplied(ctx, field) +func (ec *executionContext) _Immunization_meta(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_meta(ctx, field) if err != nil { return graphql.Null } @@ -94310,7 +94343,7 @@ func (ec *executionContext) _Immunization_protocolApplied(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProtocolApplied, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -94319,12 +94352,12 @@ func (ec *executionContext) _Immunization_protocolApplied(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ImmunizationProtocolApplied) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOImmunizationProtocolApplied2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProtocolApplied(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_protocolApplied(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94332,31 +94365,33 @@ func (ec *executionContext) fieldContext_Immunization_protocolApplied(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "seriesDoses": - return ec.fieldContext_ImmunizationProtocolApplied_seriesDoses(ctx, field) - case "targetDisease": - return ec.fieldContext_ImmunizationProtocolApplied_targetDisease(ctx, field) - case "doseNumber": - return ec.fieldContext_ImmunizationProtocolApplied_doseNumber(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_ImmunizationProtocolApplied_extension(ctx, field) - case "id": - return ec.fieldContext_ImmunizationProtocolApplied_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ImmunizationProtocolApplied_modifierExtension(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_ImmunizationProtocolApplied_resourceType(ctx, field) - case "series": - return ec.fieldContext_ImmunizationProtocolApplied_series(ctx, field) + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ImmunizationProtocolApplied", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_site(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_site(ctx, field) +func (ec *executionContext) _Immunization_protocolApplied(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_protocolApplied(ctx, field) if err != nil { return graphql.Null } @@ -94369,7 +94404,7 @@ func (ec *executionContext) _Immunization_site(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Site, nil + return obj.ProtocolApplied, nil }) if err != nil { ec.Error(ctx, err) @@ -94378,12 +94413,12 @@ func (ec *executionContext) _Immunization_site(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.ImmunizationProtocolApplied) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOImmunizationProtocolApplied2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProtocolApplied(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_site(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_protocolApplied(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94391,66 +94426,31 @@ func (ec *executionContext) fieldContext_Immunization_site(_ context.Context, fi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "modifierExtension": + return ec.fieldContext_ImmunizationProtocolApplied_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_ImmunizationProtocolApplied_resourceType(ctx, field) + case "series": + return ec.fieldContext_ImmunizationProtocolApplied_series(ctx, field) + case "seriesDoses": + return ec.fieldContext_ImmunizationProtocolApplied_seriesDoses(ctx, field) + case "targetDisease": + return ec.fieldContext_ImmunizationProtocolApplied_targetDisease(ctx, field) + case "doseNumber": + return ec.fieldContext_ImmunizationProtocolApplied_doseNumber(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_ImmunizationProtocolApplied_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_ImmunizationProtocolApplied_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Immunization_occurrenceDateTime(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_occurrenceDateTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OccurrenceDateTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Immunization_occurrenceDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Immunization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type ImmunizationProtocolApplied", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_reason(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_reason(ctx, field) +func (ec *executionContext) _Immunization_administeredProduct(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_administeredProduct(ctx, field) if err != nil { return graphql.Null } @@ -94463,7 +94463,7 @@ func (ec *executionContext) _Immunization_reason(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.AdministeredProduct, nil }) if err != nil { ec.Error(ctx, err) @@ -94472,12 +94472,12 @@ func (ec *executionContext) _Immunization_reason(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_administeredProduct(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94485,14 +94485,14 @@ func (ec *executionContext) fieldContext_Immunization_reason(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) case "resourceType": return ec.fieldContext_CodeableReference_resourceType(ctx, field) case "concept": return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, @@ -94536,6 +94536,8 @@ func (ec *executionContext) fieldContext_Immunization_fundingSource(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -94544,8 +94546,6 @@ func (ec *executionContext) fieldContext_Immunization_fundingSource(_ context.Co return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -94553,8 +94553,8 @@ func (ec *executionContext) fieldContext_Immunization_fundingSource(_ context.Co return fc, nil } -func (ec *executionContext) _Immunization_meta(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_meta(ctx, field) +func (ec *executionContext) _Immunization_subpotentReason(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_subpotentReason(ctx, field) if err != nil { return graphql.Null } @@ -94567,7 +94567,7 @@ func (ec *executionContext) _Immunization_meta(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.SubpotentReason, nil }) if err != nil { ec.Error(ctx, err) @@ -94576,12 +94576,12 @@ func (ec *executionContext) _Immunization_meta(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_subpotentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94589,33 +94589,25 @@ func (ec *executionContext) fieldContext_Immunization_meta(_ context.Context, fi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_subpotentReason(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_subpotentReason(ctx, field) +func (ec *executionContext) _Immunization_manufacturer(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_manufacturer(ctx, field) if err != nil { return graphql.Null } @@ -94628,7 +94620,7 @@ func (ec *executionContext) _Immunization_subpotentReason(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubpotentReason, nil + return obj.Manufacturer, nil }) if err != nil { ec.Error(ctx, err) @@ -94637,12 +94629,12 @@ func (ec *executionContext) _Immunization_subpotentReason(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_subpotentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_manufacturer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94650,25 +94642,23 @@ func (ec *executionContext) fieldContext_Immunization_subpotentReason(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_resourceType(ctx, field) +func (ec *executionContext) _Immunization_occurrenceString(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_occurrenceString(ctx, field) if err != nil { return graphql.Null } @@ -94681,7 +94671,7 @@ func (ec *executionContext) _Immunization_resourceType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.OccurrenceString, nil }) if err != nil { ec.Error(ctx, err) @@ -94695,7 +94685,7 @@ func (ec *executionContext) _Immunization_resourceType(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_occurrenceString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94708,8 +94698,8 @@ func (ec *executionContext) fieldContext_Immunization_resourceType(_ context.Con return fc, nil } -func (ec *executionContext) _Immunization_vaccineCode(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_vaccineCode(ctx, field) +func (ec *executionContext) _Immunization_doseQuantity(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_doseQuantity(ctx, field) if err != nil { return graphql.Null } @@ -94722,7 +94712,7 @@ func (ec *executionContext) _Immunization_vaccineCode(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VaccineCode, nil + return obj.DoseQuantity, nil }) if err != nil { ec.Error(ctx, err) @@ -94731,12 +94721,12 @@ func (ec *executionContext) _Immunization_vaccineCode(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_vaccineCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_doseQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94744,25 +94734,31 @@ func (ec *executionContext) fieldContext_Immunization_vaccineCode(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_text(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_text(ctx, field) +func (ec *executionContext) _Immunization_identifier(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_identifier(ctx, field) if err != nil { return graphql.Null } @@ -94775,7 +94771,7 @@ func (ec *executionContext) _Immunization_text(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -94784,12 +94780,12 @@ func (ec *executionContext) _Immunization_text(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94797,25 +94793,33 @@ func (ec *executionContext) fieldContext_Immunization_text(_ context.Context, fi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_implicitRules(ctx, field) +func (ec *executionContext) _Immunization_primarySource(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_primarySource(ctx, field) if err != nil { return graphql.Null } @@ -94828,7 +94832,7 @@ func (ec *executionContext) _Immunization_implicitRules(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.PrimarySource, nil }) if err != nil { ec.Error(ctx, err) @@ -94842,7 +94846,7 @@ func (ec *executionContext) _Immunization_implicitRules(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_primarySource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94891,14 +94895,14 @@ func (ec *executionContext) fieldContext_Immunization_informationSource(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) case "resourceType": return ec.fieldContext_CodeableReference_resourceType(ctx, field) case "concept": return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, @@ -94906,8 +94910,8 @@ func (ec *executionContext) fieldContext_Immunization_informationSource(_ contex return fc, nil } -func (ec *executionContext) _Immunization_occurrenceString(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_occurrenceString(ctx, field) +func (ec *executionContext) _Immunization_id(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_id(ctx, field) if err != nil { return graphql.Null } @@ -94920,7 +94924,7 @@ func (ec *executionContext) _Immunization_occurrenceString(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OccurrenceString, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -94934,7 +94938,7 @@ func (ec *executionContext) _Immunization_occurrenceString(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_occurrenceString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -94947,8 +94951,8 @@ func (ec *executionContext) fieldContext_Immunization_occurrenceString(_ context return fc, nil } -func (ec *executionContext) _Immunization_performer(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_performer(ctx, field) +func (ec *executionContext) _Immunization_isSubpotent(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_isSubpotent(ctx, field) if err != nil { return graphql.Null } @@ -94961,7 +94965,7 @@ func (ec *executionContext) _Immunization_performer(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Performer, nil + return obj.IsSubpotent, nil }) if err != nil { ec.Error(ctx, err) @@ -94970,38 +94974,26 @@ func (ec *executionContext) _Immunization_performer(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ImmunizationPerformer) + res := resTmp.(*string) fc.Result = res - return ec.marshalOImmunizationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_performer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_isSubpotent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "function": - return ec.fieldContext_ImmunizationPerformer_function(ctx, field) - case "id": - return ec.fieldContext_ImmunizationPerformer_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ImmunizationPerformer_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_ImmunizationPerformer_resourceType(ctx, field) - case "extension": - return ec.fieldContext_ImmunizationPerformer_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ImmunizationPerformer", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Immunization_programEligibility(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_programEligibility(ctx, field) +func (ec *executionContext) _Immunization_site(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_site(ctx, field) if err != nil { return graphql.Null } @@ -95014,7 +95006,7 @@ func (ec *executionContext) _Immunization_programEligibility(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramEligibility, nil + return obj.Site, nil }) if err != nil { ec.Error(ctx, err) @@ -95023,12 +95015,12 @@ func (ec *executionContext) _Immunization_programEligibility(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ImmunizationProgramEligibility) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOImmunizationProgramEligibility2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProgramEligibility(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_programEligibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_site(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -95036,27 +95028,25 @@ func (ec *executionContext) fieldContext_Immunization_programEligibility(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "programStatus": - return ec.fieldContext_ImmunizationProgramEligibility_programStatus(ctx, field) case "resourceType": - return ec.fieldContext_ImmunizationProgramEligibility_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_ImmunizationProgramEligibility_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_ImmunizationProgramEligibility_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ImmunizationProgramEligibility_modifierExtension(ctx, field) - case "program": - return ec.fieldContext_ImmunizationProgramEligibility_program(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ImmunizationProgramEligibility", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_route(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_route(ctx, field) +func (ec *executionContext) _Immunization_lotNumber(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_lotNumber(ctx, field) if err != nil { return graphql.Null } @@ -95069,7 +95059,7 @@ func (ec *executionContext) _Immunization_route(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Route, nil + return obj.LotNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -95078,38 +95068,26 @@ func (ec *executionContext) _Immunization_route(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_route(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_lotNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Immunization_contained(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_contained(ctx, field) +func (ec *executionContext) _Immunization_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -95122,7 +95100,7 @@ func (ec *executionContext) _Immunization_contained(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -95131,26 +95109,26 @@ func (ec *executionContext) _Immunization_contained(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Immunization_id(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_id(ctx, field) +func (ec *executionContext) _Immunization_extension(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_extension(ctx, field) if err != nil { return graphql.Null } @@ -95163,7 +95141,7 @@ func (ec *executionContext) _Immunization_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -95172,26 +95150,142 @@ func (ec *executionContext) _Immunization_id(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _Immunization_primarySource(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_primarySource(ctx, field) +func (ec *executionContext) _Immunization_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -95204,7 +95298,7 @@ func (ec *executionContext) _Immunization_primarySource(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PrimarySource, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -95218,7 +95312,7 @@ func (ec *executionContext) _Immunization_primarySource(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_primarySource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -95231,8 +95325,8 @@ func (ec *executionContext) fieldContext_Immunization_primarySource(_ context.Co return fc, nil } -func (ec *executionContext) _Immunization_isSubpotent(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_isSubpotent(ctx, field) +func (ec *executionContext) _Immunization_expirationDate(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_expirationDate(ctx, field) if err != nil { return graphql.Null } @@ -95245,7 +95339,7 @@ func (ec *executionContext) _Immunization_isSubpotent(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsSubpotent, nil + return obj.ExpirationDate, nil }) if err != nil { ec.Error(ctx, err) @@ -95259,7 +95353,7 @@ func (ec *executionContext) _Immunization_isSubpotent(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_isSubpotent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_expirationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, @@ -95272,8 +95366,8 @@ func (ec *executionContext) fieldContext_Immunization_isSubpotent(_ context.Cont return fc, nil } -func (ec *executionContext) _Immunization_language(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Immunization_language(ctx, field) +func (ec *executionContext) _Immunization_route(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_route(ctx, field) if err != nil { return graphql.Null } @@ -95286,7 +95380,7 @@ func (ec *executionContext) _Immunization_language(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Route, nil }) if err != nil { ec.Error(ctx, err) @@ -95295,19 +95389,31 @@ func (ec *executionContext) _Immunization_language(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Immunization_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_route(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -95349,120 +95455,120 @@ func (ec *executionContext) fieldContext_Immunization_modifierExtension(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -95470,8 +95576,8 @@ func (ec *executionContext) fieldContext_Immunization_modifierExtension(_ contex return fc, nil } -func (ec *executionContext) _ImmunizationPerformer_function(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationPerformer_function(ctx, field) +func (ec *executionContext) _Immunization_status(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_status(ctx, field) if err != nil { return graphql.Null } @@ -95484,7 +95590,7 @@ func (ec *executionContext) _ImmunizationPerformer_function(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Function, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -95493,38 +95599,26 @@ func (ec *executionContext) _ImmunizationPerformer_function(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationPerformer_function(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Immunization_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ImmunizationPerformer", + Object: "Immunization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ImmunizationPerformer_id(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationPerformer_id(ctx, field) +func (ec *executionContext) _ImmunizationPerformer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationPerformer_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -95537,7 +95631,7 @@ func (ec *executionContext) _ImmunizationPerformer_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -95551,7 +95645,7 @@ func (ec *executionContext) _ImmunizationPerformer_id(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationPerformer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationPerformer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImmunizationPerformer", Field: field, @@ -95564,8 +95658,8 @@ func (ec *executionContext) fieldContext_ImmunizationPerformer_id(_ context.Cont return fc, nil } -func (ec *executionContext) _ImmunizationPerformer_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationPerformer_modifierExtension(ctx, field) +func (ec *executionContext) _ImmunizationPerformer_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationPerformer_extension(ctx, field) if err != nil { return graphql.Null } @@ -95578,7 +95672,7 @@ func (ec *executionContext) _ImmunizationPerformer_modifierExtension(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -95592,7 +95686,7 @@ func (ec *executionContext) _ImmunizationPerformer_modifierExtension(ctx context return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationPerformer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationPerformer_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImmunizationPerformer", Field: field, @@ -95600,129 +95694,182 @@ func (ec *executionContext) fieldContext_ImmunizationPerformer_modifierExtension IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) case "valuePositiveInt": return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) case "valueTime": return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) case "valueDistance": return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ImmunizationPerformer_function(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationPerformer_function(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Function, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ImmunizationPerformer_function(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationPerformer", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImmunizationPerformer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationPerformer_resourceType(ctx, field) +func (ec *executionContext) _ImmunizationPerformer_id(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationPerformer_id(ctx, field) if err != nil { return graphql.Null } @@ -95735,7 +95882,7 @@ func (ec *executionContext) _ImmunizationPerformer_resourceType(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -95749,7 +95896,7 @@ func (ec *executionContext) _ImmunizationPerformer_resourceType(ctx context.Cont return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationPerformer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationPerformer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImmunizationPerformer", Field: field, @@ -95762,8 +95909,8 @@ func (ec *executionContext) fieldContext_ImmunizationPerformer_resourceType(_ co return fc, nil } -func (ec *executionContext) _ImmunizationPerformer_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationPerformer_extension(ctx, field) +func (ec *executionContext) _ImmunizationPerformer_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationPerformer_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -95776,7 +95923,7 @@ func (ec *executionContext) _ImmunizationPerformer_extension(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -95790,7 +95937,7 @@ func (ec *executionContext) _ImmunizationPerformer_extension(ctx context.Context return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationPerformer_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationPerformer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImmunizationPerformer", Field: field, @@ -95798,120 +95945,120 @@ func (ec *executionContext) fieldContext_ImmunizationPerformer_extension(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -95919,8 +96066,8 @@ func (ec *executionContext) fieldContext_ImmunizationPerformer_extension(_ conte return fc, nil } -func (ec *executionContext) _ImmunizationProgramEligibility_programStatus(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProgramEligibility_programStatus(ctx, field) +func (ec *executionContext) _ImmunizationProgramEligibility_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProgramEligibility_extension(ctx, field) if err != nil { return graphql.Null } @@ -95933,7 +96080,7 @@ func (ec *executionContext) _ImmunizationProgramEligibility_programStatus(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramStatus, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -95942,12 +96089,12 @@ func (ec *executionContext) _ImmunizationProgramEligibility_programStatus(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_programStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImmunizationProgramEligibility", Field: field, @@ -95955,25 +96102,129 @@ func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_programS IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImmunizationProgramEligibility_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProgramEligibility_resourceType(ctx, field) +func (ec *executionContext) _ImmunizationProgramEligibility_id(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProgramEligibility_id(ctx, field) if err != nil { return graphql.Null } @@ -95986,7 +96237,7 @@ func (ec *executionContext) _ImmunizationProgramEligibility_resourceType(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -96000,7 +96251,7 @@ func (ec *executionContext) _ImmunizationProgramEligibility_resourceType(ctx con return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImmunizationProgramEligibility", Field: field, @@ -96013,8 +96264,8 @@ func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_resource return fc, nil } -func (ec *executionContext) _ImmunizationProgramEligibility_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProgramEligibility_extension(ctx, field) +func (ec *executionContext) _ImmunizationProgramEligibility_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProgramEligibility_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -96027,7 +96278,7 @@ func (ec *executionContext) _ImmunizationProgramEligibility_extension(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -96041,7 +96292,7 @@ func (ec *executionContext) _ImmunizationProgramEligibility_extension(ctx contex return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImmunizationProgramEligibility", Field: field, @@ -96049,129 +96300,182 @@ func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_extensio IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) case "valuePositiveInt": return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) case "valueTime": return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) case "valueDistance": return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ImmunizationProgramEligibility_program(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProgramEligibility_program(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Program, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationProgramEligibility", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ImmunizationProgramEligibility_id(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProgramEligibility_id(ctx, field) +func (ec *executionContext) _ImmunizationProgramEligibility_programStatus(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProgramEligibility_programStatus(ctx, field) if err != nil { return graphql.Null } @@ -96184,7 +96488,60 @@ func (ec *executionContext) _ImmunizationProgramEligibility_id(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ProgramStatus, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_programStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationProgramEligibility", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ImmunizationProgramEligibility_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProgramEligibility_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -96198,7 +96555,7 @@ func (ec *executionContext) _ImmunizationProgramEligibility_id(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImmunizationProgramEligibility", Field: field, @@ -96211,8 +96568,8 @@ func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_id(_ con return fc, nil } -func (ec *executionContext) _ImmunizationProgramEligibility_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProgramEligibility_modifierExtension(ctx, field) +func (ec *executionContext) _ImmunizationProtocolApplied_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProtocolApplied_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -96239,128 +96596,128 @@ func (ec *executionContext) _ImmunizationProgramEligibility_modifierExtension(ct return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ImmunizationProgramEligibility", + Object: "ImmunizationProtocolApplied", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -96368,8 +96725,8 @@ func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_modifier return fc, nil } -func (ec *executionContext) _ImmunizationProgramEligibility_program(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProgramEligibility) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProgramEligibility_program(ctx, field) +func (ec *executionContext) _ImmunizationProtocolApplied_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProtocolApplied_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -96382,7 +96739,7 @@ func (ec *executionContext) _ImmunizationProgramEligibility_program(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Program, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -96391,31 +96748,60 @@ func (ec *executionContext) _ImmunizationProgramEligibility_program(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationProgramEligibility_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ImmunizationProgramEligibility", + Object: "ImmunizationProtocolApplied", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ImmunizationProtocolApplied_series(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProtocolApplied_series(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Series, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_series(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationProtocolApplied", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -96498,6 +96884,8 @@ func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_targetDisea IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -96506,8 +96894,6 @@ func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_targetDisea return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -96592,318 +96978,120 @@ func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_extension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) case "valueId": return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) case "valueUsageContext": return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ImmunizationProtocolApplied_id(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProtocolApplied_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ImmunizationProtocolApplied", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ImmunizationProtocolApplied_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProtocolApplied_modifierExtension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ImmunizationProtocolApplied", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) case "valueInteger": return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) case "valueUuid": return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -96911,8 +97099,8 @@ func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_modifierExt return fc, nil } -func (ec *executionContext) _ImmunizationProtocolApplied_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProtocolApplied_resourceType(ctx, field) +func (ec *executionContext) _ImmunizationProtocolApplied_id(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProtocolApplied_id(ctx, field) if err != nil { return graphql.Null } @@ -96925,7 +97113,7 @@ func (ec *executionContext) _ImmunizationProtocolApplied_resourceType(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -96939,7 +97127,7 @@ func (ec *executionContext) _ImmunizationProtocolApplied_resourceType(ctx contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ImmunizationProtocolApplied", Field: field, @@ -96952,8 +97140,8 @@ func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_resourceTyp return fc, nil } -func (ec *executionContext) _ImmunizationProtocolApplied_series(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationProtocolApplied_series(ctx, field) +func (ec *executionContext) _ImmunizationReaction_id(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationReaction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationReaction_id(ctx, field) if err != nil { return graphql.Null } @@ -96966,7 +97154,7 @@ func (ec *executionContext) _ImmunizationProtocolApplied_series(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Series, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -96980,9 +97168,9 @@ func (ec *executionContext) _ImmunizationProtocolApplied_series(ctx context.Cont return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationProtocolApplied_series(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ImmunizationReaction_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ImmunizationProtocolApplied", + Object: "ImmunizationReaction", Field: field, IsMethod: false, IsResolver: false, @@ -97029,14 +97217,14 @@ func (ec *executionContext) fieldContext_ImmunizationReaction_manifestation(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) case "resourceType": return ec.fieldContext_CodeableReference_resourceType(ctx, field) case "concept": return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, @@ -97080,120 +97268,120 @@ func (ec *executionContext) fieldContext_ImmunizationReaction_modifierExtension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -97360,120 +97548,120 @@ func (ec *executionContext) fieldContext_ImmunizationReaction_extension(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -97481,8 +97669,8 @@ func (ec *executionContext) fieldContext_ImmunizationReaction_extension(_ contex return fc, nil } -func (ec *executionContext) _ImmunizationReaction_id(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationReaction) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ImmunizationReaction_id(ctx, field) +func (ec *executionContext) _Location_name(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_name(ctx, field) if err != nil { return graphql.Null } @@ -97495,7 +97683,7 @@ func (ec *executionContext) _ImmunizationReaction_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -97509,9 +97697,9 @@ func (ec *executionContext) _ImmunizationReaction_id(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ImmunizationReaction_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ImmunizationReaction", + Object: "Location", Field: field, IsMethod: false, IsResolver: false, @@ -97522,8 +97710,8 @@ func (ec *executionContext) fieldContext_ImmunizationReaction_id(_ context.Conte return fc, nil } -func (ec *executionContext) _Location_meta(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_meta(ctx, field) +func (ec *executionContext) _Location_language(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_language(ctx, field) if err != nil { return graphql.Null } @@ -97536,7 +97724,7 @@ func (ec *executionContext) _Location_meta(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -97545,12 +97733,53 @@ func (ec *executionContext) _Location_meta(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Location", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Location_text(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_text(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Text, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Narrative) + fc.Result = res + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Location_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, @@ -97558,33 +97787,25 @@ func (ec *executionContext) fieldContext_Location_meta(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_name(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_name(ctx, field) +func (ec *executionContext) _Location_id(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_id(ctx, field) if err != nil { return graphql.Null } @@ -97597,7 +97818,7 @@ func (ec *executionContext) _Location_name(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -97611,7 +97832,7 @@ func (ec *executionContext) _Location_name(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, @@ -97624,8 +97845,8 @@ func (ec *executionContext) fieldContext_Location_name(_ context.Context, field return fc, nil } -func (ec *executionContext) _Location_contained(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_contained(ctx, field) +func (ec *executionContext) _Location_operationalStatus(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_operationalStatus(ctx, field) if err != nil { return graphql.Null } @@ -97638,7 +97859,7 @@ func (ec *executionContext) _Location_contained(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.OperationalStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -97647,26 +97868,44 @@ func (ec *executionContext) _Location_contained(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*model.Coding) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_operationalStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "userSelected": + return ec.fieldContext_Coding_userSelected(ctx, field) + case "version": + return ec.fieldContext_Coding_version(ctx, field) + case "code": + return ec.fieldContext_Coding_code(ctx, field) + case "display": + return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_form(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_form(ctx, field) +func (ec *executionContext) _Location_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -97679,7 +97918,7 @@ func (ec *executionContext) _Location_form(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Form, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -97688,12 +97927,12 @@ func (ec *executionContext) _Location_form(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_form(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, @@ -97701,25 +97940,129 @@ func (ec *executionContext) fieldContext_Location_form(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_language(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_language(ctx, field) +func (ec *executionContext) _Location_type(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_type(ctx, field) if err != nil { return graphql.Null } @@ -97732,7 +98075,7 @@ func (ec *executionContext) _Location_language(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -97741,26 +98084,38 @@ func (ec *executionContext) _Location_language(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_extension(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_extension(ctx, field) +func (ec *executionContext) _Location_characteristic(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_characteristic(ctx, field) if err != nil { return graphql.Null } @@ -97773,7 +98128,7 @@ func (ec *executionContext) _Location_extension(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Characteristic, nil }) if err != nil { ec.Error(ctx, err) @@ -97782,12 +98137,12 @@ func (ec *executionContext) _Location_extension(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_characteristic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, @@ -97795,129 +98150,25 @@ func (ec *executionContext) fieldContext_Location_extension(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_resourceType(ctx, field) +func (ec *executionContext) _Location_form(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_form(ctx, field) if err != nil { return graphql.Null } @@ -97930,7 +98181,7 @@ func (ec *executionContext) _Location_resourceType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Form, nil }) if err != nil { ec.Error(ctx, err) @@ -97939,26 +98190,38 @@ func (ec *executionContext) _Location_resourceType(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_form(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_id(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_id(ctx, field) +func (ec *executionContext) _Location_contact(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_contact(ctx, field) if err != nil { return graphql.Null } @@ -97971,7 +98234,7 @@ func (ec *executionContext) _Location_id(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Contact, nil }) if err != nil { ec.Error(ctx, err) @@ -97980,26 +98243,46 @@ func (ec *executionContext) _Location_id(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.ExtendedContactDetail) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "period": + return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + case "telecom": + return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) + case "address": + return ec.fieldContext_ExtendedContactDetail_address(ctx, field) + case "organization": + return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) + case "purpose": + return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) + case "resourceType": + return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) + case "name": + return ec.fieldContext_ExtendedContactDetail_name(ctx, field) + case "extension": + return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) + case "id": + return ec.fieldContext_ExtendedContactDetail_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_characteristic(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_characteristic(ctx, field) +func (ec *executionContext) _Location_identifier(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_identifier(ctx, field) if err != nil { return graphql.Null } @@ -98012,7 +98295,7 @@ func (ec *executionContext) _Location_characteristic(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Characteristic, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -98021,12 +98304,12 @@ func (ec *executionContext) _Location_characteristic(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_characteristic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, @@ -98034,25 +98317,33 @@ func (ec *executionContext) fieldContext_Location_characteristic(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_modifierExtension(ctx, field) +func (ec *executionContext) _Location_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -98065,7 +98356,7 @@ func (ec *executionContext) _Location_modifierExtension(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -98074,142 +98365,26 @@ func (ec *executionContext) _Location_modifierExtension(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Location_address(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_address(ctx, field) +func (ec *executionContext) _Location_position(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_position(ctx, field) if err != nil { return graphql.Null } @@ -98222,7 +98397,7 @@ func (ec *executionContext) _Location_address(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Address, nil + return obj.Position, nil }) if err != nil { ec.Error(ctx, err) @@ -98231,12 +98406,12 @@ func (ec *executionContext) _Location_address(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Address) + res := resTmp.(*model.LocationPosition) fc.Result = res - return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) + return ec.marshalOLocationPosition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐLocationPosition(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_position(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, @@ -98244,41 +98419,29 @@ func (ec *executionContext) fieldContext_Location_address(_ context.Context, fie IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_Address_text(ctx, field) - case "use": - return ec.fieldContext_Address_use(ctx, field) + case "extension": + return ec.fieldContext_LocationPosition_extension(ctx, field) case "id": - return ec.fieldContext_Address_id(ctx, field) - case "line": - return ec.fieldContext_Address_line(ctx, field) - case "country": - return ec.fieldContext_Address_country(ctx, field) - case "postalCode": - return ec.fieldContext_Address_postalCode(ctx, field) - case "state": - return ec.fieldContext_Address_state(ctx, field) - case "city": - return ec.fieldContext_Address_city(ctx, field) - case "district": - return ec.fieldContext_Address_district(ctx, field) - case "period": - return ec.fieldContext_Address_period(ctx, field) + return ec.fieldContext_LocationPosition_id(ctx, field) + case "latitude": + return ec.fieldContext_LocationPosition_latitude(ctx, field) + case "longitude": + return ec.fieldContext_LocationPosition_longitude(ctx, field) + case "modifierExtension": + return ec.fieldContext_LocationPosition_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_Address_resourceType(ctx, field) - case "type": - return ec.fieldContext_Address_type(ctx, field) - case "extension": - return ec.fieldContext_Address_extension(ctx, field) + return ec.fieldContext_LocationPosition_resourceType(ctx, field) + case "altitude": + return ec.fieldContext_LocationPosition_altitude(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) + return nil, fmt.Errorf("no field named %q was found under type LocationPosition", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_implicitRules(ctx, field) +func (ec *executionContext) _Location_extension(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_extension(ctx, field) if err != nil { return graphql.Null } @@ -98291,7 +98454,7 @@ func (ec *executionContext) _Location_implicitRules(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -98300,26 +98463,142 @@ func (ec *executionContext) _Location_implicitRules(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_mode(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_mode(ctx, field) +func (ec *executionContext) _Location_meta(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_meta(ctx, field) if err != nil { return graphql.Null } @@ -98332,7 +98611,7 @@ func (ec *executionContext) _Location_mode(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Mode, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -98341,26 +98620,46 @@ func (ec *executionContext) _Location_mode(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_operationalStatus(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_operationalStatus(ctx, field) +func (ec *executionContext) _Location_mode(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_mode(ctx, field) if err != nil { return graphql.Null } @@ -98373,7 +98672,7 @@ func (ec *executionContext) _Location_operationalStatus(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OperationalStatus, nil + return obj.Mode, nil }) if err != nil { ec.Error(ctx, err) @@ -98382,44 +98681,26 @@ func (ec *executionContext) _Location_operationalStatus(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Coding) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_operationalStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) - case "userSelected": - return ec.fieldContext_Coding_userSelected(ctx, field) - case "version": - return ec.fieldContext_Coding_version(ctx, field) - case "code": - return ec.fieldContext_Coding_code(ctx, field) - case "display": - return ec.fieldContext_Coding_display(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Location_position(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_position(ctx, field) +func (ec *executionContext) _Location_alias(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_alias(ctx, field) if err != nil { return graphql.Null } @@ -98432,7 +98713,7 @@ func (ec *executionContext) _Location_position(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Position, nil + return obj.Alias, nil }) if err != nil { ec.Error(ctx, err) @@ -98441,35 +98722,19 @@ func (ec *executionContext) _Location_position(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*model.LocationPosition) + res := resTmp.(*string) fc.Result = res - return ec.marshalOLocationPosition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐLocationPosition(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_position(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_alias(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "altitude": - return ec.fieldContext_LocationPosition_altitude(ctx, field) - case "extension": - return ec.fieldContext_LocationPosition_extension(ctx, field) - case "id": - return ec.fieldContext_LocationPosition_id(ctx, field) - case "latitude": - return ec.fieldContext_LocationPosition_latitude(ctx, field) - case "longitude": - return ec.fieldContext_LocationPosition_longitude(ctx, field) - case "modifierExtension": - return ec.fieldContext_LocationPosition_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_LocationPosition_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type LocationPosition", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -98511,28 +98776,28 @@ func (ec *executionContext) fieldContext_Location_virtualService(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "maxParticipants": + return ec.fieldContext_VirtualServiceDetail_maxParticipants(ctx, field) case "resourceType": return ec.fieldContext_VirtualServiceDetail_resourceType(ctx, field) case "additionalInfo": return ec.fieldContext_VirtualServiceDetail_additionalInfo(ctx, field) - case "addressContactPoint": - return ec.fieldContext_VirtualServiceDetail_addressContactPoint(ctx, field) - case "addressExtendedContactDetail": - return ec.fieldContext_VirtualServiceDetail_addressExtendedContactDetail(ctx, field) - case "sessionKey": - return ec.fieldContext_VirtualServiceDetail_sessionKey(ctx, field) case "extension": return ec.fieldContext_VirtualServiceDetail_extension(ctx, field) - case "id": - return ec.fieldContext_VirtualServiceDetail_id(ctx, field) + case "sessionKey": + return ec.fieldContext_VirtualServiceDetail_sessionKey(ctx, field) + case "addressContactPoint": + return ec.fieldContext_VirtualServiceDetail_addressContactPoint(ctx, field) case "addressString": return ec.fieldContext_VirtualServiceDetail_addressString(ctx, field) + case "addressExtendedContactDetail": + return ec.fieldContext_VirtualServiceDetail_addressExtendedContactDetail(ctx, field) case "addressUrl": return ec.fieldContext_VirtualServiceDetail_addressUrl(ctx, field) + case "id": + return ec.fieldContext_VirtualServiceDetail_id(ctx, field) case "channelType": return ec.fieldContext_VirtualServiceDetail_channelType(ctx, field) - case "maxParticipants": - return ec.fieldContext_VirtualServiceDetail_maxParticipants(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type VirtualServiceDetail", field.Name) }, @@ -98540,8 +98805,8 @@ func (ec *executionContext) fieldContext_Location_virtualService(_ context.Conte return fc, nil } -func (ec *executionContext) _Location_text(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_text(ctx, field) +func (ec *executionContext) _Location_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -98554,7 +98819,7 @@ func (ec *executionContext) _Location_text(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -98563,38 +98828,26 @@ func (ec *executionContext) _Location_text(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Location_contact(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_contact(ctx, field) +func (ec *executionContext) _Location_contained(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_contained(ctx, field) if err != nil { return graphql.Null } @@ -98607,7 +98860,7 @@ func (ec *executionContext) _Location_contact(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contact, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -98616,39 +98869,19 @@ func (ec *executionContext) _Location_contact(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ExtendedContactDetail) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ExtendedContactDetail_name(ctx, field) - case "organization": - return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) - case "purpose": - return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) - case "resourceType": - return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) - case "telecom": - return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) - case "address": - return ec.fieldContext_ExtendedContactDetail_address(ctx, field) - case "id": - return ec.fieldContext_ExtendedContactDetail_id(ctx, field) - case "extension": - return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) - case "period": - return ec.fieldContext_ExtendedContactDetail_period(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil @@ -98695,6 +98928,47 @@ func (ec *executionContext) fieldContext_Location_status(_ context.Context, fiel return fc, nil } +func (ec *executionContext) _Location_description(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Location_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Location", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _Location_hoursOfOperation(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Location_hoursOfOperation(ctx, field) if err != nil { @@ -98731,16 +99005,16 @@ func (ec *executionContext) fieldContext_Location_hoursOfOperation(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "notAvailableTime": + return ec.fieldContext_Availability_notAvailableTime(ctx, field) + case "resourceType": + return ec.fieldContext_Availability_resourceType(ctx, field) case "availableTime": return ec.fieldContext_Availability_availableTime(ctx, field) case "extension": return ec.fieldContext_Availability_extension(ctx, field) case "id": return ec.fieldContext_Availability_id(ctx, field) - case "notAvailableTime": - return ec.fieldContext_Availability_notAvailableTime(ctx, field) - case "resourceType": - return ec.fieldContext_Availability_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Availability", field.Name) }, @@ -98748,8 +99022,8 @@ func (ec *executionContext) fieldContext_Location_hoursOfOperation(_ context.Con return fc, nil } -func (ec *executionContext) _Location_identifier(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_identifier(ctx, field) +func (ec *executionContext) _Location_address(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_address(ctx, field) if err != nil { return graphql.Null } @@ -98762,7 +99036,7 @@ func (ec *executionContext) _Location_identifier(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Address, nil }) if err != nil { ec.Error(ctx, err) @@ -98771,12 +99045,12 @@ func (ec *executionContext) _Location_identifier(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*model.Address) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Location_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Location", Field: field, @@ -98784,33 +99058,41 @@ func (ec *executionContext) fieldContext_Location_identifier(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) + case "country": + return ec.fieldContext_Address_country(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) + return ec.fieldContext_Address_extension(ctx, field) + case "use": + return ec.fieldContext_Address_use(ctx, field) + case "district": + return ec.fieldContext_Address_district(ctx, field) case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Address_period(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Address_resourceType(ctx, field) + case "text": + return ec.fieldContext_Address_text(ctx, field) + case "city": + return ec.fieldContext_Address_city(ctx, field) + case "postalCode": + return ec.fieldContext_Address_postalCode(ctx, field) + case "line": + return ec.fieldContext_Address_line(ctx, field) + case "state": + return ec.fieldContext_Address_state(ctx, field) + case "type": + return ec.fieldContext_Address_type(ctx, field) + case "id": + return ec.fieldContext_Address_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_alias(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_alias(ctx, field) +func (ec *executionContext) _LocationPosition_extension(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LocationPosition_extension(ctx, field) if err != nil { return graphql.Null } @@ -98823,7 +99105,7 @@ func (ec *executionContext) _Location_alias(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Alias, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -98832,26 +99114,142 @@ func (ec *executionContext) _Location_alias(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_alias(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_LocationPosition_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Location", + Object: "LocationPosition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _Location_type(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_type(ctx, field) +func (ec *executionContext) _LocationPosition_id(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LocationPosition_id(ctx, field) if err != nil { return graphql.Null } @@ -98864,7 +99262,7 @@ func (ec *executionContext) _Location_type(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -98873,38 +99271,26 @@ func (ec *executionContext) _Location_type(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_LocationPosition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Location", + Object: "LocationPosition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Location_description(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Location_description(ctx, field) +func (ec *executionContext) _LocationPosition_latitude(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LocationPosition_latitude(ctx, field) if err != nil { return graphql.Null } @@ -98917,7 +99303,7 @@ func (ec *executionContext) _Location_description(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Latitude, nil }) if err != nil { ec.Error(ctx, err) @@ -98931,9 +99317,9 @@ func (ec *executionContext) _Location_description(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Location_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_LocationPosition_latitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Location", + Object: "LocationPosition", Field: field, IsMethod: false, IsResolver: false, @@ -98944,8 +99330,8 @@ func (ec *executionContext) fieldContext_Location_description(_ context.Context, return fc, nil } -func (ec *executionContext) _LocationPosition_altitude(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LocationPosition_altitude(ctx, field) +func (ec *executionContext) _LocationPosition_longitude(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LocationPosition_longitude(ctx, field) if err != nil { return graphql.Null } @@ -98958,7 +99344,7 @@ func (ec *executionContext) _LocationPosition_altitude(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Altitude, nil + return obj.Longitude, nil }) if err != nil { ec.Error(ctx, err) @@ -98972,7 +99358,7 @@ func (ec *executionContext) _LocationPosition_altitude(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_LocationPosition_altitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_LocationPosition_longitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "LocationPosition", Field: field, @@ -98985,8 +99371,8 @@ func (ec *executionContext) fieldContext_LocationPosition_altitude(_ context.Con return fc, nil } -func (ec *executionContext) _LocationPosition_extension(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LocationPosition_extension(ctx, field) +func (ec *executionContext) _LocationPosition_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LocationPosition_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -98999,7 +99385,7 @@ func (ec *executionContext) _LocationPosition_extension(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -99013,7 +99399,7 @@ func (ec *executionContext) _LocationPosition_extension(ctx context.Context, fie return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_LocationPosition_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_LocationPosition_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "LocationPosition", Field: field, @@ -99021,120 +99407,120 @@ func (ec *executionContext) fieldContext_LocationPosition_extension(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) case "valueDate": return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -99142,49 +99528,8 @@ func (ec *executionContext) fieldContext_LocationPosition_extension(_ context.Co return fc, nil } -func (ec *executionContext) _LocationPosition_id(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LocationPosition_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LocationPosition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LocationPosition", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _LocationPosition_latitude(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LocationPosition_latitude(ctx, field) +func (ec *executionContext) _LocationPosition_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LocationPosition_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -99197,7 +99542,7 @@ func (ec *executionContext) _LocationPosition_latitude(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Latitude, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -99211,7 +99556,7 @@ func (ec *executionContext) _LocationPosition_latitude(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_LocationPosition_latitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_LocationPosition_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "LocationPosition", Field: field, @@ -99224,8 +99569,8 @@ func (ec *executionContext) fieldContext_LocationPosition_latitude(_ context.Con return fc, nil } -func (ec *executionContext) _LocationPosition_longitude(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LocationPosition_longitude(ctx, field) +func (ec *executionContext) _LocationPosition_altitude(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LocationPosition_altitude(ctx, field) if err != nil { return graphql.Null } @@ -99238,7 +99583,7 @@ func (ec *executionContext) _LocationPosition_longitude(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Longitude, nil + return obj.Altitude, nil }) if err != nil { ec.Error(ctx, err) @@ -99252,7 +99597,7 @@ func (ec *executionContext) _LocationPosition_longitude(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_LocationPosition_longitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_LocationPosition_altitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "LocationPosition", Field: field, @@ -99265,8 +99610,8 @@ func (ec *executionContext) fieldContext_LocationPosition_longitude(_ context.Co return fc, nil } -func (ec *executionContext) _LocationPosition_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LocationPosition_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationAdministrationDosage_route(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_route(ctx, field) if err != nil { return graphql.Null } @@ -99279,7 +99624,7 @@ func (ec *executionContext) _LocationPosition_modifierExtension(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Route, nil }) if err != nil { ec.Error(ctx, err) @@ -99288,142 +99633,38 @@ func (ec *executionContext) _LocationPosition_modifierExtension(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_LocationPosition_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationDosage_route(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "LocationPosition", + Object: "MedicationAdministrationDosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _LocationPosition_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.LocationPosition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LocationPosition_resourceType(ctx, field) +func (ec *executionContext) _MedicationAdministrationDosage_text(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_text(ctx, field) if err != nil { return graphql.Null } @@ -99436,7 +99677,7 @@ func (ec *executionContext) _LocationPosition_resourceType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -99450,9 +99691,9 @@ func (ec *executionContext) _LocationPosition_resourceType(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_LocationPosition_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationDosage_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "LocationPosition", + Object: "MedicationAdministrationDosage", Field: field, IsMethod: false, IsResolver: false, @@ -99463,8 +99704,8 @@ func (ec *executionContext) fieldContext_LocationPosition_resourceType(_ context return fc, nil } -func (ec *executionContext) _MedicationAdministrationDosage_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationDosage_id(ctx, field) +func (ec *executionContext) _MedicationAdministrationDosage_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_extension(ctx, field) if err != nil { return graphql.Null } @@ -99477,7 +99718,7 @@ func (ec *executionContext) _MedicationAdministrationDosage_id(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -99486,26 +99727,142 @@ func (ec *executionContext) _MedicationAdministrationDosage_id(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationDosage_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationDosage_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationDosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationDosage_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationDosage_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationAdministrationDosage_method(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_method(ctx, field) if err != nil { return graphql.Null } @@ -99518,7 +99875,7 @@ func (ec *executionContext) _MedicationAdministrationDosage_modifierExtension(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Method, nil }) if err != nil { ec.Error(ctx, err) @@ -99527,12 +99884,12 @@ func (ec *executionContext) _MedicationAdministrationDosage_modifierExtension(ct if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationDosage_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationDosage_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationDosage", Field: field, @@ -99540,122 +99897,18 @@ func (ec *executionContext) fieldContext_MedicationAdministrationDosage_modifier IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -99720,8 +99973,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationDosage_rateQuan return fc, nil } -func (ec *executionContext) _MedicationAdministrationDosage_text(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationDosage_text(ctx, field) +func (ec *executionContext) _MedicationAdministrationDosage_rateRatio(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_rateRatio(ctx, field) if err != nil { return graphql.Null } @@ -99734,7 +99987,7 @@ func (ec *executionContext) _MedicationAdministrationDosage_text(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.RateRatio, nil }) if err != nil { ec.Error(ctx, err) @@ -99743,26 +99996,38 @@ func (ec *executionContext) _MedicationAdministrationDosage_text(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Ratio) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationDosage_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationDosage_rateRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationDosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) + case "extension": + return ec.fieldContext_Ratio_extension(ctx, field) + case "id": + return ec.fieldContext_Ratio_id(ctx, field) + case "numerator": + return ec.fieldContext_Ratio_numerator(ctx, field) + case "resourceType": + return ec.fieldContext_Ratio_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationDosage_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationDosage_extension(ctx, field) +func (ec *executionContext) _MedicationAdministrationDosage_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_id(ctx, field) if err != nil { return graphql.Null } @@ -99775,7 +100040,7 @@ func (ec *executionContext) _MedicationAdministrationDosage_extension(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -99784,135 +100049,19 @@ func (ec *executionContext) _MedicationAdministrationDosage_extension(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationDosage_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationDosage_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationDosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -99977,8 +100126,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationDosage_dose(_ c return fc, nil } -func (ec *executionContext) _MedicationAdministrationDosage_site(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationDosage_site(ctx, field) +func (ec *executionContext) _MedicationAdministrationDosage_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -99991,7 +100140,7 @@ func (ec *executionContext) _MedicationAdministrationDosage_site(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Site, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -100000,38 +100149,26 @@ func (ec *executionContext) _MedicationAdministrationDosage_site(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationDosage_site(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationDosage_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationDosage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationDosage_method(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationDosage_method(ctx, field) +func (ec *executionContext) _MedicationAdministrationDosage_site(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_site(ctx, field) if err != nil { return graphql.Null } @@ -100044,7 +100181,7 @@ func (ec *executionContext) _MedicationAdministrationDosage_method(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Method, nil + return obj.Site, nil }) if err != nil { ec.Error(ctx, err) @@ -100058,7 +100195,7 @@ func (ec *executionContext) _MedicationAdministrationDosage_method(ctx context.C return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationDosage_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationDosage_site(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationDosage", Field: field, @@ -100066,6 +100203,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationDosage_method(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -100074,8 +100213,6 @@ func (ec *executionContext) fieldContext_MedicationAdministrationDosage_method(_ return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -100083,8 +100220,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationDosage_method(_ return fc, nil } -func (ec *executionContext) _MedicationAdministrationDosage_rateRatio(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationDosage_rateRatio(ctx, field) +func (ec *executionContext) _MedicationAdministrationDosage_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -100097,7 +100234,7 @@ func (ec *executionContext) _MedicationAdministrationDosage_rateRatio(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RateRatio, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -100106,12 +100243,12 @@ func (ec *executionContext) _MedicationAdministrationDosage_rateRatio(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Ratio) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationDosage_rateRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationDosage_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationDosage", Field: field, @@ -100119,25 +100256,129 @@ func (ec *executionContext) fieldContext_MedicationAdministrationDosage_rateRati IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Ratio_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Ratio_id(ctx, field) - case "numerator": - return ec.fieldContext_Ratio_numerator(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationDosage_route(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationDosage_route(ctx, field) +func (ec *executionContext) _MedicationAdministrationPerformer_function(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationPerformer_function(ctx, field) if err != nil { return graphql.Null } @@ -100150,7 +100391,7 @@ func (ec *executionContext) _MedicationAdministrationDosage_route(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Route, nil + return obj.Function, nil }) if err != nil { ec.Error(ctx, err) @@ -100164,14 +100405,16 @@ func (ec *executionContext) _MedicationAdministrationDosage_route(ctx context.Co return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationDosage_route(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationPerformer_function(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationAdministrationDosage", + Object: "MedicationAdministrationPerformer", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -100180,8 +100423,6 @@ func (ec *executionContext) fieldContext_MedicationAdministrationDosage_route(_ return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -100189,47 +100430,6 @@ func (ec *executionContext) fieldContext_MedicationAdministrationDosage_route(_ return fc, nil } -func (ec *executionContext) _MedicationAdministrationDosage_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationDosage_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationAdministrationDosage_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationAdministrationDosage", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - func (ec *executionContext) _MedicationAdministrationPerformer_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationPerformer) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MedicationAdministrationPerformer_id(ctx, field) if err != nil { @@ -100307,120 +100507,120 @@ func (ec *executionContext) fieldContext_MedicationAdministrationPerformer_modif IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -100505,14 +100705,14 @@ func (ec *executionContext) fieldContext_MedicationAdministrationPerformer_actor IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) case "resourceType": return ec.fieldContext_CodeableReference_resourceType(ctx, field) case "concept": return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, @@ -100556,120 +100756,120 @@ func (ec *executionContext) fieldContext_MedicationAdministrationPerformer_exten IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -100677,8 +100877,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationPerformer_exten return fc, nil } -func (ec *executionContext) _MedicationAdministrationPerformer_function(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationPerformer_function(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_note(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_note(ctx, field) if err != nil { return graphql.Null } @@ -100691,47 +100891,49 @@ func (ec *executionContext) _MedicationAdministrationPerformer_function(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Function, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(model.MedicationAdministrationNoteUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNMedicationAdministrationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationPerformer_function(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationAdministrationPerformer", + Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type MedicationAdministrationNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationAdministrationType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_subPotentReason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_subPotentReason(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_dosage(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_dosage(ctx, field) if err != nil { return graphql.Null } @@ -100744,7 +100946,7 @@ func (ec *executionContext) _MedicationAdministrationType_subPotentReason(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubPotentReason, nil + return obj.Dosage, nil }) if err != nil { ec.Error(ctx, err) @@ -100753,12 +100955,12 @@ func (ec *executionContext) _MedicationAdministrationType_subPotentReason(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.MedicationAdministrationDosage) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOMedicationAdministrationDosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationDosage(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_subPotentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_dosage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -100766,25 +100968,37 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_subPotentR IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "route": + return ec.fieldContext_MedicationAdministrationDosage_route(ctx, field) case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + return ec.fieldContext_MedicationAdministrationDosage_text(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_MedicationAdministrationDosage_extension(ctx, field) + case "method": + return ec.fieldContext_MedicationAdministrationDosage_method(ctx, field) + case "rateQuantity": + return ec.fieldContext_MedicationAdministrationDosage_rateQuantity(ctx, field) + case "rateRatio": + return ec.fieldContext_MedicationAdministrationDosage_rateRatio(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_MedicationAdministrationDosage_id(ctx, field) + case "dose": + return ec.fieldContext_MedicationAdministrationDosage_dose(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_MedicationAdministrationDosage_resourceType(ctx, field) + case "site": + return ec.fieldContext_MedicationAdministrationDosage_site(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationAdministrationDosage_modifierExtension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type MedicationAdministrationDosage", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_device(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_device(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_language(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_language(ctx, field) if err != nil { return graphql.Null } @@ -100797,7 +101011,7 @@ func (ec *executionContext) _MedicationAdministrationType_device(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Device, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -100806,36 +101020,26 @@ func (ec *executionContext) _MedicationAdministrationType_device(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_device(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_category(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_category(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_request(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_request(ctx, field) if err != nil { return graphql.Null } @@ -100848,21 +101052,24 @@ func (ec *executionContext) _MedicationAdministrationType_category(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Category, nil + return obj.Request, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.MedicationRequestType) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNMedicationRequestType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_request(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -100870,66 +101077,104 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_category(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "subject": + return ec.fieldContext_MedicationRequestType_subject(ctx, field) + case "dosageInstruction": + return ec.fieldContext_MedicationRequestType_dosageInstruction(ctx, field) + case "note": + return ec.fieldContext_MedicationRequestType_note(ctx, field) + case "category": + return ec.fieldContext_MedicationRequestType_category(ctx, field) + case "medication": + return ec.fieldContext_MedicationRequestType_medication(ctx, field) + case "priority": + return ec.fieldContext_MedicationRequestType_priority(ctx, field) + case "contained": + return ec.fieldContext_MedicationRequestType_contained(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationRequestType_modifierExtension(ctx, field) + case "courseOfTherapyType": + return ec.fieldContext_MedicationRequestType_courseOfTherapyType(ctx, field) + case "dispenseRequest": + return ec.fieldContext_MedicationRequestType_dispenseRequest(ctx, field) case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + return ec.fieldContext_MedicationRequestType_text(ctx, field) + case "effectiveDosePeriod": + return ec.fieldContext_MedicationRequestType_effectiveDosePeriod(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_MedicationRequestType_extension(ctx, field) + case "performerType": + return ec.fieldContext_MedicationRequestType_performerType(ctx, field) + case "groupIdentifier": + return ec.fieldContext_MedicationRequestType_groupIdentifier(ctx, field) + case "substitution": + return ec.fieldContext_MedicationRequestType_substitution(ctx, field) + case "status": + return ec.fieldContext_MedicationRequestType_status(ctx, field) + case "supportingInformation": + return ec.fieldContext_MedicationRequestType_supportingInformation(ctx, field) + case "informationSource": + return ec.fieldContext_MedicationRequestType_informationSource(ctx, field) + case "doNotPerform": + return ec.fieldContext_MedicationRequestType_doNotPerform(ctx, field) + case "reported": + return ec.fieldContext_MedicationRequestType_reported(ctx, field) + case "performer": + return ec.fieldContext_MedicationRequestType_performer(ctx, field) + case "basedOn": + return ec.fieldContext_MedicationRequestType_basedOn(ctx, field) + case "identifier": + return ec.fieldContext_MedicationRequestType_identifier(ctx, field) + case "statusReason": + return ec.fieldContext_MedicationRequestType_statusReason(ctx, field) + case "renderedDosageInstruction": + return ec.fieldContext_MedicationRequestType_renderedDosageInstruction(ctx, field) + case "recorder": + return ec.fieldContext_MedicationRequestType_recorder(ctx, field) + case "authoredOn": + return ec.fieldContext_MedicationRequestType_authoredOn(ctx, field) + case "intent": + return ec.fieldContext_MedicationRequestType_intent(ctx, field) + case "language": + return ec.fieldContext_MedicationRequestType_language(ctx, field) + case "reason": + return ec.fieldContext_MedicationRequestType_reason(ctx, field) + case "meta": + return ec.fieldContext_MedicationRequestType_meta(ctx, field) + case "requester": + return ec.fieldContext_MedicationRequestType_requester(ctx, field) + case "priorPrescription": + return ec.fieldContext_MedicationRequestType_priorPrescription(ctx, field) + case "device": + return ec.fieldContext_MedicationRequestType_device(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_MedicationRequestType_resourceType(ctx, field) + case "statusChanged": + return ec.fieldContext_MedicationRequestType_statusChanged(ctx, field) + case "implicitRules": + return ec.fieldContext_MedicationRequestType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_MedicationRequestType_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type MedicationRequestType", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _MedicationAdministrationType_occurenceDateTime(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_occurenceDateTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OccurenceDateTime, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationAdministrationType_request_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationAdministrationType_occurenceDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationAdministrationType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_medication(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_medication(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_reason(ctx, field) if err != nil { return graphql.Null } @@ -100942,7 +101187,7 @@ func (ec *executionContext) _MedicationAdministrationType_medication(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Medication, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -100951,12 +101196,12 @@ func (ec *executionContext) _MedicationAdministrationType_medication(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_medication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -100964,14 +101209,14 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_medication IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) case "resourceType": return ec.fieldContext_CodeableReference_resourceType(ctx, field) case "concept": return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, @@ -101015,16 +101260,16 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_occurenceP IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -101032,8 +101277,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_occurenceP return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_isSubPotent(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_isSubPotent(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -101046,7 +101291,7 @@ func (ec *executionContext) _MedicationAdministrationType_isSubPotent(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsSubPotent, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -101060,7 +101305,7 @@ func (ec *executionContext) _MedicationAdministrationType_isSubPotent(ctx contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_isSubPotent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -101073,8 +101318,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_isSubPoten return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_identifier(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_text(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_text(ctx, field) if err != nil { return graphql.Null } @@ -101087,7 +101332,7 @@ func (ec *executionContext) _MedicationAdministrationType_identifier(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -101096,12 +101341,12 @@ func (ec *executionContext) _MedicationAdministrationType_identifier(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -101109,33 +101354,25 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_identifier IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_meta(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_meta(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_medication(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_medication(ctx, field) if err != nil { return graphql.Null } @@ -101148,7 +101385,7 @@ func (ec *executionContext) _MedicationAdministrationType_meta(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Medication, nil }) if err != nil { ec.Error(ctx, err) @@ -101157,12 +101394,12 @@ func (ec *executionContext) _MedicationAdministrationType_meta(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_medication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -101170,33 +101407,23 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_meta(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -101209,7 +101436,7 @@ func (ec *executionContext) _MedicationAdministrationType_modifierExtension(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -101218,142 +101445,26 @@ func (ec *executionContext) _MedicationAdministrationType_modifierExtension(ctx if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_dosage(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_dosage(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_category(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_category(ctx, field) if err != nil { return graphql.Null } @@ -101366,7 +101477,7 @@ func (ec *executionContext) _MedicationAdministrationType_dosage(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Dosage, nil + return obj.Category, nil }) if err != nil { ec.Error(ctx, err) @@ -101375,12 +101486,12 @@ func (ec *executionContext) _MedicationAdministrationType_dosage(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*model.MedicationAdministrationDosage) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOMedicationAdministrationDosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationDosage(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_dosage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -101388,37 +101499,25 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_dosage(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_MedicationAdministrationDosage_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationAdministrationDosage_modifierExtension(ctx, field) - case "rateQuantity": - return ec.fieldContext_MedicationAdministrationDosage_rateQuantity(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": - return ec.fieldContext_MedicationAdministrationDosage_text(ctx, field) + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_MedicationAdministrationDosage_extension(ctx, field) - case "dose": - return ec.fieldContext_MedicationAdministrationDosage_dose(ctx, field) - case "site": - return ec.fieldContext_MedicationAdministrationDosage_site(ctx, field) - case "method": - return ec.fieldContext_MedicationAdministrationDosage_method(ctx, field) - case "rateRatio": - return ec.fieldContext_MedicationAdministrationDosage_rateRatio(ctx, field) - case "route": - return ec.fieldContext_MedicationAdministrationDosage_route(ctx, field) - case "resourceType": - return ec.fieldContext_MedicationAdministrationDosage_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type MedicationAdministrationDosage", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_performer(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_performer(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_meta(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_meta(ctx, field) if err != nil { return graphql.Null } @@ -101431,7 +101530,7 @@ func (ec *executionContext) _MedicationAdministrationType_performer(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Performer, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -101440,12 +101539,12 @@ func (ec *executionContext) _MedicationAdministrationType_performer(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.MedicationAdministrationPerformer) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOMedicationAdministrationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPerformer(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_performer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -101453,27 +101552,33 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_performer( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_MedicationAdministrationPerformer_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationAdministrationPerformer_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_MedicationAdministrationPerformer_resourceType(ctx, field) - case "actor": - return ec.fieldContext_MedicationAdministrationPerformer_actor(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_MedicationAdministrationPerformer_extension(ctx, field) - case "function": - return ec.fieldContext_MedicationAdministrationPerformer_function(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type MedicationAdministrationPerformer", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_status(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_status(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_isSubPotent(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_isSubPotent(ctx, field) if err != nil { return graphql.Null } @@ -101486,7 +101591,7 @@ func (ec *executionContext) _MedicationAdministrationType_status(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.IsSubPotent, nil }) if err != nil { ec.Error(ctx, err) @@ -101500,7 +101605,7 @@ func (ec *executionContext) _MedicationAdministrationType_status(ctx context.Con return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_isSubPotent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -101554,8 +101659,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_recorded(_ return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_id(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_performer(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_performer(ctx, field) if err != nil { return graphql.Null } @@ -101568,7 +101673,7 @@ func (ec *executionContext) _MedicationAdministrationType_id(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Performer, nil }) if err != nil { ec.Error(ctx, err) @@ -101577,26 +101682,40 @@ func (ec *executionContext) _MedicationAdministrationType_id(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.MedicationAdministrationPerformer) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMedicationAdministrationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPerformer(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_performer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "function": + return ec.fieldContext_MedicationAdministrationPerformer_function(ctx, field) + case "id": + return ec.fieldContext_MedicationAdministrationPerformer_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationAdministrationPerformer_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationAdministrationPerformer_resourceType(ctx, field) + case "actor": + return ec.fieldContext_MedicationAdministrationPerformer_actor(ctx, field) + case "extension": + return ec.fieldContext_MedicationAdministrationPerformer_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationAdministrationPerformer", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_occurenceTiming(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_occurenceTiming(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_statusReason(ctx, field) if err != nil { return graphql.Null } @@ -101609,7 +101728,7 @@ func (ec *executionContext) _MedicationAdministrationType_occurenceTiming(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OccurenceTiming, nil + return obj.StatusReason, nil }) if err != nil { ec.Error(ctx, err) @@ -101618,12 +101737,12 @@ func (ec *executionContext) _MedicationAdministrationType_occurenceTiming(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Timing) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_occurenceTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -101631,22 +101750,18 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_occurenceT IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "repeat": - return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_Timing_resourceType(ctx, field) - case "code": - return ec.fieldContext_Timing_code(ctx, field) - case "event": - return ec.fieldContext_Timing_event(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Timing_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Timing_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_Timing_modifierExtension(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -101673,11 +101788,14 @@ func (ec *executionContext) _MedicationAdministrationType_subject(ctx context.Co return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.MedicationAdministrationSubjectUnion) + res := resTmp.(model.MedicationAdministrationSubjectUnion) fc.Result = res - return ec.marshalOMedicationAdministrationSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationSubjectUnion(ctx, field.Selections, res) + return ec.marshalNMedicationAdministrationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationSubjectUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_MedicationAdministrationType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -101704,8 +101822,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_subject(ct return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_language(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_language(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_contained(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_contained(ctx, field) if err != nil { return graphql.Null } @@ -101718,7 +101836,7 @@ func (ec *executionContext) _MedicationAdministrationType_language(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -101727,26 +101845,26 @@ func (ec *executionContext) _MedicationAdministrationType_language(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_request(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_request(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_extension(ctx, field) if err != nil { return graphql.Null } @@ -101759,7 +101877,7 @@ func (ec *executionContext) _MedicationAdministrationType_request(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Request, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -101768,12 +101886,12 @@ func (ec *executionContext) _MedicationAdministrationType_request(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.MedicationRequestType) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOMedicationRequestType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_request(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -101781,104 +101899,129 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_request(ct IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "medication": - return ec.fieldContext_MedicationRequestType_medication(ctx, field) - case "resourceType": - return ec.fieldContext_MedicationRequestType_resourceType(ctx, field) - case "reason": - return ec.fieldContext_MedicationRequestType_reason(ctx, field) - case "statusChanged": - return ec.fieldContext_MedicationRequestType_statusChanged(ctx, field) - case "courseOfTherapyType": - return ec.fieldContext_MedicationRequestType_courseOfTherapyType(ctx, field) - case "effectiveDosePeriod": - return ec.fieldContext_MedicationRequestType_effectiveDosePeriod(ctx, field) - case "device": - return ec.fieldContext_MedicationRequestType_device(ctx, field) - case "supportingInformation": - return ec.fieldContext_MedicationRequestType_supportingInformation(ctx, field) - case "performer": - return ec.fieldContext_MedicationRequestType_performer(ctx, field) - case "authoredOn": - return ec.fieldContext_MedicationRequestType_authoredOn(ctx, field) - case "note": - return ec.fieldContext_MedicationRequestType_note(ctx, field) - case "text": - return ec.fieldContext_MedicationRequestType_text(ctx, field) - case "id": - return ec.fieldContext_MedicationRequestType_id(ctx, field) - case "language": - return ec.fieldContext_MedicationRequestType_language(ctx, field) - case "status": - return ec.fieldContext_MedicationRequestType_status(ctx, field) - case "implicitRules": - return ec.fieldContext_MedicationRequestType_implicitRules(ctx, field) - case "requester": - return ec.fieldContext_MedicationRequestType_requester(ctx, field) - case "groupIdentifier": - return ec.fieldContext_MedicationRequestType_groupIdentifier(ctx, field) - case "statusReason": - return ec.fieldContext_MedicationRequestType_statusReason(ctx, field) - case "intent": - return ec.fieldContext_MedicationRequestType_intent(ctx, field) - case "dosageInstruction": - return ec.fieldContext_MedicationRequestType_dosageInstruction(ctx, field) - case "informationSource": - return ec.fieldContext_MedicationRequestType_informationSource(ctx, field) - case "performerType": - return ec.fieldContext_MedicationRequestType_performerType(ctx, field) - case "identifier": - return ec.fieldContext_MedicationRequestType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationRequestType_modifierExtension(ctx, field) - case "category": - return ec.fieldContext_MedicationRequestType_category(ctx, field) - case "recorder": - return ec.fieldContext_MedicationRequestType_recorder(ctx, field) - case "priorPrescription": - return ec.fieldContext_MedicationRequestType_priorPrescription(ctx, field) - case "meta": - return ec.fieldContext_MedicationRequestType_meta(ctx, field) - case "basedOn": - return ec.fieldContext_MedicationRequestType_basedOn(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_MedicationRequestType_extension(ctx, field) - case "renderedDosageInstruction": - return ec.fieldContext_MedicationRequestType_renderedDosageInstruction(ctx, field) - case "reported": - return ec.fieldContext_MedicationRequestType_reported(ctx, field) - case "substitution": - return ec.fieldContext_MedicationRequestType_substitution(ctx, field) - case "doNotPerform": - return ec.fieldContext_MedicationRequestType_doNotPerform(ctx, field) - case "contained": - return ec.fieldContext_MedicationRequestType_contained(ctx, field) - case "subject": - return ec.fieldContext_MedicationRequestType_subject(ctx, field) - case "dispenseRequest": - return ec.fieldContext_MedicationRequestType_dispenseRequest(ctx, field) - case "priority": - return ec.fieldContext_MedicationRequestType_priority(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type MedicationRequestType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationAdministrationType_request_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_note(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_note(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_partOf(ctx, field) if err != nil { return graphql.Null } @@ -101891,28 +102034,31 @@ func (ec *executionContext) _MedicationAdministrationType_note(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.PartOf, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.MedicationAdministrationNoteUnion) + res := resTmp.(model.MedicationAdministrationPartOfUnion) fc.Result = res - return ec.marshalOMedicationAdministrationNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationNoteUnion(ctx, field.Selections, res) + return ec.marshalNMedicationAdministrationPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPartOfUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationAdministrationNoteUnion does not have child fields") + return nil, errors.New("field of type MedicationAdministrationPartOfUnion does not have child fields") }, } defer func() { @@ -101922,15 +102068,15 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_note(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationAdministrationType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_MedicationAdministrationType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_text(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_text(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_occurenceTiming(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_occurenceTiming(ctx, field) if err != nil { return graphql.Null } @@ -101943,7 +102089,7 @@ func (ec *executionContext) _MedicationAdministrationType_text(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.OccurenceTiming, nil }) if err != nil { ec.Error(ctx, err) @@ -101952,12 +102098,12 @@ func (ec *executionContext) _MedicationAdministrationType_text(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*model.Timing) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_occurenceTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -101965,66 +102111,29 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_text(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) + case "code": + return ec.fieldContext_Timing_code(ctx, field) + case "event": + return ec.fieldContext_Timing_event(ctx, field) case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) + return ec.fieldContext_Timing_extension(ctx, field) case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Timing_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Timing_modifierExtension(ctx, field) + case "repeat": + return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_Timing_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MedicationAdministrationType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationAdministrationType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationAdministrationType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_statusReason(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_subPotentReason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_subPotentReason(ctx, field) if err != nil { return graphql.Null } @@ -102037,7 +102146,7 @@ func (ec *executionContext) _MedicationAdministrationType_statusReason(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StatusReason, nil + return obj.SubPotentReason, nil }) if err != nil { ec.Error(ctx, err) @@ -102051,7 +102160,7 @@ func (ec *executionContext) _MedicationAdministrationType_statusReason(ctx conte return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_subPotentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -102059,6 +102168,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_statusReas IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -102067,8 +102178,6 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_statusReas return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -102076,8 +102185,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_statusReas return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_implicitRules(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_supportingInformation(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_supportingInformation(ctx, field) if err != nil { return graphql.Null } @@ -102090,35 +102199,49 @@ func (ec *executionContext) _MedicationAdministrationType_implicitRules(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.SupportingInformation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_supportingInformation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationAdministrationType_supportingInformation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_partOf(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_status(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_status(ctx, field) if err != nil { return graphql.Null } @@ -102131,7 +102254,7 @@ func (ec *executionContext) _MedicationAdministrationType_partOf(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PartOf, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -102140,37 +102263,26 @@ func (ec *executionContext) _MedicationAdministrationType_partOf(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]model.MedicationAdministrationPartOfUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMedicationAdministrationPartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPartOfUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationAdministrationPartOfUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationAdministrationType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_reason(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_id(ctx, field) if err != nil { return graphql.Null } @@ -102183,7 +102295,7 @@ func (ec *executionContext) _MedicationAdministrationType_reason(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -102192,36 +102304,26 @@ func (ec *executionContext) _MedicationAdministrationType_reason(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_supportingInformation(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_supportingInformation(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_occurenceDateTime(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_occurenceDateTime(ctx, field) if err != nil { return graphql.Null } @@ -102234,7 +102336,7 @@ func (ec *executionContext) _MedicationAdministrationType_supportingInformation( }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SupportingInformation, nil + return obj.OccurenceDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -102243,37 +102345,26 @@ func (ec *executionContext) _MedicationAdministrationType_supportingInformation( if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_supportingInformation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_occurenceDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationAdministrationType_supportingInformation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_extension(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -102286,7 +102377,7 @@ func (ec *executionContext) _MedicationAdministrationType_extension(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -102300,7 +102391,7 @@ func (ec *executionContext) _MedicationAdministrationType_extension(ctx context. return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, @@ -102308,120 +102399,120 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_extension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -102429,8 +102520,8 @@ func (ec *executionContext) fieldContext_MedicationAdministrationType_extension( return fc, nil } -func (ec *executionContext) _MedicationAdministrationType_contained(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationAdministrationType_contained(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_device(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_device(ctx, field) if err != nil { return graphql.Null } @@ -102443,7 +102534,7 @@ func (ec *executionContext) _MedicationAdministrationType_contained(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Device, nil }) if err != nil { ec.Error(ctx, err) @@ -102452,26 +102543,36 @@ func (ec *executionContext) _MedicationAdministrationType_contained(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationAdministrationType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_device(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationBatch_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationBatch_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationAdministrationType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -102484,7 +102585,7 @@ func (ec *executionContext) _MedicationBatch_modifierExtension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -102493,142 +102594,46 @@ func (ec *executionContext) _MedicationBatch_modifierExtension(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationBatch_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationAdministrationType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationBatch", + Object: "MedicationAdministrationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationBatch_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationBatch_resourceType(ctx, field) +func (ec *executionContext) _MedicationBatch_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationBatch_id(ctx, field) if err != nil { return graphql.Null } @@ -102641,7 +102646,7 @@ func (ec *executionContext) _MedicationBatch_resourceType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -102655,7 +102660,7 @@ func (ec *executionContext) _MedicationBatch_resourceType(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationBatch_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationBatch_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationBatch", Field: field, @@ -102668,8 +102673,8 @@ func (ec *executionContext) fieldContext_MedicationBatch_resourceType(_ context. return fc, nil } -func (ec *executionContext) _MedicationBatch_expirationDate(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationBatch_expirationDate(ctx, field) +func (ec *executionContext) _MedicationBatch_lotNumber(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationBatch_lotNumber(ctx, field) if err != nil { return graphql.Null } @@ -102682,7 +102687,7 @@ func (ec *executionContext) _MedicationBatch_expirationDate(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExpirationDate, nil + return obj.LotNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -102696,7 +102701,7 @@ func (ec *executionContext) _MedicationBatch_expirationDate(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationBatch_expirationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationBatch_lotNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationBatch", Field: field, @@ -102709,8 +102714,8 @@ func (ec *executionContext) fieldContext_MedicationBatch_expirationDate(_ contex return fc, nil } -func (ec *executionContext) _MedicationBatch_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationBatch_extension(ctx, field) +func (ec *executionContext) _MedicationBatch_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationBatch_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -102723,7 +102728,7 @@ func (ec *executionContext) _MedicationBatch_extension(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -102737,7 +102742,7 @@ func (ec *executionContext) _MedicationBatch_extension(ctx context.Context, fiel return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationBatch_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationBatch_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationBatch", Field: field, @@ -102745,120 +102750,120 @@ func (ec *executionContext) fieldContext_MedicationBatch_extension(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -102866,8 +102871,8 @@ func (ec *executionContext) fieldContext_MedicationBatch_extension(_ context.Con return fc, nil } -func (ec *executionContext) _MedicationBatch_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationBatch_id(ctx, field) +func (ec *executionContext) _MedicationBatch_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationBatch_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -102880,7 +102885,7 @@ func (ec *executionContext) _MedicationBatch_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -102894,7 +102899,7 @@ func (ec *executionContext) _MedicationBatch_id(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationBatch_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationBatch_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationBatch", Field: field, @@ -102907,8 +102912,8 @@ func (ec *executionContext) fieldContext_MedicationBatch_id(_ context.Context, f return fc, nil } -func (ec *executionContext) _MedicationBatch_lotNumber(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationBatch_lotNumber(ctx, field) +func (ec *executionContext) _MedicationBatch_expirationDate(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationBatch_expirationDate(ctx, field) if err != nil { return graphql.Null } @@ -102921,7 +102926,7 @@ func (ec *executionContext) _MedicationBatch_lotNumber(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LotNumber, nil + return obj.ExpirationDate, nil }) if err != nil { ec.Error(ctx, err) @@ -102935,7 +102940,7 @@ func (ec *executionContext) _MedicationBatch_lotNumber(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationBatch_lotNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationBatch_expirationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationBatch", Field: field, @@ -102948,8 +102953,8 @@ func (ec *executionContext) fieldContext_MedicationBatch_lotNumber(_ context.Con return fc, nil } -func (ec *executionContext) _MedicationIngredient_strengthCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationIngredient_strengthCodeableConcept(ctx, field) +func (ec *executionContext) _MedicationBatch_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationBatch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationBatch_extension(ctx, field) if err != nil { return graphql.Null } @@ -102962,7 +102967,7 @@ func (ec *executionContext) _MedicationIngredient_strengthCodeableConcept(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StrengthCodeableConcept, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -102971,227 +102976,133 @@ func (ec *executionContext) _MedicationIngredient_strengthCodeableConcept(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationIngredient_strengthCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationBatch_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationIngredient", + Object: "MedicationBatch", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MedicationIngredient_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationIngredient_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationIngredient_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationIngredient", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MedicationIngredient_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationIngredient_modifierExtension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationIngredient_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationIngredient", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) case "valueMarkdown": return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) case "valueRange": return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -103199,8 +103110,8 @@ func (ec *executionContext) fieldContext_MedicationIngredient_modifierExtension( return fc, nil } -func (ec *executionContext) _MedicationIngredient_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationIngredient_resourceType(ctx, field) +func (ec *executionContext) _MedicationIngredient_item(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationIngredient_item(ctx, field) if err != nil { return graphql.Null } @@ -103213,7 +103124,7 @@ func (ec *executionContext) _MedicationIngredient_resourceType(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Item, nil }) if err != nil { ec.Error(ctx, err) @@ -103222,26 +103133,36 @@ func (ec *executionContext) _MedicationIngredient_resourceType(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationIngredient_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationIngredient_item(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationIngredient", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationIngredient_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationIngredient_extension(ctx, field) +func (ec *executionContext) _MedicationIngredient_strengthQuantity(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationIngredient_strengthQuantity(ctx, field) if err != nil { return graphql.Null } @@ -103254,7 +103175,7 @@ func (ec *executionContext) _MedicationIngredient_extension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.StrengthQuantity, nil }) if err != nil { ec.Error(ctx, err) @@ -103263,12 +103184,12 @@ func (ec *executionContext) _MedicationIngredient_extension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationIngredient_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationIngredient_strengthQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationIngredient", Field: field, @@ -103276,129 +103197,31 @@ func (ec *executionContext) fieldContext_MedicationIngredient_extension(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationIngredient_isActive(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationIngredient_isActive(ctx, field) +func (ec *executionContext) _MedicationIngredient_strengthRatio(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationIngredient_strengthRatio(ctx, field) if err != nil { return graphql.Null } @@ -103411,7 +103234,7 @@ func (ec *executionContext) _MedicationIngredient_isActive(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsActive, nil + return obj.StrengthRatio, nil }) if err != nil { ec.Error(ctx, err) @@ -103420,26 +103243,38 @@ func (ec *executionContext) _MedicationIngredient_isActive(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Ratio) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationIngredient_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationIngredient_strengthRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationIngredient", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) + case "extension": + return ec.fieldContext_Ratio_extension(ctx, field) + case "id": + return ec.fieldContext_Ratio_id(ctx, field) + case "numerator": + return ec.fieldContext_Ratio_numerator(ctx, field) + case "resourceType": + return ec.fieldContext_Ratio_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationIngredient_item(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationIngredient_item(ctx, field) +func (ec *executionContext) _MedicationIngredient_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationIngredient_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -103452,7 +103287,7 @@ func (ec *executionContext) _MedicationIngredient_item(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Item, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -103461,36 +103296,26 @@ func (ec *executionContext) _MedicationIngredient_item(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationIngredient_item(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationIngredient_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationIngredient", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationIngredient_strengthQuantity(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationIngredient_strengthQuantity(ctx, field) +func (ec *executionContext) _MedicationIngredient_strengthCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationIngredient_strengthCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -103503,7 +103328,7 @@ func (ec *executionContext) _MedicationIngredient_strengthQuantity(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StrengthQuantity, nil + return obj.StrengthCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -103512,12 +103337,12 @@ func (ec *executionContext) _MedicationIngredient_strengthQuantity(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationIngredient_strengthQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationIngredient_strengthCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationIngredient", Field: field, @@ -103525,31 +103350,25 @@ func (ec *executionContext) fieldContext_MedicationIngredient_strengthQuantity(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationIngredient_strengthRatio(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationIngredient_strengthRatio(ctx, field) +func (ec *executionContext) _MedicationIngredient_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationIngredient_id(ctx, field) if err != nil { return graphql.Null } @@ -103562,7 +103381,7 @@ func (ec *executionContext) _MedicationIngredient_strengthRatio(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StrengthRatio, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -103571,38 +103390,26 @@ func (ec *executionContext) _MedicationIngredient_strengthRatio(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Ratio) + res := resTmp.(*string) fc.Result = res - return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationIngredient_strengthRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationIngredient_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationIngredient", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Ratio_extension(ctx, field) - case "id": - return ec.fieldContext_Ratio_id(ctx, field) - case "numerator": - return ec.fieldContext_Ratio_numerator(ctx, field) - case "resourceType": - return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_expectedSupplyDuration(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_expectedSupplyDuration(ctx, field) +func (ec *executionContext) _MedicationIngredient_isActive(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationIngredient_isActive(ctx, field) if err != nil { return graphql.Null } @@ -103615,7 +103422,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_expectedSupplyDura }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExpectedSupplyDuration, nil + return obj.IsActive, nil }) if err != nil { ec.Error(ctx, err) @@ -103624,44 +103431,26 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_expectedSupplyDura if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Duration) + res := resTmp.(*string) fc.Result = res - return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_expectedSupplyDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationIngredient_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationRequestDispenseRequest", + Object: "MedicationIngredient", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) - case "extension": - return ec.fieldContext_Duration_extension(ctx, field) - case "id": - return ec.fieldContext_Duration_id(ctx, field) - case "resourceType": - return ec.fieldContext_Duration_resourceType(ctx, field) - case "system": - return ec.fieldContext_Duration_system(ctx, field) - case "unit": - return ec.fieldContext_Duration_unit(ctx, field) - case "value": - return ec.fieldContext_Duration_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_initialFill(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_initialFill(ctx, field) +func (ec *executionContext) _MedicationIngredient_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationIngredient_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -103674,7 +103463,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_initialFill(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InitialFill, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -103683,40 +103472,142 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_initialFill(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.MedicationRequestDispenseRequestInitialFill) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOMedicationRequestDispenseRequestInitialFill2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestInitialFill(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_initialFill(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationIngredient_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationRequestDispenseRequest", + Object: "MedicationIngredient", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "duration": - return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_duration(ctx, field) - case "extension": - return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_modifierExtension(ctx, field) - case "quantity": - return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_quantity(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type MedicationRequestDispenseRequestInitialFill", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationIngredient_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationIngredient_extension(ctx, field) if err != nil { return graphql.Null } @@ -103729,7 +103620,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_modifierExtension( }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -103743,128 +103634,128 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_modifierExtension( return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationIngredient_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationRequestDispenseRequest", + Object: "MedicationIngredient", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -103872,8 +103763,8 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_modifi return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_resourceType(ctx, field) +func (ec *executionContext) _MedicationRequestDispenseRequest_dispenserInstruction(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_dispenserInstruction(ctx, field) if err != nil { return graphql.Null } @@ -103886,7 +103777,62 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_resourceType(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.DispenserInstruction, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.MedicationRequestDispenseRequestDispenserInstructionUnion) + fc.Result = res + return ec.marshalNMedicationRequestDispenseRequestDispenserInstructionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestDispenserInstructionUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_dispenserInstruction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationRequestDispenseRequest", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MedicationRequestDispenseRequestDispenserInstructionUnion does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationRequestDispenseRequest_dispenserInstruction_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _MedicationRequestDispenseRequest_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -103900,7 +103846,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_resourceType(ctx c return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestDispenseRequest", Field: field, @@ -103913,8 +103859,8 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_resour return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_validityPeriod(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_validityPeriod(ctx, field) +func (ec *executionContext) _MedicationRequestDispenseRequest_dispenseInterval(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_dispenseInterval(ctx, field) if err != nil { return graphql.Null } @@ -103927,7 +103873,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_validityPeriod(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValidityPeriod, nil + return obj.DispenseInterval, nil }) if err != nil { ec.Error(ctx, err) @@ -103936,12 +103882,12 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_validityPeriod(ctx if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*model.Duration) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_validityPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_dispenseInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestDispenseRequest", Field: field, @@ -103949,18 +103895,24 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_validi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_Duration_id(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_Duration_resourceType(ctx, field) + case "system": + return ec.fieldContext_Duration_system(ctx, field) + case "unit": + return ec.fieldContext_Duration_unit(ctx, field) + case "value": + return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) + case "extension": + return ec.fieldContext_Duration_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, } return fc, nil @@ -104002,6 +103954,8 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_doseAd IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -104010,8 +103964,6 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_doseAd return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -104019,8 +103971,8 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_doseAd return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_id(ctx, field) +func (ec *executionContext) _MedicationRequestDispenseRequest_initialFill(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_initialFill(ctx, field) if err != nil { return graphql.Null } @@ -104033,7 +103985,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_id(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.InitialFill, nil }) if err != nil { ec.Error(ctx, err) @@ -104042,26 +103994,40 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_id(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.MedicationRequestDispenseRequestInitialFill) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMedicationRequestDispenseRequestInitialFill2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestInitialFill(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_initialFill(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestDispenseRequest", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "duration": + return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_duration(ctx, field) + case "extension": + return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_extension(ctx, field) + case "id": + return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_modifierExtension(ctx, field) + case "quantity": + return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_quantity(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationRequestDispenseRequestInitialFill_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationRequestDispenseRequestInitialFill", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_dispenseInterval(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_dispenseInterval(ctx, field) +func (ec *executionContext) _MedicationRequestDispenseRequest_quantity(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_quantity(ctx, field) if err != nil { return graphql.Null } @@ -104074,7 +104040,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_dispenseInterval(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DispenseInterval, nil + return obj.Quantity, nil }) if err != nil { ec.Error(ctx, err) @@ -104083,12 +104049,12 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_dispenseInterval(c if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Duration) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_dispenseInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_quantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestDispenseRequest", Field: field, @@ -104097,30 +104063,30 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_dispen Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "code": - return ec.fieldContext_Duration_code(ctx, field) + return ec.fieldContext_Quantity_code(ctx, field) case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) + return ec.fieldContext_Quantity_comparator(ctx, field) case "extension": - return ec.fieldContext_Duration_extension(ctx, field) + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_Duration_id(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_Duration_resourceType(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) case "system": - return ec.fieldContext_Duration_system(ctx, field) + return ec.fieldContext_Quantity_system(ctx, field) case "unit": - return ec.fieldContext_Duration_unit(ctx, field) + return ec.fieldContext_Quantity_unit(ctx, field) case "value": - return ec.fieldContext_Duration_value(ctx, field) + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_dispenser(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_dispenser(ctx, field) +func (ec *executionContext) _MedicationRequestDispenseRequest_validityPeriod(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_validityPeriod(ctx, field) if err != nil { return graphql.Null } @@ -104133,7 +104099,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_dispenser(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Dispenser, nil + return obj.ValidityPeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -104142,12 +104108,12 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_dispenser(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_dispenser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_validityPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestDispenseRequest", Field: field, @@ -104155,62 +104121,84 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_dispen IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _MedicationRequestDispenseRequest_expectedSupplyDuration(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_expectedSupplyDuration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestDispenseRequest_dispenser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpectedSupplyDuration, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Duration) + fc.Result = res + return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_expectedSupplyDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationRequestDispenseRequest", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Duration_id(ctx, field) + case "resourceType": + return ec.fieldContext_Duration_resourceType(ctx, field) + case "system": + return ec.fieldContext_Duration_system(ctx, field) + case "unit": + return ec.fieldContext_Duration_unit(ctx, field) + case "value": + return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) + case "extension": + return ec.fieldContext_Duration_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + }, } return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_dispenserInstruction(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_dispenserInstruction(ctx, field) +func (ec *executionContext) _MedicationRequestDispenseRequest_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -104223,7 +104211,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_dispenserInstructi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DispenserInstruction, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -104232,37 +104220,183 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_dispenserInstructi if resTmp == nil { return graphql.Null } - res := resTmp.([]model.MedicationRequestDispenseRequestDispenserInstructionUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOMedicationRequestDispenseRequestDispenserInstructionUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestDispenserInstructionUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_dispenserInstruction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestDispenseRequest", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationRequestDispenseRequestDispenserInstructionUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _MedicationRequestDispenseRequest_numberOfRepeatsAllowed(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_numberOfRepeatsAllowed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestDispenseRequest_dispenserInstruction_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberOfRepeatsAllowed, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_numberOfRepeatsAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationRequestDispenseRequest", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_quantity(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_quantity(ctx, field) +func (ec *executionContext) _MedicationRequestDispenseRequest_dispenser(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_dispenser(ctx, field) if err != nil { return graphql.Null } @@ -104275,21 +104409,24 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_quantity(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Quantity, nil + return obj.Dispenser, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_quantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_dispenser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestDispenseRequest", Field: field, @@ -104297,26 +104434,57 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_quanti IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationType_resourceType(ctx, field) case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationRequestDispenseRequest_dispenser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } @@ -104356,120 +104524,120 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_extens IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -104477,8 +104645,8 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_extens return fc, nil } -func (ec *executionContext) _MedicationRequestDispenseRequest_numberOfRepeatsAllowed(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestDispenseRequest_numberOfRepeatsAllowed(ctx, field) +func (ec *executionContext) _MedicationRequestDispenseRequest_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -104491,7 +104659,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_numberOfRepeatsAll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NumberOfRepeatsAllowed, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -104505,7 +104673,7 @@ func (ec *executionContext) _MedicationRequestDispenseRequest_numberOfRepeatsAll return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_numberOfRepeatsAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestDispenseRequest", Field: field, @@ -104554,12 +104722,6 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequestInitial IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) - case "extension": - return ec.fieldContext_Duration_extension(ctx, field) case "id": return ec.fieldContext_Duration_id(ctx, field) case "resourceType": @@ -104570,6 +104732,12 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequestInitial return ec.fieldContext_Duration_unit(ctx, field) case "value": return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) + case "extension": + return ec.fieldContext_Duration_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, @@ -104613,120 +104781,120 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequestInitial IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -104811,120 +104979,120 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequestInitial IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -105032,8 +105200,8 @@ func (ec *executionContext) fieldContext_MedicationRequestDispenseRequestInitial return fc, nil } -func (ec *executionContext) _MedicationRequestSubstitution_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestSubstitution_reason(ctx, field) +func (ec *executionContext) _MedicationRequestSubstitution_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestSubstitution_extension(ctx, field) if err != nil { return graphql.Null } @@ -105046,7 +105214,7 @@ func (ec *executionContext) _MedicationRequestSubstitution_reason(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -105055,12 +105223,12 @@ func (ec *executionContext) _MedicationRequestSubstitution_reason(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestSubstitution_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestSubstitution_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestSubstitution", Field: field, @@ -105068,66 +105236,129 @@ func (ec *executionContext) fieldContext_MedicationRequestSubstitution_reason(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MedicationRequestSubstitution_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestSubstitution_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationRequestSubstitution_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationRequestSubstitution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestSubstitution_allowedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestSubstitution_allowedBoolean(ctx, field) +func (ec *executionContext) _MedicationRequestSubstitution_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestSubstitution_id(ctx, field) if err != nil { return graphql.Null } @@ -105140,7 +105371,7 @@ func (ec *executionContext) _MedicationRequestSubstitution_allowedBoolean(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AllowedBoolean, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -105154,7 +105385,7 @@ func (ec *executionContext) _MedicationRequestSubstitution_allowedBoolean(ctx co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestSubstitution_allowedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestSubstitution_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestSubstitution", Field: field, @@ -105167,8 +105398,8 @@ func (ec *executionContext) fieldContext_MedicationRequestSubstitution_allowedBo return fc, nil } -func (ec *executionContext) _MedicationRequestSubstitution_allowedCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestSubstitution_allowedCodeableConcept(ctx, field) +func (ec *executionContext) _MedicationRequestSubstitution_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestSubstitution_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -105181,7 +105412,7 @@ func (ec *executionContext) _MedicationRequestSubstitution_allowedCodeableConcep }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AllowedCodeableConcept, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -105190,12 +105421,12 @@ func (ec *executionContext) _MedicationRequestSubstitution_allowedCodeableConcep if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestSubstitution_allowedCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestSubstitution_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestSubstitution", Field: field, @@ -105203,25 +105434,129 @@ func (ec *executionContext) fieldContext_MedicationRequestSubstitution_allowedCo IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestSubstitution_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestSubstitution_extension(ctx, field) +func (ec *executionContext) _MedicationRequestSubstitution_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestSubstitution_reason(ctx, field) if err != nil { return graphql.Null } @@ -105234,7 +105569,7 @@ func (ec *executionContext) _MedicationRequestSubstitution_extension(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -105243,12 +105578,12 @@ func (ec *executionContext) _MedicationRequestSubstitution_extension(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestSubstitution_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestSubstitution_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestSubstitution", Field: field, @@ -105256,129 +105591,25 @@ func (ec *executionContext) fieldContext_MedicationRequestSubstitution_extension IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestSubstitution_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestSubstitution_id(ctx, field) +func (ec *executionContext) _MedicationRequestSubstitution_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestSubstitution_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -105391,7 +105622,7 @@ func (ec *executionContext) _MedicationRequestSubstitution_id(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -105405,7 +105636,7 @@ func (ec *executionContext) _MedicationRequestSubstitution_id(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestSubstitution_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestSubstitution_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestSubstitution", Field: field, @@ -105418,8 +105649,8 @@ func (ec *executionContext) fieldContext_MedicationRequestSubstitution_id(_ cont return fc, nil } -func (ec *executionContext) _MedicationRequestSubstitution_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestSubstitution_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationRequestSubstitution_allowedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestSubstitution_allowedBoolean(ctx, field) if err != nil { return graphql.Null } @@ -105432,7 +105663,7 @@ func (ec *executionContext) _MedicationRequestSubstitution_modifierExtension(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.AllowedBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -105441,142 +105672,26 @@ func (ec *executionContext) _MedicationRequestSubstitution_modifierExtension(ctx if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestSubstitution_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestSubstitution_allowedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestSubstitution", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_medication(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_medication(ctx, field) +func (ec *executionContext) _MedicationRequestSubstitution_allowedCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestSubstitution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestSubstitution_allowedCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -105589,7 +105704,7 @@ func (ec *executionContext) _MedicationRequestType_medication(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Medication, nil + return obj.AllowedCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -105598,36 +105713,38 @@ func (ec *executionContext) _MedicationRequestType_medication(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_medication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestSubstitution_allowedCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationRequestType", + Object: "MedicationRequestSubstitution", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_resourceType(ctx, field) +func (ec *executionContext) _MedicationRequestType_subject(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_subject(ctx, field) if err != nil { return graphql.Null } @@ -105640,35 +105757,49 @@ func (ec *executionContext) _MedicationRequestType_resourceType(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.MedicationRequestSubjectUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNMedicationRequestSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubjectUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type MedicationRequestSubjectUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationRequestType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationRequestType_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_reason(ctx, field) +func (ec *executionContext) _MedicationRequestType_dosageInstruction(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_dosageInstruction(ctx, field) if err != nil { return graphql.Null } @@ -105681,7 +105812,7 @@ func (ec *executionContext) _MedicationRequestType_reason(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.DosageInstruction, nil }) if err != nil { ec.Error(ctx, err) @@ -105690,12 +105821,12 @@ func (ec *executionContext) _MedicationRequestType_reason(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.([]*model.Dosage) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalODosage2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_dosageInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -105703,23 +105834,51 @@ func (ec *executionContext) fieldContext_MedicationRequestType_reason(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + case "doseAndRate": + return ec.fieldContext_Dosage_doseAndRate(ctx, field) + case "additionalInstruction": + return ec.fieldContext_Dosage_additionalInstruction(ctx, field) + case "route": + return ec.fieldContext_Dosage_route(ctx, field) + case "timing": + return ec.fieldContext_Dosage_timing(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) + return ec.fieldContext_Dosage_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Dosage_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_Dosage_resourceType(ctx, field) + case "text": + return ec.fieldContext_Dosage_text(ctx, field) + case "sequence": + return ec.fieldContext_Dosage_sequence(ctx, field) + case "asNeeded": + return ec.fieldContext_Dosage_asNeeded(ctx, field) + case "site": + return ec.fieldContext_Dosage_site(ctx, field) + case "extension": + return ec.fieldContext_Dosage_extension(ctx, field) + case "patientInstruction": + return ec.fieldContext_Dosage_patientInstruction(ctx, field) + case "asNeededFor": + return ec.fieldContext_Dosage_asNeededFor(ctx, field) + case "maxDosePerLifetime": + return ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) + case "method": + return ec.fieldContext_Dosage_method(ctx, field) + case "maxDosePerPeriod": + return ec.fieldContext_Dosage_maxDosePerPeriod(ctx, field) + case "maxDosePerAdministration": + return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Dosage", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_statusChanged(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_statusChanged(ctx, field) +func (ec *executionContext) _MedicationRequestType_note(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_note(ctx, field) if err != nil { return graphql.Null } @@ -105732,35 +105891,49 @@ func (ec *executionContext) _MedicationRequestType_statusChanged(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StatusChanged, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.MedicationRequestNoteUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNMedicationRequestNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_statusChanged(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type MedicationRequestNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationRequestType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationRequestType_courseOfTherapyType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_courseOfTherapyType(ctx, field) +func (ec *executionContext) _MedicationRequestType_category(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_category(ctx, field) if err != nil { return graphql.Null } @@ -105773,7 +105946,7 @@ func (ec *executionContext) _MedicationRequestType_courseOfTherapyType(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CourseOfTherapyType, nil + return obj.Category, nil }) if err != nil { ec.Error(ctx, err) @@ -105782,12 +105955,12 @@ func (ec *executionContext) _MedicationRequestType_courseOfTherapyType(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_courseOfTherapyType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -105795,6 +105968,8 @@ func (ec *executionContext) fieldContext_MedicationRequestType_courseOfTherapyTy IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -105803,8 +105978,6 @@ func (ec *executionContext) fieldContext_MedicationRequestType_courseOfTherapyTy return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -105812,8 +105985,8 @@ func (ec *executionContext) fieldContext_MedicationRequestType_courseOfTherapyTy return fc, nil } -func (ec *executionContext) _MedicationRequestType_effectiveDosePeriod(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_effectiveDosePeriod(ctx, field) +func (ec *executionContext) _MedicationRequestType_medication(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_medication(ctx, field) if err != nil { return graphql.Null } @@ -105826,7 +105999,7 @@ func (ec *executionContext) _MedicationRequestType_effectiveDosePeriod(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectiveDosePeriod, nil + return obj.Medication, nil }) if err != nil { ec.Error(ctx, err) @@ -105835,12 +106008,12 @@ func (ec *executionContext) _MedicationRequestType_effectiveDosePeriod(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_effectiveDosePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_medication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -105848,25 +106021,23 @@ func (ec *executionContext) fieldContext_MedicationRequestType_effectiveDosePeri IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_Period_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_device(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_device(ctx, field) +func (ec *executionContext) _MedicationRequestType_priority(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_priority(ctx, field) if err != nil { return graphql.Null } @@ -105879,7 +106050,7 @@ func (ec *executionContext) _MedicationRequestType_device(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Device, nil + return obj.Priority, nil }) if err != nil { ec.Error(ctx, err) @@ -105888,36 +106059,26 @@ func (ec *executionContext) _MedicationRequestType_device(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_device(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_supportingInformation(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_supportingInformation(ctx, field) +func (ec *executionContext) _MedicationRequestType_contained(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_contained(ctx, field) if err != nil { return graphql.Null } @@ -105930,7 +106091,7 @@ func (ec *executionContext) _MedicationRequestType_supportingInformation(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SupportingInformation, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -105944,7 +106105,7 @@ func (ec *executionContext) _MedicationRequestType_supportingInformation(ctx con return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_supportingInformation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -105954,22 +106115,11 @@ func (ec *executionContext) fieldContext_MedicationRequestType_supportingInforma return nil, errors.New("field of type ResourceUnion does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestType_supportingInformation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationRequestType_performer(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_performer(ctx, field) +func (ec *executionContext) _MedicationRequestType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -105982,7 +106132,7 @@ func (ec *executionContext) _MedicationRequestType_performer(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Performer, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -105991,37 +106141,142 @@ func (ec *executionContext) _MedicationRequestType_performer(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]model.MedicationRequestPerformerUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOMedicationRequestPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestPerformerUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationRequestPerformerUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestType_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationRequestType_authoredOn(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_authoredOn(ctx, field) +func (ec *executionContext) _MedicationRequestType_courseOfTherapyType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_courseOfTherapyType(ctx, field) if err != nil { return graphql.Null } @@ -106034,7 +106289,7 @@ func (ec *executionContext) _MedicationRequestType_authoredOn(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthoredOn, nil + return obj.CourseOfTherapyType, nil }) if err != nil { ec.Error(ctx, err) @@ -106043,26 +106298,38 @@ func (ec *executionContext) _MedicationRequestType_authoredOn(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_authoredOn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_courseOfTherapyType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_note(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_note(ctx, field) +func (ec *executionContext) _MedicationRequestType_dispenseRequest(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_dispenseRequest(ctx, field) if err != nil { return graphql.Null } @@ -106075,7 +106342,7 @@ func (ec *executionContext) _MedicationRequestType_note(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.DispenseRequest, nil }) if err != nil { ec.Error(ctx, err) @@ -106084,32 +106351,49 @@ func (ec *executionContext) _MedicationRequestType_note(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]model.MedicationRequestNoteUnion) + res := resTmp.(*model.MedicationRequestDispenseRequest) fc.Result = res - return ec.marshalOMedicationRequestNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestNoteUnion(ctx, field.Selections, res) + return ec.marshalOMedicationRequestDispenseRequest2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequest(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_dispenseRequest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationRequestNoteUnion does not have child fields") + switch field.Name { + case "dispenserInstruction": + return ec.fieldContext_MedicationRequestDispenseRequest_dispenserInstruction(ctx, field) + case "id": + return ec.fieldContext_MedicationRequestDispenseRequest_id(ctx, field) + case "dispenseInterval": + return ec.fieldContext_MedicationRequestDispenseRequest_dispenseInterval(ctx, field) + case "doseAdministrationAid": + return ec.fieldContext_MedicationRequestDispenseRequest_doseAdministrationAid(ctx, field) + case "initialFill": + return ec.fieldContext_MedicationRequestDispenseRequest_initialFill(ctx, field) + case "quantity": + return ec.fieldContext_MedicationRequestDispenseRequest_quantity(ctx, field) + case "validityPeriod": + return ec.fieldContext_MedicationRequestDispenseRequest_validityPeriod(ctx, field) + case "expectedSupplyDuration": + return ec.fieldContext_MedicationRequestDispenseRequest_expectedSupplyDuration(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationRequestDispenseRequest_modifierExtension(ctx, field) + case "numberOfRepeatsAllowed": + return ec.fieldContext_MedicationRequestDispenseRequest_numberOfRepeatsAllowed(ctx, field) + case "dispenser": + return ec.fieldContext_MedicationRequestDispenseRequest_dispenser(ctx, field) + case "extension": + return ec.fieldContext_MedicationRequestDispenseRequest_extension(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationRequestDispenseRequest_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationRequestDispenseRequest", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -106149,8 +106433,6 @@ func (ec *executionContext) fieldContext_MedicationRequestType_text(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) case "extension": return ec.fieldContext_Narrative_extension(ctx, field) case "id": @@ -106159,6 +106441,8 @@ func (ec *executionContext) fieldContext_MedicationRequestType_text(_ context.Co return ec.fieldContext_Narrative_resourceType(ctx, field) case "status": return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, @@ -106166,49 +106450,8 @@ func (ec *executionContext) fieldContext_MedicationRequestType_text(_ context.Co return fc, nil } -func (ec *executionContext) _MedicationRequestType_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationRequestType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationRequestType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MedicationRequestType_language(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_language(ctx, field) +func (ec *executionContext) _MedicationRequestType_effectiveDosePeriod(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_effectiveDosePeriod(ctx, field) if err != nil { return graphql.Null } @@ -106221,7 +106464,7 @@ func (ec *executionContext) _MedicationRequestType_language(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.EffectiveDosePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -106230,26 +106473,38 @@ func (ec *executionContext) _MedicationRequestType_language(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_effectiveDosePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_status(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_status(ctx, field) +func (ec *executionContext) _MedicationRequestType_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_extension(ctx, field) if err != nil { return graphql.Null } @@ -106262,7 +106517,7 @@ func (ec *executionContext) _MedicationRequestType_status(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -106271,67 +106526,142 @@ func (ec *executionContext) _MedicationRequestType_status(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MedicationRequestType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_implicitRules(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationRequestType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationRequestType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_requester(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_requester(ctx, field) +func (ec *executionContext) _MedicationRequestType_performerType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_performerType(ctx, field) if err != nil { return graphql.Null } @@ -106344,7 +106674,7 @@ func (ec *executionContext) _MedicationRequestType_requester(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Requester, nil + return obj.PerformerType, nil }) if err != nil { ec.Error(ctx, err) @@ -106353,32 +106683,33 @@ func (ec *executionContext) _MedicationRequestType_requester(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]model.MedicationRequestRequesterUnion) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOMedicationRequestRequesterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRequesterUnion(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_requester(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_performerType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationRequestRequesterUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestType_requester_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -106418,24 +106749,24 @@ func (ec *executionContext) fieldContext_MedicationRequestType_groupIdentifier(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) case "extension": return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) case "period": return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) case "value": return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) case "id": return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, @@ -106443,8 +106774,8 @@ func (ec *executionContext) fieldContext_MedicationRequestType_groupIdentifier(_ return fc, nil } -func (ec *executionContext) _MedicationRequestType_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_statusReason(ctx, field) +func (ec *executionContext) _MedicationRequestType_substitution(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_substitution(ctx, field) if err != nil { return graphql.Null } @@ -106457,7 +106788,7 @@ func (ec *executionContext) _MedicationRequestType_statusReason(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StatusReason, nil + return obj.Substitution, nil }) if err != nil { ec.Error(ctx, err) @@ -106466,12 +106797,12 @@ func (ec *executionContext) _MedicationRequestType_statusReason(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.MedicationRequestSubstitution) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOMedicationRequestSubstitution2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubstitution(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_substitution(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -106479,25 +106810,29 @@ func (ec *executionContext) fieldContext_MedicationRequestType_statusReason(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_MedicationRequestSubstitution_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_MedicationRequestSubstitution_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationRequestSubstitution_modifierExtension(ctx, field) + case "reason": + return ec.fieldContext_MedicationRequestSubstitution_reason(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_MedicationRequestSubstitution_resourceType(ctx, field) + case "allowedBoolean": + return ec.fieldContext_MedicationRequestSubstitution_allowedBoolean(ctx, field) + case "allowedCodeableConcept": + return ec.fieldContext_MedicationRequestSubstitution_allowedCodeableConcept(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type MedicationRequestSubstitution", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_intent(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_intent(ctx, field) +func (ec *executionContext) _MedicationRequestType_status(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_status(ctx, field) if err != nil { return graphql.Null } @@ -106510,7 +106845,7 @@ func (ec *executionContext) _MedicationRequestType_intent(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Intent, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -106524,7 +106859,7 @@ func (ec *executionContext) _MedicationRequestType_intent(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_intent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -106537,8 +106872,8 @@ func (ec *executionContext) fieldContext_MedicationRequestType_intent(_ context. return fc, nil } -func (ec *executionContext) _MedicationRequestType_dosageInstruction(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_dosageInstruction(ctx, field) +func (ec *executionContext) _MedicationRequestType_supportingInformation(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_supportingInformation(ctx, field) if err != nil { return graphql.Null } @@ -106551,68 +106886,44 @@ func (ec *executionContext) _MedicationRequestType_dosageInstruction(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DosageInstruction, nil + return obj.SupportingInformation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Dosage) + res := resTmp.(model.ResourceUnion) fc.Result = res - return ec.marshalODosage2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) + return ec.marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_dosageInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_supportingInformation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "asNeededFor": - return ec.fieldContext_Dosage_asNeededFor(ctx, field) - case "doseAndRate": - return ec.fieldContext_Dosage_doseAndRate(ctx, field) - case "route": - return ec.fieldContext_Dosage_route(ctx, field) - case "method": - return ec.fieldContext_Dosage_method(ctx, field) - case "modifierExtension": - return ec.fieldContext_Dosage_modifierExtension(ctx, field) - case "patientInstruction": - return ec.fieldContext_Dosage_patientInstruction(ctx, field) - case "text": - return ec.fieldContext_Dosage_text(ctx, field) - case "extension": - return ec.fieldContext_Dosage_extension(ctx, field) - case "site": - return ec.fieldContext_Dosage_site(ctx, field) - case "maxDosePerAdministration": - return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) - case "maxDosePerLifetime": - return ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) - case "resourceType": - return ec.fieldContext_Dosage_resourceType(ctx, field) - case "additionalInstruction": - return ec.fieldContext_Dosage_additionalInstruction(ctx, field) - case "asNeeded": - return ec.fieldContext_Dosage_asNeeded(ctx, field) - case "timing": - return ec.fieldContext_Dosage_timing(ctx, field) - case "id": - return ec.fieldContext_Dosage_id(ctx, field) - case "sequence": - return ec.fieldContext_Dosage_sequence(ctx, field) - case "maxDosePerPeriod": - return ec.fieldContext_Dosage_maxDosePerPeriod(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Dosage", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationRequestType_supportingInformation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } @@ -106637,11 +106948,14 @@ func (ec *executionContext) _MedicationRequestType_informationSource(ctx context return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.MedicationRequestInformationSourceUnion) + res := resTmp.(model.MedicationRequestInformationSourceUnion) fc.Result = res - return ec.marshalOMedicationRequestInformationSourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestInformationSourceUnion(ctx, field.Selections, res) + return ec.marshalNMedicationRequestInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestInformationSourceUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_MedicationRequestType_informationSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -106668,8 +106982,8 @@ func (ec *executionContext) fieldContext_MedicationRequestType_informationSource return fc, nil } -func (ec *executionContext) _MedicationRequestType_performerType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_performerType(ctx, field) +func (ec *executionContext) _MedicationRequestType_doNotPerform(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_doNotPerform(ctx, field) if err != nil { return graphql.Null } @@ -106682,7 +106996,7 @@ func (ec *executionContext) _MedicationRequestType_performerType(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PerformerType, nil + return obj.DoNotPerform, nil }) if err != nil { ec.Error(ctx, err) @@ -106691,38 +107005,26 @@ func (ec *executionContext) _MedicationRequestType_performerType(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_performerType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_doNotPerform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_identifier(ctx, field) +func (ec *executionContext) _MedicationRequestType_reported(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_reported(ctx, field) if err != nil { return graphql.Null } @@ -106735,7 +107037,7 @@ func (ec *executionContext) _MedicationRequestType_identifier(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Reported, nil }) if err != nil { ec.Error(ctx, err) @@ -106744,46 +107046,26 @@ func (ec *executionContext) _MedicationRequestType_identifier(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_reported(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationRequestType_performer(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_performer(ctx, field) if err != nil { return graphql.Null } @@ -106796,204 +107078,49 @@ func (ec *executionContext) _MedicationRequestType_modifierExtension(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Performer, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(model.MedicationRequestPerformerUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNMedicationRequestPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestPerformerUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type MedicationRequestPerformerUnion does not have child fields") }, } - return fc, nil -} - -func (ec *executionContext) _MedicationRequestType_category(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_category(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Category, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationRequestType_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.CodeableConcept) - fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationRequestType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationRequestType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, + return fc, err } return fc, nil } -func (ec *executionContext) _MedicationRequestType_recorder(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_recorder(ctx, field) +func (ec *executionContext) _MedicationRequestType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_basedOn(ctx, field) if err != nil { return graphql.Null } @@ -107006,28 +107133,31 @@ func (ec *executionContext) _MedicationRequestType_recorder(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Recorder, nil + return obj.BasedOn, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.MedicationRequestRecorderUnion) + res := resTmp.(model.MedicationRequestBasedOnUnion) fc.Result = res - return ec.marshalOMedicationRequestRecorderUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRecorderUnion(ctx, field.Selections, res) + return ec.marshalNMedicationRequestBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestBasedOnUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_recorder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationRequestRecorderUnion does not have child fields") + return nil, errors.New("field of type MedicationRequestBasedOnUnion does not have child fields") }, } defer func() { @@ -107037,15 +107167,15 @@ func (ec *executionContext) fieldContext_MedicationRequestType_recorder(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestType_recorder_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_MedicationRequestType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _MedicationRequestType_priorPrescription(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_priorPrescription(ctx, field) +func (ec *executionContext) _MedicationRequestType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -107058,7 +107188,7 @@ func (ec *executionContext) _MedicationRequestType_priorPrescription(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PriorPrescription, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -107067,12 +107197,12 @@ func (ec *executionContext) _MedicationRequestType_priorPrescription(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.MedicationRequestType) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOMedicationRequestType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_priorPrescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -107080,104 +107210,33 @@ func (ec *executionContext) fieldContext_MedicationRequestType_priorPrescription IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "medication": - return ec.fieldContext_MedicationRequestType_medication(ctx, field) + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_MedicationRequestType_resourceType(ctx, field) - case "reason": - return ec.fieldContext_MedicationRequestType_reason(ctx, field) - case "statusChanged": - return ec.fieldContext_MedicationRequestType_statusChanged(ctx, field) - case "courseOfTherapyType": - return ec.fieldContext_MedicationRequestType_courseOfTherapyType(ctx, field) - case "effectiveDosePeriod": - return ec.fieldContext_MedicationRequestType_effectiveDosePeriod(ctx, field) - case "device": - return ec.fieldContext_MedicationRequestType_device(ctx, field) - case "supportingInformation": - return ec.fieldContext_MedicationRequestType_supportingInformation(ctx, field) - case "performer": - return ec.fieldContext_MedicationRequestType_performer(ctx, field) - case "authoredOn": - return ec.fieldContext_MedicationRequestType_authoredOn(ctx, field) - case "note": - return ec.fieldContext_MedicationRequestType_note(ctx, field) - case "text": - return ec.fieldContext_MedicationRequestType_text(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) case "id": - return ec.fieldContext_MedicationRequestType_id(ctx, field) - case "language": - return ec.fieldContext_MedicationRequestType_language(ctx, field) - case "status": - return ec.fieldContext_MedicationRequestType_status(ctx, field) - case "implicitRules": - return ec.fieldContext_MedicationRequestType_implicitRules(ctx, field) - case "requester": - return ec.fieldContext_MedicationRequestType_requester(ctx, field) - case "groupIdentifier": - return ec.fieldContext_MedicationRequestType_groupIdentifier(ctx, field) - case "statusReason": - return ec.fieldContext_MedicationRequestType_statusReason(ctx, field) - case "intent": - return ec.fieldContext_MedicationRequestType_intent(ctx, field) - case "dosageInstruction": - return ec.fieldContext_MedicationRequestType_dosageInstruction(ctx, field) - case "informationSource": - return ec.fieldContext_MedicationRequestType_informationSource(ctx, field) - case "performerType": - return ec.fieldContext_MedicationRequestType_performerType(ctx, field) - case "identifier": - return ec.fieldContext_MedicationRequestType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationRequestType_modifierExtension(ctx, field) - case "category": - return ec.fieldContext_MedicationRequestType_category(ctx, field) - case "recorder": - return ec.fieldContext_MedicationRequestType_recorder(ctx, field) - case "priorPrescription": - return ec.fieldContext_MedicationRequestType_priorPrescription(ctx, field) - case "meta": - return ec.fieldContext_MedicationRequestType_meta(ctx, field) - case "basedOn": - return ec.fieldContext_MedicationRequestType_basedOn(ctx, field) - case "extension": - return ec.fieldContext_MedicationRequestType_extension(ctx, field) - case "renderedDosageInstruction": - return ec.fieldContext_MedicationRequestType_renderedDosageInstruction(ctx, field) - case "reported": - return ec.fieldContext_MedicationRequestType_reported(ctx, field) - case "substitution": - return ec.fieldContext_MedicationRequestType_substitution(ctx, field) - case "doNotPerform": - return ec.fieldContext_MedicationRequestType_doNotPerform(ctx, field) - case "contained": - return ec.fieldContext_MedicationRequestType_contained(ctx, field) - case "subject": - return ec.fieldContext_MedicationRequestType_subject(ctx, field) - case "dispenseRequest": - return ec.fieldContext_MedicationRequestType_dispenseRequest(ctx, field) - case "priority": - return ec.fieldContext_MedicationRequestType_priority(ctx, field) + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type MedicationRequestType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestType_priorPrescription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationRequestType_meta(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_meta(ctx, field) +func (ec *executionContext) _MedicationRequestType_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_statusReason(ctx, field) if err != nil { return graphql.Null } @@ -107190,7 +107249,7 @@ func (ec *executionContext) _MedicationRequestType_meta(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.StatusReason, nil }) if err != nil { ec.Error(ctx, err) @@ -107199,12 +107258,12 @@ func (ec *executionContext) _MedicationRequestType_meta(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -107212,33 +107271,25 @@ func (ec *executionContext) fieldContext_MedicationRequestType_meta(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_basedOn(ctx, field) +func (ec *executionContext) _MedicationRequestType_renderedDosageInstruction(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_renderedDosageInstruction(ctx, field) if err != nil { return graphql.Null } @@ -107251,7 +107302,7 @@ func (ec *executionContext) _MedicationRequestType_basedOn(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BasedOn, nil + return obj.RenderedDosageInstruction, nil }) if err != nil { ec.Error(ctx, err) @@ -107260,37 +107311,26 @@ func (ec *executionContext) _MedicationRequestType_basedOn(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]model.MedicationRequestBasedOnUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMedicationRequestBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestBasedOnUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_renderedDosageInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationRequestBasedOnUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationRequestType_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_extension(ctx, field) +func (ec *executionContext) _MedicationRequestType_recorder(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_recorder(ctx, field) if err != nil { return graphql.Null } @@ -107303,151 +107343,49 @@ func (ec *executionContext) _MedicationRequestType_extension(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Recorder, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(model.MedicationRequestRecorderUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNMedicationRequestRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRecorderUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_recorder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type MedicationRequestRecorderUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationRequestType_recorder_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationRequestType_renderedDosageInstruction(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_renderedDosageInstruction(ctx, field) +func (ec *executionContext) _MedicationRequestType_authoredOn(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_authoredOn(ctx, field) if err != nil { return graphql.Null } @@ -107460,7 +107398,7 @@ func (ec *executionContext) _MedicationRequestType_renderedDosageInstruction(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RenderedDosageInstruction, nil + return obj.AuthoredOn, nil }) if err != nil { ec.Error(ctx, err) @@ -107474,7 +107412,7 @@ func (ec *executionContext) _MedicationRequestType_renderedDosageInstruction(ctx return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_renderedDosageInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_authoredOn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -107487,8 +107425,8 @@ func (ec *executionContext) fieldContext_MedicationRequestType_renderedDosageIns return fc, nil } -func (ec *executionContext) _MedicationRequestType_reported(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_reported(ctx, field) +func (ec *executionContext) _MedicationRequestType_intent(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_intent(ctx, field) if err != nil { return graphql.Null } @@ -107501,7 +107439,7 @@ func (ec *executionContext) _MedicationRequestType_reported(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reported, nil + return obj.Intent, nil }) if err != nil { ec.Error(ctx, err) @@ -107515,7 +107453,7 @@ func (ec *executionContext) _MedicationRequestType_reported(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_reported(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_intent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -107528,8 +107466,8 @@ func (ec *executionContext) fieldContext_MedicationRequestType_reported(_ contex return fc, nil } -func (ec *executionContext) _MedicationRequestType_substitution(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_substitution(ctx, field) +func (ec *executionContext) _MedicationRequestType_language(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_language(ctx, field) if err != nil { return graphql.Null } @@ -107542,7 +107480,7 @@ func (ec *executionContext) _MedicationRequestType_substitution(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Substitution, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -107551,42 +107489,26 @@ func (ec *executionContext) _MedicationRequestType_substitution(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.MedicationRequestSubstitution) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMedicationRequestSubstitution2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubstitution(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_substitution(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "reason": - return ec.fieldContext_MedicationRequestSubstitution_reason(ctx, field) - case "resourceType": - return ec.fieldContext_MedicationRequestSubstitution_resourceType(ctx, field) - case "allowedBoolean": - return ec.fieldContext_MedicationRequestSubstitution_allowedBoolean(ctx, field) - case "allowedCodeableConcept": - return ec.fieldContext_MedicationRequestSubstitution_allowedCodeableConcept(ctx, field) - case "extension": - return ec.fieldContext_MedicationRequestSubstitution_extension(ctx, field) - case "id": - return ec.fieldContext_MedicationRequestSubstitution_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationRequestSubstitution_modifierExtension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MedicationRequestSubstitution", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_doNotPerform(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_doNotPerform(ctx, field) +func (ec *executionContext) _MedicationRequestType_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_reason(ctx, field) if err != nil { return graphql.Null } @@ -107599,7 +107521,7 @@ func (ec *executionContext) _MedicationRequestType_doNotPerform(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DoNotPerform, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -107608,26 +107530,36 @@ func (ec *executionContext) _MedicationRequestType_doNotPerform(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_doNotPerform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_contained(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_contained(ctx, field) +func (ec *executionContext) _MedicationRequestType_meta(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_meta(ctx, field) if err != nil { return graphql.Null } @@ -107640,7 +107572,7 @@ func (ec *executionContext) _MedicationRequestType_contained(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -107649,26 +107581,46 @@ func (ec *executionContext) _MedicationRequestType_contained(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationRequestType_subject(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_subject(ctx, field) +func (ec *executionContext) _MedicationRequestType_requester(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_requester(ctx, field) if err != nil { return graphql.Null } @@ -107681,28 +107633,31 @@ func (ec *executionContext) _MedicationRequestType_subject(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.Requester, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.MedicationRequestSubjectUnion) + res := resTmp.(model.MedicationRequestRequesterUnion) fc.Result = res - return ec.marshalOMedicationRequestSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubjectUnion(ctx, field.Selections, res) + return ec.marshalNMedicationRequestRequesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRequesterUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_requester(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationRequestSubjectUnion does not have child fields") + return nil, errors.New("field of type MedicationRequestRequesterUnion does not have child fields") }, } defer func() { @@ -107712,15 +107667,15 @@ func (ec *executionContext) fieldContext_MedicationRequestType_subject(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationRequestType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_MedicationRequestType_requester_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _MedicationRequestType_dispenseRequest(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_dispenseRequest(ctx, field) +func (ec *executionContext) _MedicationRequestType_priorPrescription(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_priorPrescription(ctx, field) if err != nil { return graphql.Null } @@ -107733,21 +107688,24 @@ func (ec *executionContext) _MedicationRequestType_dispenseRequest(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DispenseRequest, nil + return obj.PriorPrescription, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.MedicationRequestDispenseRequest) + res := resTmp.(*model.MedicationRequestType) fc.Result = res - return ec.marshalOMedicationRequestDispenseRequest2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequest(ctx, field.Selections, res) + return ec.marshalNMedicationRequestType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationRequestType_dispenseRequest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_priorPrescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationRequestType", Field: field, @@ -107755,82 +107713,104 @@ func (ec *executionContext) fieldContext_MedicationRequestType_dispenseRequest(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "expectedSupplyDuration": - return ec.fieldContext_MedicationRequestDispenseRequest_expectedSupplyDuration(ctx, field) - case "initialFill": - return ec.fieldContext_MedicationRequestDispenseRequest_initialFill(ctx, field) + case "subject": + return ec.fieldContext_MedicationRequestType_subject(ctx, field) + case "dosageInstruction": + return ec.fieldContext_MedicationRequestType_dosageInstruction(ctx, field) + case "note": + return ec.fieldContext_MedicationRequestType_note(ctx, field) + case "category": + return ec.fieldContext_MedicationRequestType_category(ctx, field) + case "medication": + return ec.fieldContext_MedicationRequestType_medication(ctx, field) + case "priority": + return ec.fieldContext_MedicationRequestType_priority(ctx, field) + case "contained": + return ec.fieldContext_MedicationRequestType_contained(ctx, field) case "modifierExtension": - return ec.fieldContext_MedicationRequestDispenseRequest_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_MedicationRequestDispenseRequest_resourceType(ctx, field) - case "validityPeriod": - return ec.fieldContext_MedicationRequestDispenseRequest_validityPeriod(ctx, field) - case "doseAdministrationAid": - return ec.fieldContext_MedicationRequestDispenseRequest_doseAdministrationAid(ctx, field) - case "id": - return ec.fieldContext_MedicationRequestDispenseRequest_id(ctx, field) - case "dispenseInterval": - return ec.fieldContext_MedicationRequestDispenseRequest_dispenseInterval(ctx, field) - case "dispenser": - return ec.fieldContext_MedicationRequestDispenseRequest_dispenser(ctx, field) - case "dispenserInstruction": - return ec.fieldContext_MedicationRequestDispenseRequest_dispenserInstruction(ctx, field) - case "quantity": - return ec.fieldContext_MedicationRequestDispenseRequest_quantity(ctx, field) + return ec.fieldContext_MedicationRequestType_modifierExtension(ctx, field) + case "courseOfTherapyType": + return ec.fieldContext_MedicationRequestType_courseOfTherapyType(ctx, field) + case "dispenseRequest": + return ec.fieldContext_MedicationRequestType_dispenseRequest(ctx, field) + case "text": + return ec.fieldContext_MedicationRequestType_text(ctx, field) + case "effectiveDosePeriod": + return ec.fieldContext_MedicationRequestType_effectiveDosePeriod(ctx, field) case "extension": - return ec.fieldContext_MedicationRequestDispenseRequest_extension(ctx, field) - case "numberOfRepeatsAllowed": - return ec.fieldContext_MedicationRequestDispenseRequest_numberOfRepeatsAllowed(ctx, field) + return ec.fieldContext_MedicationRequestType_extension(ctx, field) + case "performerType": + return ec.fieldContext_MedicationRequestType_performerType(ctx, field) + case "groupIdentifier": + return ec.fieldContext_MedicationRequestType_groupIdentifier(ctx, field) + case "substitution": + return ec.fieldContext_MedicationRequestType_substitution(ctx, field) + case "status": + return ec.fieldContext_MedicationRequestType_status(ctx, field) + case "supportingInformation": + return ec.fieldContext_MedicationRequestType_supportingInformation(ctx, field) + case "informationSource": + return ec.fieldContext_MedicationRequestType_informationSource(ctx, field) + case "doNotPerform": + return ec.fieldContext_MedicationRequestType_doNotPerform(ctx, field) + case "reported": + return ec.fieldContext_MedicationRequestType_reported(ctx, field) + case "performer": + return ec.fieldContext_MedicationRequestType_performer(ctx, field) + case "basedOn": + return ec.fieldContext_MedicationRequestType_basedOn(ctx, field) + case "identifier": + return ec.fieldContext_MedicationRequestType_identifier(ctx, field) + case "statusReason": + return ec.fieldContext_MedicationRequestType_statusReason(ctx, field) + case "renderedDosageInstruction": + return ec.fieldContext_MedicationRequestType_renderedDosageInstruction(ctx, field) + case "recorder": + return ec.fieldContext_MedicationRequestType_recorder(ctx, field) + case "authoredOn": + return ec.fieldContext_MedicationRequestType_authoredOn(ctx, field) + case "intent": + return ec.fieldContext_MedicationRequestType_intent(ctx, field) + case "language": + return ec.fieldContext_MedicationRequestType_language(ctx, field) + case "reason": + return ec.fieldContext_MedicationRequestType_reason(ctx, field) + case "meta": + return ec.fieldContext_MedicationRequestType_meta(ctx, field) + case "requester": + return ec.fieldContext_MedicationRequestType_requester(ctx, field) + case "priorPrescription": + return ec.fieldContext_MedicationRequestType_priorPrescription(ctx, field) + case "device": + return ec.fieldContext_MedicationRequestType_device(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationRequestType_resourceType(ctx, field) + case "statusChanged": + return ec.fieldContext_MedicationRequestType_statusChanged(ctx, field) + case "implicitRules": + return ec.fieldContext_MedicationRequestType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_MedicationRequestType_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type MedicationRequestDispenseRequest", field.Name) + return nil, fmt.Errorf("no field named %q was found under type MedicationRequestType", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _MedicationRequestType_priority(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationRequestType_priority(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Priority, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationRequestType_priorPrescription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationRequestType_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationRequestType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _MedicationStatementAdherence_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementAdherence_extension(ctx, field) +func (ec *executionContext) _MedicationRequestType_device(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_device(ctx, field) if err != nil { return graphql.Null } @@ -107843,7 +107823,7 @@ func (ec *executionContext) _MedicationStatementAdherence_extension(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Device, nil }) if err != nil { ec.Error(ctx, err) @@ -107852,142 +107832,36 @@ func (ec *executionContext) _MedicationStatementAdherence_extension(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementAdherence_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_device(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementAdherence", + Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationStatementAdherence_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementAdherence_id(ctx, field) +func (ec *executionContext) _MedicationRequestType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -108000,7 +107874,7 @@ func (ec *executionContext) _MedicationStatementAdherence_id(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -108014,9 +107888,9 @@ func (ec *executionContext) _MedicationStatementAdherence_id(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementAdherence_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementAdherence", + Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, @@ -108027,8 +107901,8 @@ func (ec *executionContext) fieldContext_MedicationStatementAdherence_id(_ conte return fc, nil } -func (ec *executionContext) _MedicationStatementAdherence_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementAdherence_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationRequestType_statusChanged(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_statusChanged(ctx, field) if err != nil { return graphql.Null } @@ -108041,7 +107915,7 @@ func (ec *executionContext) _MedicationStatementAdherence_modifierExtension(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.StatusChanged, nil }) if err != nil { ec.Error(ctx, err) @@ -108050,142 +107924,26 @@ func (ec *executionContext) _MedicationStatementAdherence_modifierExtension(ctx if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementAdherence_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_statusChanged(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementAdherence", + Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationStatementAdherence_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementAdherence_reason(ctx, field) +func (ec *executionContext) _MedicationRequestType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -108198,7 +107956,7 @@ func (ec *executionContext) _MedicationStatementAdherence_reason(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -108207,38 +107965,26 @@ func (ec *executionContext) _MedicationStatementAdherence_reason(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementAdherence_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementAdherence", + Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationStatementAdherence_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementAdherence_resourceType(ctx, field) +func (ec *executionContext) _MedicationRequestType_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_id(ctx, field) if err != nil { return graphql.Null } @@ -108251,7 +107997,7 @@ func (ec *executionContext) _MedicationStatementAdherence_resourceType(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -108265,9 +108011,9 @@ func (ec *executionContext) _MedicationStatementAdherence_resourceType(ctx conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementAdherence_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationRequestType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementAdherence", + Object: "MedicationRequestType", Field: field, IsMethod: false, IsResolver: false, @@ -108314,6 +108060,8 @@ func (ec *executionContext) fieldContext_MedicationStatementAdherence_code(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -108322,8 +108070,6 @@ func (ec *executionContext) fieldContext_MedicationStatementAdherence_code(_ con return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -108331,60 +108077,8 @@ func (ec *executionContext) fieldContext_MedicationStatementAdherence_code(_ con return fc, nil } -func (ec *executionContext) _MedicationStatementType_relatedClinicalInformation(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_relatedClinicalInformation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RelatedClinicalInformation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.MedicationStatementRelatedClinicalInformationUnion) - fc.Result = res - return ec.marshalOMedicationStatementRelatedClinicalInformationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementRelatedClinicalInformationUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationStatementType_relatedClinicalInformation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationStatementType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationStatementRelatedClinicalInformationUnion does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationStatementType_relatedClinicalInformation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _MedicationStatementType_meta(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_meta(ctx, field) +func (ec *executionContext) _MedicationStatementAdherence_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementAdherence_extension(ctx, field) if err != nil { return graphql.Null } @@ -108397,7 +108091,7 @@ func (ec *executionContext) _MedicationStatementType_meta(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -108406,46 +108100,142 @@ func (ec *executionContext) _MedicationStatementType_meta(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementAdherence_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementType", + Object: "MedicationStatementAdherence", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationStatementType_effectivePeriod(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_effectivePeriod(ctx, field) +func (ec *executionContext) _MedicationStatementAdherence_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementAdherence_id(ctx, field) if err != nil { return graphql.Null } @@ -108458,7 +108248,7 @@ func (ec *executionContext) _MedicationStatementType_effectivePeriod(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectivePeriod, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -108467,38 +108257,26 @@ func (ec *executionContext) _MedicationStatementType_effectivePeriod(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_effectivePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementAdherence_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementType", + Object: "MedicationStatementAdherence", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationStatementType_dosage(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_dosage(ctx, field) +func (ec *executionContext) _MedicationStatementAdherence_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementAdherence_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -108511,7 +108289,7 @@ func (ec *executionContext) _MedicationStatementType_dosage(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Dosage, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -108520,64 +108298,142 @@ func (ec *executionContext) _MedicationStatementType_dosage(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Dosage) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalODosage2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_dosage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementAdherence_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementType", + Object: "MedicationStatementAdherence", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "asNeededFor": - return ec.fieldContext_Dosage_asNeededFor(ctx, field) - case "doseAndRate": - return ec.fieldContext_Dosage_doseAndRate(ctx, field) - case "route": - return ec.fieldContext_Dosage_route(ctx, field) - case "method": - return ec.fieldContext_Dosage_method(ctx, field) - case "modifierExtension": - return ec.fieldContext_Dosage_modifierExtension(ctx, field) - case "patientInstruction": - return ec.fieldContext_Dosage_patientInstruction(ctx, field) - case "text": - return ec.fieldContext_Dosage_text(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_Dosage_extension(ctx, field) - case "site": - return ec.fieldContext_Dosage_site(ctx, field) - case "maxDosePerAdministration": - return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) - case "maxDosePerLifetime": - return ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Dosage_resourceType(ctx, field) - case "additionalInstruction": - return ec.fieldContext_Dosage_additionalInstruction(ctx, field) - case "asNeeded": - return ec.fieldContext_Dosage_asNeeded(ctx, field) - case "timing": - return ec.fieldContext_Dosage_timing(ctx, field) - case "id": - return ec.fieldContext_Dosage_id(ctx, field) - case "sequence": - return ec.fieldContext_Dosage_sequence(ctx, field) - case "maxDosePerPeriod": - return ec.fieldContext_Dosage_maxDosePerPeriod(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Dosage", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationStatementType_category(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_category(ctx, field) +func (ec *executionContext) _MedicationStatementAdherence_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementAdherence_reason(ctx, field) if err != nil { return graphql.Null } @@ -108590,7 +108446,7 @@ func (ec *executionContext) _MedicationStatementType_category(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Category, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -108599,19 +108455,21 @@ func (ec *executionContext) _MedicationStatementType_category(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementAdherence_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementType", + Object: "MedicationStatementAdherence", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -108620,8 +108478,6 @@ func (ec *executionContext) fieldContext_MedicationStatementType_category(_ cont return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -108629,8 +108485,8 @@ func (ec *executionContext) fieldContext_MedicationStatementType_category(_ cont return fc, nil } -func (ec *executionContext) _MedicationStatementType_contained(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_contained(ctx, field) +func (ec *executionContext) _MedicationStatementAdherence_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementAdherence_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -108643,7 +108499,7 @@ func (ec *executionContext) _MedicationStatementType_contained(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -108652,26 +108508,26 @@ func (ec *executionContext) _MedicationStatementType_contained(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementAdherence_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationStatementType", + Object: "MedicationStatementAdherence", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationStatementType_effectiveDateTime(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_effectiveDateTime(ctx, field) +func (ec *executionContext) _MedicationStatementType_text(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_text(ctx, field) if err != nil { return graphql.Null } @@ -108684,7 +108540,7 @@ func (ec *executionContext) _MedicationStatementType_effectiveDateTime(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectiveDateTime, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -108693,19 +108549,31 @@ func (ec *executionContext) _MedicationStatementType_effectiveDateTime(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_effectiveDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil @@ -108747,24 +108615,24 @@ func (ec *executionContext) fieldContext_MedicationStatementType_identifier(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) case "extension": return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) case "period": return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) case "value": return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) case "id": return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, @@ -108772,8 +108640,8 @@ func (ec *executionContext) fieldContext_MedicationStatementType_identifier(_ co return fc, nil } -func (ec *executionContext) _MedicationStatementType_note(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_note(ctx, field) +func (ec *executionContext) _MedicationStatementType_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_reason(ctx, field) if err != nil { return graphql.Null } @@ -108786,7 +108654,7 @@ func (ec *executionContext) _MedicationStatementType_note(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -108795,32 +108663,31 @@ func (ec *executionContext) _MedicationStatementType_note(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]model.MedicationStatementNoteUnion) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOMedicationStatementNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementNoteUnion(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationStatementNoteUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationStatementType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -108901,14 +108768,14 @@ func (ec *executionContext) fieldContext_MedicationStatementType_medication(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) case "resourceType": return ec.fieldContext_CodeableReference_resourceType(ctx, field) case "concept": return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, @@ -108916,8 +108783,8 @@ func (ec *executionContext) fieldContext_MedicationStatementType_medication(_ co return fc, nil } -func (ec *executionContext) _MedicationStatementType_renderedDosageInstruction(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_renderedDosageInstruction(ctx, field) +func (ec *executionContext) _MedicationStatementType_note(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_note(ctx, field) if err != nil { return graphql.Null } @@ -108930,35 +108797,49 @@ func (ec *executionContext) _MedicationStatementType_renderedDosageInstruction(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RenderedDosageInstruction, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.MedicationStatementNoteUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNMedicationStatementNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_renderedDosageInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type MedicationStatementNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationStatementType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationStatementType_derivedFrom(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_derivedFrom(ctx, field) +func (ec *executionContext) _MedicationStatementType_category(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_category(ctx, field) if err != nil { return graphql.Null } @@ -108971,7 +108852,7 @@ func (ec *executionContext) _MedicationStatementType_derivedFrom(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DerivedFrom, nil + return obj.Category, nil }) if err != nil { ec.Error(ctx, err) @@ -108980,37 +108861,38 @@ func (ec *executionContext) _MedicationStatementType_derivedFrom(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_derivedFrom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationStatementType_derivedFrom_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationStatementType_subject(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_subject(ctx, field) +func (ec *executionContext) _MedicationStatementType_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_id(ctx, field) if err != nil { return graphql.Null } @@ -109023,7 +108905,7 @@ func (ec *executionContext) _MedicationStatementType_subject(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -109032,37 +108914,26 @@ func (ec *executionContext) _MedicationStatementType_subject(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]model.MedicationStatementSubjectUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMedicationStatementSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementSubjectUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationStatementSubjectUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationStatementType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationStatementType_adherence(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_adherence(ctx, field) +func (ec *executionContext) _MedicationStatementType_informationSource(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_informationSource(ctx, field) if err != nil { return graphql.Null } @@ -109075,49 +108946,49 @@ func (ec *executionContext) _MedicationStatementType_adherence(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Adherence, nil + return obj.InformationSource, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.MedicationStatementAdherence) + res := resTmp.(model.MedicationStatementInformationSourceUnion) fc.Result = res - return ec.marshalOMedicationStatementAdherence2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementAdherence(ctx, field.Selections, res) + return ec.marshalNMedicationStatementInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementInformationSourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_adherence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_informationSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_MedicationStatementAdherence_extension(ctx, field) - case "id": - return ec.fieldContext_MedicationStatementAdherence_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationStatementAdherence_modifierExtension(ctx, field) - case "reason": - return ec.fieldContext_MedicationStatementAdherence_reason(ctx, field) - case "resourceType": - return ec.fieldContext_MedicationStatementAdherence_resourceType(ctx, field) - case "code": - return ec.fieldContext_MedicationStatementAdherence_code(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MedicationStatementAdherence", field.Name) + return nil, errors.New("field of type MedicationStatementInformationSourceUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationStatementType_informationSource_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationStatementType_reason(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_reason(ctx, field) +func (ec *executionContext) _MedicationStatementType_relatedClinicalInformation(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_relatedClinicalInformation(ctx, field) if err != nil { return graphql.Null } @@ -109130,45 +109001,49 @@ func (ec *executionContext) _MedicationStatementType_reason(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.RelatedClinicalInformation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(model.MedicationStatementRelatedClinicalInformationUnion) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalNMedicationStatementRelatedClinicalInformationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementRelatedClinicalInformationUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_relatedClinicalInformation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type MedicationStatementRelatedClinicalInformationUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationStatementType_relatedClinicalInformation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationStatementType_text(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_text(ctx, field) +func (ec *executionContext) _MedicationStatementType_effectiveTiming(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_effectiveTiming(ctx, field) if err != nil { return graphql.Null } @@ -109181,7 +109056,7 @@ func (ec *executionContext) _MedicationStatementType_text(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.EffectiveTiming, nil }) if err != nil { ec.Error(ctx, err) @@ -109190,12 +109065,12 @@ func (ec *executionContext) _MedicationStatementType_text(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*model.Timing) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_effectiveTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, @@ -109203,25 +109078,29 @@ func (ec *executionContext) fieldContext_MedicationStatementType_text(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) + case "code": + return ec.fieldContext_Timing_code(ctx, field) + case "event": + return ec.fieldContext_Timing_event(ctx, field) case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) + return ec.fieldContext_Timing_extension(ctx, field) case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Timing_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Timing_modifierExtension(ctx, field) + case "repeat": + return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_Timing_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationStatementType_language(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_language(ctx, field) +func (ec *executionContext) _MedicationStatementType_effectiveDateTime(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_effectiveDateTime(ctx, field) if err != nil { return graphql.Null } @@ -109234,7 +109113,7 @@ func (ec *executionContext) _MedicationStatementType_language(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.EffectiveDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -109248,7 +109127,7 @@ func (ec *executionContext) _MedicationStatementType_language(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_effectiveDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, @@ -109261,8 +109140,8 @@ func (ec *executionContext) fieldContext_MedicationStatementType_language(_ cont return fc, nil } -func (ec *executionContext) _MedicationStatementType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_partOf(ctx, field) +func (ec *executionContext) _MedicationStatementType_subject(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_subject(ctx, field) if err != nil { return graphql.Null } @@ -109275,28 +109154,31 @@ func (ec *executionContext) _MedicationStatementType_partOf(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PartOf, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.MedicationStatementPartOfUnion) + res := resTmp.(model.MedicationStatementSubjectUnion) fc.Result = res - return ec.marshalOMedicationStatementPartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementPartOfUnion(ctx, field.Selections, res) + return ec.marshalNMedicationStatementSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementSubjectUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationStatementPartOfUnion does not have child fields") + return nil, errors.New("field of type MedicationStatementSubjectUnion does not have child fields") }, } defer func() { @@ -109306,15 +109188,15 @@ func (ec *executionContext) fieldContext_MedicationStatementType_partOf(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationStatementType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_MedicationStatementType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _MedicationStatementType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationStatementType_effectivePeriod(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_effectivePeriod(ctx, field) if err != nil { return graphql.Null } @@ -109327,7 +109209,7 @@ func (ec *executionContext) _MedicationStatementType_modifierExtension(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.EffectivePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -109336,12 +109218,12 @@ func (ec *executionContext) _MedicationStatementType_modifierExtension(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_effectivePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, @@ -109349,170 +109231,25 @@ func (ec *executionContext) fieldContext_MedicationStatementType_modifierExtensi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Period_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MedicationStatementType_dateAsserted(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_dateAsserted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateAsserted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationStatementType_dateAsserted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationStatementType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationStatementType_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_extension(ctx, field) +func (ec *executionContext) _MedicationStatementType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -109525,7 +109262,7 @@ func (ec *executionContext) _MedicationStatementType_extension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -109539,7 +109276,7 @@ func (ec *executionContext) _MedicationStatementType_extension(ctx context.Conte return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, @@ -109547,120 +109284,120 @@ func (ec *executionContext) fieldContext_MedicationStatementType_extension(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -109668,8 +109405,8 @@ func (ec *executionContext) fieldContext_MedicationStatementType_extension(_ con return fc, nil } -func (ec *executionContext) _MedicationStatementType_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_id(ctx, field) +func (ec *executionContext) _MedicationStatementType_derivedFrom(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_derivedFrom(ctx, field) if err != nil { return graphql.Null } @@ -109682,35 +109419,49 @@ func (ec *executionContext) _MedicationStatementType_id(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.DerivedFrom, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_derivedFrom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationStatementType_derivedFrom_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationStatementType_effectiveTiming(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_effectiveTiming(ctx, field) +func (ec *executionContext) _MedicationStatementType_adherence(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_adherence(ctx, field) if err != nil { return graphql.Null } @@ -109723,7 +109474,7 @@ func (ec *executionContext) _MedicationStatementType_effectiveTiming(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectiveTiming, nil + return obj.Adherence, nil }) if err != nil { ec.Error(ctx, err) @@ -109732,12 +109483,12 @@ func (ec *executionContext) _MedicationStatementType_effectiveTiming(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Timing) + res := resTmp.(*model.MedicationStatementAdherence) fc.Result = res - return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) + return ec.marshalOMedicationStatementAdherence2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementAdherence(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_effectiveTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_adherence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, @@ -109745,29 +109496,27 @@ func (ec *executionContext) fieldContext_MedicationStatementType_effectiveTiming IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "repeat": - return ec.fieldContext_Timing_repeat(ctx, field) - case "resourceType": - return ec.fieldContext_Timing_resourceType(ctx, field) case "code": - return ec.fieldContext_Timing_code(ctx, field) - case "event": - return ec.fieldContext_Timing_event(ctx, field) + return ec.fieldContext_MedicationStatementAdherence_code(ctx, field) case "extension": - return ec.fieldContext_Timing_extension(ctx, field) + return ec.fieldContext_MedicationStatementAdherence_extension(ctx, field) case "id": - return ec.fieldContext_Timing_id(ctx, field) + return ec.fieldContext_MedicationStatementAdherence_id(ctx, field) case "modifierExtension": - return ec.fieldContext_Timing_modifierExtension(ctx, field) + return ec.fieldContext_MedicationStatementAdherence_modifierExtension(ctx, field) + case "reason": + return ec.fieldContext_MedicationStatementAdherence_reason(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationStatementAdherence_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) + return nil, fmt.Errorf("no field named %q was found under type MedicationStatementAdherence", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationStatementType_informationSource(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_informationSource(ctx, field) +func (ec *executionContext) _MedicationStatementType_language(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_language(ctx, field) if err != nil { return graphql.Null } @@ -109780,7 +109529,7 @@ func (ec *executionContext) _MedicationStatementType_informationSource(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InformationSource, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -109789,37 +109538,26 @@ func (ec *executionContext) _MedicationStatementType_informationSource(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.([]model.MedicationStatementInformationSourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMedicationStatementInformationSourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementInformationSourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_informationSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MedicationStatementInformationSourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationStatementType_informationSource_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _MedicationStatementType_status(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_status(ctx, field) +func (ec *executionContext) _MedicationStatementType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -109832,7 +109570,7 @@ func (ec *executionContext) _MedicationStatementType_status(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -109846,7 +109584,7 @@ func (ec *executionContext) _MedicationStatementType_status(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, @@ -109859,8 +109597,8 @@ func (ec *executionContext) fieldContext_MedicationStatementType_status(_ contex return fc, nil } -func (ec *executionContext) _MedicationStatementType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationStatementType_resourceType(ctx, field) +func (ec *executionContext) _MedicationStatementType_renderedDosageInstruction(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_renderedDosageInstruction(ctx, field) if err != nil { return graphql.Null } @@ -109873,7 +109611,7 @@ func (ec *executionContext) _MedicationStatementType_resourceType(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.RenderedDosageInstruction, nil }) if err != nil { ec.Error(ctx, err) @@ -109887,7 +109625,7 @@ func (ec *executionContext) _MedicationStatementType_resourceType(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationStatementType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_renderedDosageInstruction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationStatementType", Field: field, @@ -109900,8 +109638,8 @@ func (ec *executionContext) fieldContext_MedicationStatementType_resourceType(_ return fc, nil } -func (ec *executionContext) _MedicationType_doseForm(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_doseForm(ctx, field) +func (ec *executionContext) _MedicationStatementType_contained(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_contained(ctx, field) if err != nil { return graphql.Null } @@ -109914,7 +109652,7 @@ func (ec *executionContext) _MedicationType_doseForm(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DoseForm, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -109923,38 +109661,26 @@ func (ec *executionContext) _MedicationType_doseForm(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_doseForm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationType", + Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationType_code(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_code(ctx, field) +func (ec *executionContext) _MedicationStatementType_meta(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_meta(ctx, field) if err != nil { return graphql.Null } @@ -109967,7 +109693,7 @@ func (ec *executionContext) _MedicationType_code(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -109976,38 +109702,46 @@ func (ec *executionContext) _MedicationType_code(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationType", + Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_identifier(ctx, field) +func (ec *executionContext) _MedicationStatementType_dosage(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_dosage(ctx, field) if err != nil { return graphql.Null } @@ -110020,7 +109754,7 @@ func (ec *executionContext) _MedicationType_identifier(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Dosage, nil }) if err != nil { ec.Error(ctx, err) @@ -110029,46 +109763,64 @@ func (ec *executionContext) _MedicationType_identifier(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.([]*model.Dosage) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalODosage2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_dosage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationType", + Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + case "doseAndRate": + return ec.fieldContext_Dosage_doseAndRate(ctx, field) + case "additionalInstruction": + return ec.fieldContext_Dosage_additionalInstruction(ctx, field) + case "route": + return ec.fieldContext_Dosage_route(ctx, field) + case "timing": + return ec.fieldContext_Dosage_timing(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Dosage_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Dosage_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Dosage_resourceType(ctx, field) + case "text": + return ec.fieldContext_Dosage_text(ctx, field) + case "sequence": + return ec.fieldContext_Dosage_sequence(ctx, field) + case "asNeeded": + return ec.fieldContext_Dosage_asNeeded(ctx, field) + case "site": + return ec.fieldContext_Dosage_site(ctx, field) + case "extension": + return ec.fieldContext_Dosage_extension(ctx, field) + case "patientInstruction": + return ec.fieldContext_Dosage_patientInstruction(ctx, field) + case "asNeededFor": + return ec.fieldContext_Dosage_asNeededFor(ctx, field) + case "maxDosePerLifetime": + return ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) + case "method": + return ec.fieldContext_Dosage_method(ctx, field) + case "maxDosePerPeriod": + return ec.fieldContext_Dosage_maxDosePerPeriod(ctx, field) + case "maxDosePerAdministration": + return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Dosage", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationType_text(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_text(ctx, field) +func (ec *executionContext) _MedicationStatementType_status(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_status(ctx, field) if err != nil { return graphql.Null } @@ -110081,7 +109833,7 @@ func (ec *executionContext) _MedicationType_text(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -110090,38 +109842,26 @@ func (ec *executionContext) _MedicationType_text(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationType", + Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationType_meta(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_meta(ctx, field) +func (ec *executionContext) _MedicationStatementType_dateAsserted(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_dateAsserted(ctx, field) if err != nil { return graphql.Null } @@ -110134,7 +109874,7 @@ func (ec *executionContext) _MedicationType_meta(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.DateAsserted, nil }) if err != nil { ec.Error(ctx, err) @@ -110143,46 +109883,26 @@ func (ec *executionContext) _MedicationType_meta(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_dateAsserted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationType", + Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) - case "id": - return ec.fieldContext_Meta_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_resourceType(ctx, field) +func (ec *executionContext) _MedicationStatementType_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_extension(ctx, field) if err != nil { return graphql.Null } @@ -110195,7 +109915,7 @@ func (ec *executionContext) _MedicationType_resourceType(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -110204,26 +109924,142 @@ func (ec *executionContext) _MedicationType_resourceType(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationType", + Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationType_status(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_status(ctx, field) +func (ec *executionContext) _MedicationStatementType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_partOf(ctx, field) if err != nil { return graphql.Null } @@ -110236,35 +110072,49 @@ func (ec *executionContext) _MedicationType_status(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.PartOf, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.MedicationStatementPartOfUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNMedicationStatementPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementPartOfUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationStatementType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "MedicationType", + Object: "MedicationStatementType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type MedicationStatementPartOfUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationStatementType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationType_language(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_language(ctx, field) +func (ec *executionContext) _MedicationType_meta(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_meta(ctx, field) if err != nil { return graphql.Null } @@ -110277,7 +110127,7 @@ func (ec *executionContext) _MedicationType_language(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -110286,26 +110136,46 @@ func (ec *executionContext) _MedicationType_language(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_modifierExtension(ctx, field) +func (ec *executionContext) _MedicationType_text(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_text(ctx, field) if err != nil { return graphql.Null } @@ -110318,7 +110188,7 @@ func (ec *executionContext) _MedicationType_modifierExtension(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -110327,12 +110197,12 @@ func (ec *executionContext) _MedicationType_modifierExtension(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationType", Field: field, @@ -110340,129 +110210,25 @@ func (ec *executionContext) fieldContext_MedicationType_modifierExtension(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationType_contained(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_contained(ctx, field) +func (ec *executionContext) _MedicationType_marketingAuthorizationHolder(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_marketingAuthorizationHolder(ctx, field) if err != nil { return graphql.Null } @@ -110475,62 +110241,24 @@ func (ec *executionContext) _MedicationType_contained(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.MarketingAuthorizationHolder, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.ResourceUnion) - fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MedicationType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MedicationType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MedicationType_batch(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_batch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Batch, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { return graphql.Null } - res := resTmp.(*model.MedicationBatch) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOMedicationBatch2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationBatch(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_batch(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_marketingAuthorizationHolder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationType", Field: field, @@ -110538,27 +110266,62 @@ func (ec *executionContext) fieldContext_MedicationType_batch(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) case "modifierExtension": - return ec.fieldContext_MedicationBatch_modifierExtension(ctx, field) + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) case "resourceType": - return ec.fieldContext_MedicationBatch_resourceType(ctx, field) - case "expirationDate": - return ec.fieldContext_MedicationBatch_expirationDate(ctx, field) + return ec.fieldContext_OrganizationType_resourceType(ctx, field) case "extension": - return ec.fieldContext_MedicationBatch_extension(ctx, field) + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) case "id": - return ec.fieldContext_MedicationBatch_id(ctx, field) - case "lotNumber": - return ec.fieldContext_MedicationBatch_lotNumber(ctx, field) + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type MedicationBatch", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_MedicationType_marketingAuthorizationHolder_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _MedicationType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_implicitRules(ctx, field) +func (ec *executionContext) _MedicationType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -110571,7 +110334,7 @@ func (ec *executionContext) _MedicationType_implicitRules(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -110580,19 +110343,135 @@ func (ec *executionContext) _MedicationType_implicitRules(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil @@ -110657,8 +110536,8 @@ func (ec *executionContext) fieldContext_MedicationType_totalVolume(_ context.Co return fc, nil } -func (ec *executionContext) _MedicationType_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_extension(ctx, field) +func (ec *executionContext) _MedicationType_language(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_language(ctx, field) if err != nil { return graphql.Null } @@ -110671,7 +110550,7 @@ func (ec *executionContext) _MedicationType_extension(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -110680,142 +110559,26 @@ func (ec *executionContext) _MedicationType_extension(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _MedicationType_ingredient(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_ingredient(ctx, field) +func (ec *executionContext) _MedicationType_doseForm(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_doseForm(ctx, field) if err != nil { return graphql.Null } @@ -110828,7 +110591,7 @@ func (ec *executionContext) _MedicationType_ingredient(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ingredient, nil + return obj.DoseForm, nil }) if err != nil { ec.Error(ctx, err) @@ -110837,12 +110600,12 @@ func (ec *executionContext) _MedicationType_ingredient(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.MedicationIngredient) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOMedicationIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationIngredient(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_ingredient(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_doseForm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationType", Field: field, @@ -110850,33 +110613,25 @@ func (ec *executionContext) fieldContext_MedicationType_ingredient(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "strengthCodeableConcept": - return ec.fieldContext_MedicationIngredient_strengthCodeableConcept(ctx, field) - case "id": - return ec.fieldContext_MedicationIngredient_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationIngredient_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_MedicationIngredient_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_MedicationIngredient_extension(ctx, field) - case "isActive": - return ec.fieldContext_MedicationIngredient_isActive(ctx, field) - case "item": - return ec.fieldContext_MedicationIngredient_item(ctx, field) - case "strengthQuantity": - return ec.fieldContext_MedicationIngredient_strengthQuantity(ctx, field) - case "strengthRatio": - return ec.fieldContext_MedicationIngredient_strengthRatio(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type MedicationIngredient", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _MedicationType_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_id(ctx, field) +func (ec *executionContext) _MedicationType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -110889,7 +110644,7 @@ func (ec *executionContext) _MedicationType_id(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -110903,7 +110658,7 @@ func (ec *executionContext) _MedicationType_id(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationType", Field: field, @@ -110916,8 +110671,8 @@ func (ec *executionContext) fieldContext_MedicationType_id(_ context.Context, fi return fc, nil } -func (ec *executionContext) _MedicationType_marketingAuthorizationHolder(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MedicationType_marketingAuthorizationHolder(ctx, field) +func (ec *executionContext) _MedicationType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -110930,7 +110685,7 @@ func (ec *executionContext) _MedicationType_marketingAuthorizationHolder(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MarketingAuthorizationHolder, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -110939,75 +110694,26 @@ func (ec *executionContext) _MedicationType_marketingAuthorizationHolder(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_MedicationType_marketingAuthorizationHolder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) - case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_MedicationType_marketingAuthorizationHolder_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Meta_profile(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Meta_profile(ctx, field) +func (ec *executionContext) _MedicationType_ingredient(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_ingredient(ctx, field) if err != nil { return graphql.Null } @@ -111020,7 +110726,7 @@ func (ec *executionContext) _Meta_profile(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Profile, nil + return obj.Ingredient, nil }) if err != nil { ec.Error(ctx, err) @@ -111029,26 +110735,46 @@ func (ec *executionContext) _Meta_profile(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.MedicationIngredient) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMedicationIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationIngredient(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Meta_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_ingredient(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Meta", + Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "item": + return ec.fieldContext_MedicationIngredient_item(ctx, field) + case "strengthQuantity": + return ec.fieldContext_MedicationIngredient_strengthQuantity(ctx, field) + case "strengthRatio": + return ec.fieldContext_MedicationIngredient_strengthRatio(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationIngredient_resourceType(ctx, field) + case "strengthCodeableConcept": + return ec.fieldContext_MedicationIngredient_strengthCodeableConcept(ctx, field) + case "id": + return ec.fieldContext_MedicationIngredient_id(ctx, field) + case "isActive": + return ec.fieldContext_MedicationIngredient_isActive(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationIngredient_modifierExtension(ctx, field) + case "extension": + return ec.fieldContext_MedicationIngredient_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationIngredient", field.Name) }, } return fc, nil } -func (ec *executionContext) _Meta_security(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Meta_security(ctx, field) +func (ec *executionContext) _MedicationType_contained(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_contained(ctx, field) if err != nil { return graphql.Null } @@ -111061,7 +110787,7 @@ func (ec *executionContext) _Meta_security(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Security, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -111070,44 +110796,26 @@ func (ec *executionContext) _Meta_security(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Coding) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Meta_security(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Meta", + Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) - case "userSelected": - return ec.fieldContext_Coding_userSelected(ctx, field) - case "version": - return ec.fieldContext_Coding_version(ctx, field) - case "code": - return ec.fieldContext_Coding_code(ctx, field) - case "display": - return ec.fieldContext_Coding_display(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Meta_source(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Meta_source(ctx, field) +func (ec *executionContext) _MedicationType_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_extension(ctx, field) if err != nil { return graphql.Null } @@ -111120,7 +110828,7 @@ func (ec *executionContext) _Meta_source(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Source, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -111129,26 +110837,142 @@ func (ec *executionContext) _Meta_source(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Meta_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Meta", + Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _Meta_tag(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Meta_tag(ctx, field) +func (ec *executionContext) _MedicationType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -111161,7 +110985,7 @@ func (ec *executionContext) _Meta_tag(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tag, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -111170,44 +110994,46 @@ func (ec *executionContext) _Meta_tag(ctx context.Context, field graphql.Collect if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Coding) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Meta_tag(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Meta", + Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) case "system": - return ec.fieldContext_Coding_system(ctx, field) - case "userSelected": - return ec.fieldContext_Coding_userSelected(ctx, field) - case "version": - return ec.fieldContext_Coding_version(ctx, field) - case "code": - return ec.fieldContext_Coding_code(ctx, field) - case "display": - return ec.fieldContext_Coding_display(ctx, field) + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _Meta_versionId(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Meta_versionId(ctx, field) +func (ec *executionContext) _MedicationType_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_id(ctx, field) if err != nil { return graphql.Null } @@ -111220,7 +111046,7 @@ func (ec *executionContext) _Meta_versionId(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VersionID, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -111234,9 +111060,9 @@ func (ec *executionContext) _Meta_versionId(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Meta_versionId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Meta", + Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, @@ -111247,8 +111073,8 @@ func (ec *executionContext) fieldContext_Meta_versionId(_ context.Context, field return fc, nil } -func (ec *executionContext) _Meta_lastUpdated(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Meta_lastUpdated(ctx, field) +func (ec *executionContext) _MedicationType_status(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_status(ctx, field) if err != nil { return graphql.Null } @@ -111261,7 +111087,7 @@ func (ec *executionContext) _Meta_lastUpdated(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastUpdated, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -111275,9 +111101,9 @@ func (ec *executionContext) _Meta_lastUpdated(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Meta_lastUpdated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Meta", + Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, @@ -111288,8 +111114,8 @@ func (ec *executionContext) fieldContext_Meta_lastUpdated(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Meta_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Meta_resourceType(ctx, field) +func (ec *executionContext) _MedicationType_batch(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_batch(ctx, field) if err != nil { return graphql.Null } @@ -111302,7 +111128,7 @@ func (ec *executionContext) _Meta_resourceType(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Batch, nil }) if err != nil { ec.Error(ctx, err) @@ -111311,26 +111137,40 @@ func (ec *executionContext) _Meta_resourceType(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.MedicationBatch) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMedicationBatch2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationBatch(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Meta_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_batch(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Meta", + Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_MedicationBatch_id(ctx, field) + case "lotNumber": + return ec.fieldContext_MedicationBatch_lotNumber(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationBatch_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationBatch_resourceType(ctx, field) + case "expirationDate": + return ec.fieldContext_MedicationBatch_expirationDate(ctx, field) + case "extension": + return ec.fieldContext_MedicationBatch_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationBatch", field.Name) }, } return fc, nil } -func (ec *executionContext) _Meta_extension(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Meta_extension(ctx, field) +func (ec *executionContext) _MedicationType_code(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_code(ctx, field) if err != nil { return graphql.Null } @@ -111343,7 +111183,7 @@ func (ec *executionContext) _Meta_extension(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -111352,142 +111192,38 @@ func (ec *executionContext) _Meta_extension(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Meta_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MedicationType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Meta", + Object: "MedicationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Meta_id(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Meta_id(ctx, field) +func (ec *executionContext) _Meta_lastUpdated(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Meta_lastUpdated(ctx, field) if err != nil { return graphql.Null } @@ -111500,7 +111236,7 @@ func (ec *executionContext) _Meta_id(ctx context.Context, field graphql.Collecte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.LastUpdated, nil }) if err != nil { ec.Error(ctx, err) @@ -111514,7 +111250,7 @@ func (ec *executionContext) _Meta_id(ctx context.Context, field graphql.Collecte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Meta_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Meta_lastUpdated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Meta", Field: field, @@ -111527,8 +111263,8 @@ func (ec *executionContext) fieldContext_Meta_id(_ context.Context, field graphq return fc, nil } -func (ec *executionContext) _Money_currency(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Money_currency(ctx, field) +func (ec *executionContext) _Meta_security(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Meta_security(ctx, field) if err != nil { return graphql.Null } @@ -111541,7 +111277,7 @@ func (ec *executionContext) _Money_currency(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Currency, nil + return obj.Security, nil }) if err != nil { ec.Error(ctx, err) @@ -111550,28 +111286,46 @@ func (ec *executionContext) _Money_currency(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Coding) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Money_currency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Meta_security(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Money", + Object: "Meta", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Money_extension(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Money_extension(ctx, field) - if err != nil { - return graphql.Null + switch field.Name { + case "userSelected": + return ec.fieldContext_Coding_userSelected(ctx, field) + case "version": + return ec.fieldContext_Coding_version(ctx, field) + case "code": + return ec.fieldContext_Coding_code(ctx, field) + case "display": + return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Meta_extension(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Meta_extension(ctx, field) + if err != nil { + return graphql.Null } ctx = graphql.WithFieldContext(ctx, fc) defer func() { @@ -111596,128 +111350,128 @@ func (ec *executionContext) _Money_extension(ctx context.Context, field graphql. return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Money_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Meta_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Money", + Object: "Meta", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -111725,8 +111479,8 @@ func (ec *executionContext) fieldContext_Money_extension(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Money_id(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Money_id(ctx, field) +func (ec *executionContext) _Meta_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Meta_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -111739,7 +111493,7 @@ func (ec *executionContext) _Money_id(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -111753,9 +111507,9 @@ func (ec *executionContext) _Money_id(ctx context.Context, field graphql.Collect return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Money_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Meta_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Money", + Object: "Meta", Field: field, IsMethod: false, IsResolver: false, @@ -111766,8 +111520,8 @@ func (ec *executionContext) fieldContext_Money_id(_ context.Context, field graph return fc, nil } -func (ec *executionContext) _Money_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Money_resourceType(ctx, field) +func (ec *executionContext) _Meta_versionId(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Meta_versionId(ctx, field) if err != nil { return graphql.Null } @@ -111780,7 +111534,7 @@ func (ec *executionContext) _Money_resourceType(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.VersionID, nil }) if err != nil { ec.Error(ctx, err) @@ -111794,9 +111548,9 @@ func (ec *executionContext) _Money_resourceType(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Money_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Meta_versionId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Money", + Object: "Meta", Field: field, IsMethod: false, IsResolver: false, @@ -111807,8 +111561,8 @@ func (ec *executionContext) fieldContext_Money_resourceType(_ context.Context, f return fc, nil } -func (ec *executionContext) _Money_value(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Money_value(ctx, field) +func (ec *executionContext) _Meta_tag(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Meta_tag(ctx, field) if err != nil { return graphql.Null } @@ -111821,7 +111575,7 @@ func (ec *executionContext) _Money_value(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Value, nil + return obj.Tag, nil }) if err != nil { ec.Error(ctx, err) @@ -111830,26 +111584,44 @@ func (ec *executionContext) _Money_value(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Coding) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Money_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Meta_tag(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Money", + Object: "Meta", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "userSelected": + return ec.fieldContext_Coding_userSelected(ctx, field) + case "version": + return ec.fieldContext_Coding_version(ctx, field) + case "code": + return ec.fieldContext_Coding_code(ctx, field) + case "display": + return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, } return fc, nil } -func (ec *executionContext) _Narrative_div(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_div(ctx, field) +func (ec *executionContext) _Meta_id(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Meta_id(ctx, field) if err != nil { return graphql.Null } @@ -111862,7 +111634,7 @@ func (ec *executionContext) _Narrative_div(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Div, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -111876,9 +111648,9 @@ func (ec *executionContext) _Narrative_div(ctx context.Context, field graphql.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_div(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Meta_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Meta", Field: field, IsMethod: false, IsResolver: false, @@ -111889,8 +111661,8 @@ func (ec *executionContext) fieldContext_Narrative_div(_ context.Context, field return fc, nil } -func (ec *executionContext) _Narrative_extension(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_extension(ctx, field) +func (ec *executionContext) _Meta_profile(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Meta_profile(ctx, field) if err != nil { return graphql.Null } @@ -111903,7 +111675,7 @@ func (ec *executionContext) _Narrative_extension(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Profile, nil }) if err != nil { ec.Error(ctx, err) @@ -111912,142 +111684,26 @@ func (ec *executionContext) _Narrative_extension(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Meta_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Meta", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_id(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_id(ctx, field) +func (ec *executionContext) _Meta_source(ctx context.Context, field graphql.CollectedField, obj *model.Meta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Meta_source(ctx, field) if err != nil { return graphql.Null } @@ -112060,7 +111716,7 @@ func (ec *executionContext) _Narrative_id(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) @@ -112074,9 +111730,9 @@ func (ec *executionContext) _Narrative_id(ctx context.Context, field graphql.Col return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Meta_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Meta", Field: field, IsMethod: false, IsResolver: false, @@ -112087,8 +111743,8 @@ func (ec *executionContext) fieldContext_Narrative_id(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Narrative_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_resourceType(ctx, field) +func (ec *executionContext) _Money_currency(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Money_currency(ctx, field) if err != nil { return graphql.Null } @@ -112101,7 +111757,7 @@ func (ec *executionContext) _Narrative_resourceType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Currency, nil }) if err != nil { ec.Error(ctx, err) @@ -112115,9 +111771,9 @@ func (ec *executionContext) _Narrative_resourceType(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Money_currency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Money", Field: field, IsMethod: false, IsResolver: false, @@ -112128,8 +111784,8 @@ func (ec *executionContext) fieldContext_Narrative_resourceType(_ context.Contex return fc, nil } -func (ec *executionContext) _Narrative_status(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_status(ctx, field) +func (ec *executionContext) _Money_extension(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Money_extension(ctx, field) if err != nil { return graphql.Null } @@ -112142,7 +111798,7 @@ func (ec *executionContext) _Narrative_status(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -112151,26 +111807,142 @@ func (ec *executionContext) _Narrative_status(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Money_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Money", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_id(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_id(ctx, field) +func (ec *executionContext) _Money_id(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Money_id(ctx, field) if err != nil { return graphql.Null } @@ -112197,9 +111969,9 @@ func (ec *executionContext) _ObservationComponent_id(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Money_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationComponent", + Object: "Money", Field: field, IsMethod: false, IsResolver: false, @@ -112210,8 +111982,8 @@ func (ec *executionContext) fieldContext_ObservationComponent_id(_ context.Conte return fc, nil } -func (ec *executionContext) _ObservationComponent_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valuePeriod(ctx, field) +func (ec *executionContext) _Money_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Money_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -112224,7 +111996,7 @@ func (ec *executionContext) _ObservationComponent_valuePeriod(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValuePeriod, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -112233,38 +112005,26 @@ func (ec *executionContext) _ObservationComponent_valuePeriod(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Money_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationComponent", + Object: "Money", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueQuantity(ctx, field) +func (ec *executionContext) _Money_value(ctx context.Context, field graphql.CollectedField, obj *model.Money) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Money_value(ctx, field) if err != nil { return graphql.Null } @@ -112277,7 +112037,7 @@ func (ec *executionContext) _ObservationComponent_valueQuantity(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueQuantity, nil + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -112286,44 +112046,26 @@ func (ec *executionContext) _ObservationComponent_valueQuantity(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*string) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Money_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationComponent", + Object: "Money", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueRange(ctx, field) +func (ec *executionContext) _Narrative_extension(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_extension(ctx, field) if err != nil { return graphql.Null } @@ -112336,7 +112078,7 @@ func (ec *executionContext) _ObservationComponent_valueRange(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRange, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -112345,38 +112087,142 @@ func (ec *executionContext) _ObservationComponent_valueRange(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationComponent", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueAttachment(ctx, field) +func (ec *executionContext) _Narrative_id(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_id(ctx, field) if err != nil { return graphql.Null } @@ -112389,7 +112235,7 @@ func (ec *executionContext) _ObservationComponent_valueAttachment(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAttachment, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -112398,60 +112244,26 @@ func (ec *executionContext) _ObservationComponent_valueAttachment(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Attachment) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationComponent", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) - case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) - case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) - case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_extension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_extension(ctx, field) +func (ec *executionContext) _Narrative_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -112464,7 +112276,7 @@ func (ec *executionContext) _ObservationComponent_extension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -112473,142 +112285,26 @@ func (ec *executionContext) _ObservationComponent_extension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationComponent", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueSampledData(ctx, field) +func (ec *executionContext) _Narrative_status(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_status(ctx, field) if err != nil { return graphql.Null } @@ -112621,7 +112317,7 @@ func (ec *executionContext) _ObservationComponent_valueSampledData(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueSampledData, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -112630,54 +112326,26 @@ func (ec *executionContext) _ObservationComponent_valueSampledData(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SampledData) + res := resTmp.(*string) fc.Result = res - return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationComponent", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_SampledData_resourceType(ctx, field) - case "origin": - return ec.fieldContext_SampledData_origin(ctx, field) - case "codeMap": - return ec.fieldContext_SampledData_codeMap(ctx, field) - case "intervalUnit": - return ec.fieldContext_SampledData_intervalUnit(ctx, field) - case "lowerLimit": - return ec.fieldContext_SampledData_lowerLimit(ctx, field) - case "upperLimit": - return ec.fieldContext_SampledData_upperLimit(ctx, field) - case "extension": - return ec.fieldContext_SampledData_extension(ctx, field) - case "id": - return ec.fieldContext_SampledData_id(ctx, field) - case "dimensions": - return ec.fieldContext_SampledData_dimensions(ctx, field) - case "factor": - return ec.fieldContext_SampledData_factor(ctx, field) - case "interval": - return ec.fieldContext_SampledData_interval(ctx, field) - case "offsets": - return ec.fieldContext_SampledData_offsets(ctx, field) - case "data": - return ec.fieldContext_SampledData_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_valueString(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueString(ctx, field) +func (ec *executionContext) _Narrative_div(ctx context.Context, field graphql.CollectedField, obj *model.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_div(ctx, field) if err != nil { return graphql.Null } @@ -112690,7 +112358,7 @@ func (ec *executionContext) _ObservationComponent_valueString(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueString, nil + return obj.Div, nil }) if err != nil { ec.Error(ctx, err) @@ -112704,9 +112372,9 @@ func (ec *executionContext) _ObservationComponent_valueString(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_div(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationComponent", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, @@ -112717,8 +112385,8 @@ func (ec *executionContext) fieldContext_ObservationComponent_valueString(_ cont return fc, nil } -func (ec *executionContext) _ObservationComponent_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_modifierExtension(ctx, field) +func (ec *executionContext) _ObservationComponent_dataAbsentReason(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_dataAbsentReason(ctx, field) if err != nil { return graphql.Null } @@ -112731,7 +112399,7 @@ func (ec *executionContext) _ObservationComponent_modifierExtension(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.DataAbsentReason, nil }) if err != nil { ec.Error(ctx, err) @@ -112740,12 +112408,12 @@ func (ec *executionContext) _ObservationComponent_modifierExtension(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_dataAbsentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, @@ -112753,129 +112421,25 @@ func (ec *executionContext) fieldContext_ObservationComponent_modifierExtension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_code(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_code(ctx, field) +func (ec *executionContext) _ObservationComponent_interpretation(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_interpretation(ctx, field) if err != nil { return graphql.Null } @@ -112888,7 +112452,7 @@ func (ec *executionContext) _ObservationComponent_code(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Interpretation, nil }) if err != nil { ec.Error(ctx, err) @@ -112897,12 +112461,12 @@ func (ec *executionContext) _ObservationComponent_code(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_interpretation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, @@ -112910,6 +112474,8 @@ func (ec *executionContext) fieldContext_ObservationComponent_code(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -112918,8 +112484,6 @@ func (ec *executionContext) fieldContext_ObservationComponent_code(_ context.Con return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -112927,8 +112491,8 @@ func (ec *executionContext) fieldContext_ObservationComponent_code(_ context.Con return fc, nil } -func (ec *executionContext) _ObservationComponent_dataAbsentReason(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_dataAbsentReason(ctx, field) +func (ec *executionContext) _ObservationComponent_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueAttachment(ctx, field) if err != nil { return graphql.Null } @@ -112941,7 +112505,7 @@ func (ec *executionContext) _ObservationComponent_dataAbsentReason(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DataAbsentReason, nil + return obj.ValueAttachment, nil }) if err != nil { ec.Error(ctx, err) @@ -112950,12 +112514,12 @@ func (ec *executionContext) _ObservationComponent_dataAbsentReason(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Attachment) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_dataAbsentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, @@ -112963,25 +112527,47 @@ func (ec *executionContext) fieldContext_ObservationComponent_dataAbsentReason(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) + case "resourceType": + return ec.fieldContext_Attachment_resourceType(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueBoolean(ctx, field) +func (ec *executionContext) _ObservationComponent_extension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_extension(ctx, field) if err != nil { return graphql.Null } @@ -112994,7 +112580,7 @@ func (ec *executionContext) _ObservationComponent_valueBoolean(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueBoolean, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -113003,26 +112589,142 @@ func (ec *executionContext) _ObservationComponent_valueBoolean(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueDateTime(ctx, field) +func (ec *executionContext) _ObservationComponent_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -113035,7 +112737,7 @@ func (ec *executionContext) _ObservationComponent_valueDateTime(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDateTime, nil + return obj.ValueCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -113044,26 +112746,38 @@ func (ec *executionContext) _ObservationComponent_valueDateTime(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueInteger(ctx, field) +func (ec *executionContext) _ObservationComponent_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueTime(ctx, field) if err != nil { return graphql.Null } @@ -113076,7 +112790,7 @@ func (ec *executionContext) _ObservationComponent_valueInteger(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInteger, nil + return obj.ValueTime, nil }) if err != nil { ec.Error(ctx, err) @@ -113090,7 +112804,7 @@ func (ec *executionContext) _ObservationComponent_valueInteger(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, @@ -113103,8 +112817,8 @@ func (ec *executionContext) fieldContext_ObservationComponent_valueInteger(_ con return fc, nil } -func (ec *executionContext) _ObservationComponent_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueTime(ctx, field) +func (ec *executionContext) _ObservationComponent_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueBoolean(ctx, field) if err != nil { return graphql.Null } @@ -113117,7 +112831,7 @@ func (ec *executionContext) _ObservationComponent_valueTime(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTime, nil + return obj.ValueBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -113131,7 +112845,7 @@ func (ec *executionContext) _ObservationComponent_valueTime(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, @@ -113144,8 +112858,8 @@ func (ec *executionContext) fieldContext_ObservationComponent_valueTime(_ contex return fc, nil } -func (ec *executionContext) _ObservationComponent_interpretation(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_interpretation(ctx, field) +func (ec *executionContext) _ObservationComponent_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valuePeriod(ctx, field) if err != nil { return graphql.Null } @@ -113158,7 +112872,7 @@ func (ec *executionContext) _ObservationComponent_interpretation(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Interpretation, nil + return obj.ValuePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -113167,12 +112881,12 @@ func (ec *executionContext) _ObservationComponent_interpretation(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_interpretation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, @@ -113180,25 +112894,25 @@ func (ec *executionContext) fieldContext_ObservationComponent_interpretation(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Period_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_referenceRange(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_referenceRange(ctx, field) +func (ec *executionContext) _ObservationComponent_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -113211,7 +112925,7 @@ func (ec *executionContext) _ObservationComponent_referenceRange(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReferenceRange, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -113220,12 +112934,12 @@ func (ec *executionContext) _ObservationComponent_referenceRange(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ObservationReferenceRange) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOObservationReferenceRange2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_referenceRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, @@ -113233,37 +112947,129 @@ func (ec *executionContext) fieldContext_ObservationComponent_referenceRange(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_ObservationReferenceRange_extension(ctx, field) - case "high": - return ec.fieldContext_ObservationReferenceRange_high(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_ObservationReferenceRange_id(ctx, field) - case "type": - return ec.fieldContext_ObservationReferenceRange_type(ctx, field) - case "appliesTo": - return ec.fieldContext_ObservationReferenceRange_appliesTo(ctx, field) - case "age": - return ec.fieldContext_ObservationReferenceRange_age(ctx, field) - case "text": - return ec.fieldContext_ObservationReferenceRange_text(ctx, field) - case "low": - return ec.fieldContext_ObservationReferenceRange_low(ctx, field) - case "normalValue": - return ec.fieldContext_ObservationReferenceRange_normalValue(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_ObservationReferenceRange_resourceType(ctx, field) - case "modifierExtension": - return ec.fieldContext_ObservationReferenceRange_modifierExtension(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ObservationReferenceRange", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_resourceType(ctx, field) +func (ec *executionContext) _ObservationComponent_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueInteger(ctx, field) if err != nil { return graphql.Null } @@ -113276,7 +113082,7 @@ func (ec *executionContext) _ObservationComponent_resourceType(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ValueInteger, nil }) if err != nil { ec.Error(ctx, err) @@ -113290,7 +113096,7 @@ func (ec *executionContext) _ObservationComponent_resourceType(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, @@ -113303,8 +113109,8 @@ func (ec *executionContext) fieldContext_ObservationComponent_resourceType(_ con return fc, nil } -func (ec *executionContext) _ObservationComponent_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueCodeableConcept(ctx, field) +func (ec *executionContext) _ObservationComponent_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -113317,7 +113123,7 @@ func (ec *executionContext) _ObservationComponent_valueCodeableConcept(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCodeableConcept, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -113326,38 +113132,26 @@ func (ec *executionContext) _ObservationComponent_valueCodeableConcept(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationComponent_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationComponent_valueRatio(ctx, field) +func (ec *executionContext) _ObservationComponent_referenceRange(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_referenceRange(ctx, field) if err != nil { return graphql.Null } @@ -113370,7 +113164,7 @@ func (ec *executionContext) _ObservationComponent_valueRatio(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRatio, nil + return obj.ReferenceRange, nil }) if err != nil { ec.Error(ctx, err) @@ -113379,12 +113173,12 @@ func (ec *executionContext) _ObservationComponent_valueRatio(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Ratio) + res := resTmp.([]*model.ObservationReferenceRange) fc.Result = res - return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) + return ec.marshalOObservationReferenceRange2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationComponent_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_referenceRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationComponent", Field: field, @@ -113392,25 +113186,37 @@ func (ec *executionContext) fieldContext_ObservationComponent_valueRatio(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_ObservationReferenceRange_resourceType(ctx, field) + case "type": + return ec.fieldContext_ObservationReferenceRange_type(ctx, field) case "extension": - return ec.fieldContext_Ratio_extension(ctx, field) + return ec.fieldContext_ObservationReferenceRange_extension(ctx, field) + case "low": + return ec.fieldContext_ObservationReferenceRange_low(ctx, field) + case "high": + return ec.fieldContext_ObservationReferenceRange_high(ctx, field) + case "normalValue": + return ec.fieldContext_ObservationReferenceRange_normalValue(ctx, field) + case "appliesTo": + return ec.fieldContext_ObservationReferenceRange_appliesTo(ctx, field) case "id": - return ec.fieldContext_Ratio_id(ctx, field) - case "numerator": - return ec.fieldContext_Ratio_numerator(ctx, field) - case "resourceType": - return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) + return ec.fieldContext_ObservationReferenceRange_id(ctx, field) + case "text": + return ec.fieldContext_ObservationReferenceRange_text(ctx, field) + case "age": + return ec.fieldContext_ObservationReferenceRange_age(ctx, field) + case "modifierExtension": + return ec.fieldContext_ObservationReferenceRange_modifierExtension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ObservationReferenceRange", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationReferenceRange_extension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_extension(ctx, field) +func (ec *executionContext) _ObservationComponent_code(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_code(ctx, field) if err != nil { return graphql.Null } @@ -113423,7 +113229,7 @@ func (ec *executionContext) _ObservationReferenceRange_extension(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -113432,142 +113238,38 @@ func (ec *executionContext) _ObservationReferenceRange_extension(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationReferenceRange_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationReferenceRange", + Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationReferenceRange_high(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_high(ctx, field) +func (ec *executionContext) _ObservationComponent_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueRatio(ctx, field) if err != nil { return graphql.Null } @@ -113580,7 +113282,7 @@ func (ec *executionContext) _ObservationReferenceRange_high(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.High, nil + return obj.ValueRatio, nil }) if err != nil { ec.Error(ctx, err) @@ -113589,85 +113291,38 @@ func (ec *executionContext) _ObservationReferenceRange_high(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*model.Ratio) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationReferenceRange_high(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationReferenceRange", + Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) + return ec.fieldContext_Ratio_extension(ctx, field) case "id": - return ec.fieldContext_Quantity_id(ctx, field) + return ec.fieldContext_Ratio_id(ctx, field) + case "numerator": + return ec.fieldContext_Ratio_numerator(ctx, field) case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_Ratio_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ObservationReferenceRange_id(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ObservationReferenceRange_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ObservationReferenceRange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationReferenceRange_type(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_type(ctx, field) +func (ec *executionContext) _ObservationComponent_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueSampledData(ctx, field) if err != nil { return graphql.Null } @@ -113680,7 +113335,7 @@ func (ec *executionContext) _ObservationReferenceRange_type(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.ValueSampledData, nil }) if err != nil { ec.Error(ctx, err) @@ -113689,38 +113344,54 @@ func (ec *executionContext) _ObservationReferenceRange_type(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.SampledData) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationReferenceRange_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationReferenceRange", + Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + case "intervalUnit": + return ec.fieldContext_SampledData_intervalUnit(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_SampledData_resourceType(ctx, field) + case "lowerLimit": + return ec.fieldContext_SampledData_lowerLimit(ctx, field) + case "factor": + return ec.fieldContext_SampledData_factor(ctx, field) + case "id": + return ec.fieldContext_SampledData_id(ctx, field) + case "extension": + return ec.fieldContext_SampledData_extension(ctx, field) + case "upperLimit": + return ec.fieldContext_SampledData_upperLimit(ctx, field) + case "dimensions": + return ec.fieldContext_SampledData_dimensions(ctx, field) + case "interval": + return ec.fieldContext_SampledData_interval(ctx, field) + case "offsets": + return ec.fieldContext_SampledData_offsets(ctx, field) + case "origin": + return ec.fieldContext_SampledData_origin(ctx, field) + case "codeMap": + return ec.fieldContext_SampledData_codeMap(ctx, field) + case "data": + return ec.fieldContext_SampledData_data(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationReferenceRange_appliesTo(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_appliesTo(ctx, field) +func (ec *executionContext) _ObservationComponent_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueDateTime(ctx, field) if err != nil { return graphql.Null } @@ -113733,7 +113404,7 @@ func (ec *executionContext) _ObservationReferenceRange_appliesTo(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AppliesTo, nil + return obj.ValueDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -113742,38 +113413,26 @@ func (ec *executionContext) _ObservationReferenceRange_appliesTo(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationReferenceRange_appliesTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationReferenceRange", + Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationReferenceRange_age(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_age(ctx, field) +func (ec *executionContext) _ObservationComponent_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueRange(ctx, field) if err != nil { return graphql.Null } @@ -113786,7 +113445,7 @@ func (ec *executionContext) _ObservationReferenceRange_age(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Age, nil + return obj.ValueRange, nil }) if err != nil { ec.Error(ctx, err) @@ -113800,24 +113459,24 @@ func (ec *executionContext) _ObservationReferenceRange_age(ctx context.Context, return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationReferenceRange_age(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationReferenceRange", + Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": return ec.fieldContext_Range_resourceType(ctx, field) case "extension": return ec.fieldContext_Range_extension(ctx, field) case "high": return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, @@ -113825,8 +113484,8 @@ func (ec *executionContext) fieldContext_ObservationReferenceRange_age(_ context return fc, nil } -func (ec *executionContext) _ObservationReferenceRange_text(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_text(ctx, field) +func (ec *executionContext) _ObservationComponent_valueString(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueString(ctx, field) if err != nil { return graphql.Null } @@ -113839,7 +113498,7 @@ func (ec *executionContext) _ObservationReferenceRange_text(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.ValueString, nil }) if err != nil { ec.Error(ctx, err) @@ -113853,9 +113512,9 @@ func (ec *executionContext) _ObservationReferenceRange_text(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationReferenceRange_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationReferenceRange", + Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, @@ -113866,8 +113525,8 @@ func (ec *executionContext) fieldContext_ObservationReferenceRange_text(_ contex return fc, nil } -func (ec *executionContext) _ObservationReferenceRange_low(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_low(ctx, field) +func (ec *executionContext) _ObservationComponent_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_valueQuantity(ctx, field) if err != nil { return graphql.Null } @@ -113880,7 +113539,7 @@ func (ec *executionContext) _ObservationReferenceRange_low(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Low, nil + return obj.ValueQuantity, nil }) if err != nil { ec.Error(ctx, err) @@ -113894,9 +113553,9 @@ func (ec *executionContext) _ObservationReferenceRange_low(ctx context.Context, return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationReferenceRange_low(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationReferenceRange", + Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, @@ -113925,8 +113584,8 @@ func (ec *executionContext) fieldContext_ObservationReferenceRange_low(_ context return fc, nil } -func (ec *executionContext) _ObservationReferenceRange_normalValue(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_normalValue(ctx, field) +func (ec *executionContext) _ObservationComponent_id(ctx context.Context, field graphql.CollectedField, obj *model.ObservationComponent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationComponent_id(ctx, field) if err != nil { return graphql.Null } @@ -113939,7 +113598,7 @@ func (ec *executionContext) _ObservationReferenceRange_normalValue(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NormalValue, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -113948,31 +113607,19 @@ func (ec *executionContext) _ObservationReferenceRange_normalValue(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationReferenceRange_normalValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationComponent_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationReferenceRange", + Object: "ObservationComponent", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -114019,8 +113666,8 @@ func (ec *executionContext) fieldContext_ObservationReferenceRange_resourceType( return fc, nil } -func (ec *executionContext) _ObservationReferenceRange_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationReferenceRange_modifierExtension(ctx, field) +func (ec *executionContext) _ObservationReferenceRange_type(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_type(ctx, field) if err != nil { return graphql.Null } @@ -114033,7 +113680,60 @@ func (ec *executionContext) _ObservationReferenceRange_modifierExtension(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationReferenceRange_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationReferenceRange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ObservationReferenceRange_extension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -114047,7 +113747,7 @@ func (ec *executionContext) _ObservationReferenceRange_modifierExtension(ctx con return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationReferenceRange_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationReferenceRange_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationReferenceRange", Field: field, @@ -114055,120 +113755,120 @@ func (ec *executionContext) fieldContext_ObservationReferenceRange_modifierExten IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -114176,8 +113876,8 @@ func (ec *executionContext) fieldContext_ObservationReferenceRange_modifierExten return fc, nil } -func (ec *executionContext) _ObservationTriggeredBy_id(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationTriggeredBy_id(ctx, field) +func (ec *executionContext) _ObservationReferenceRange_low(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_low(ctx, field) if err != nil { return graphql.Null } @@ -114190,7 +113890,7 @@ func (ec *executionContext) _ObservationTriggeredBy_id(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Low, nil }) if err != nil { ec.Error(ctx, err) @@ -114199,26 +113899,44 @@ func (ec *executionContext) _ObservationTriggeredBy_id(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationTriggeredBy_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationReferenceRange_low(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationTriggeredBy", + Object: "ObservationReferenceRange", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationTriggeredBy_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationTriggeredBy_modifierExtension(ctx, field) +func (ec *executionContext) _ObservationReferenceRange_high(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_high(ctx, field) if err != nil { return graphql.Null } @@ -114231,7 +113949,7 @@ func (ec *executionContext) _ObservationTriggeredBy_modifierExtension(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.High, nil }) if err != nil { ec.Error(ctx, err) @@ -114240,142 +113958,44 @@ func (ec *executionContext) _ObservationTriggeredBy_modifierExtension(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationTriggeredBy_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationReferenceRange_high(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationTriggeredBy", + Object: "ObservationReferenceRange", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationTriggeredBy_observation(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationTriggeredBy_observation(ctx, field) +func (ec *executionContext) _ObservationReferenceRange_normalValue(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_normalValue(ctx, field) if err != nil { return graphql.Null } @@ -114388,7 +114008,7 @@ func (ec *executionContext) _ObservationTriggeredBy_observation(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Observation, nil + return obj.NormalValue, nil }) if err != nil { ec.Error(ctx, err) @@ -114397,135 +114017,38 @@ func (ec *executionContext) _ObservationTriggeredBy_observation(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ObservationType) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOObservationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationTriggeredBy_observation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationReferenceRange_normalValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationTriggeredBy", + Object: "ObservationReferenceRange", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "effectivePeriod": - return ec.fieldContext_ObservationType_effectivePeriod(ctx, field) - case "derivedFrom": - return ec.fieldContext_ObservationType_derivedFrom(ctx, field) - case "effectiveInstant": - return ec.fieldContext_ObservationType_effectiveInstant(ctx, field) - case "valuePeriod": - return ec.fieldContext_ObservationType_valuePeriod(ctx, field) - case "instantiatesCanonical": - return ec.fieldContext_ObservationType_instantiatesCanonical(ctx, field) - case "referenceRange": - return ec.fieldContext_ObservationType_referenceRange(ctx, field) - case "code": - return ec.fieldContext_ObservationType_code(ctx, field) - case "category": - return ec.fieldContext_ObservationType_category(ctx, field) - case "valueBoolean": - return ec.fieldContext_ObservationType_valueBoolean(ctx, field) - case "performer": - return ec.fieldContext_ObservationType_performer(ctx, field) - case "bodySite": - return ec.fieldContext_ObservationType_bodySite(ctx, field) - case "text": - return ec.fieldContext_ObservationType_text(ctx, field) - case "valueQuantity": - return ec.fieldContext_ObservationType_valueQuantity(ctx, field) - case "valueString": - return ec.fieldContext_ObservationType_valueString(ctx, field) - case "id": - return ec.fieldContext_ObservationType_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ObservationType_modifierExtension(ctx, field) - case "contained": - return ec.fieldContext_ObservationType_contained(ctx, field) - case "valueAttachment": - return ec.fieldContext_ObservationType_valueAttachment(ctx, field) - case "issued": - return ec.fieldContext_ObservationType_issued(ctx, field) - case "implicitRules": - return ec.fieldContext_ObservationType_implicitRules(ctx, field) - case "meta": - return ec.fieldContext_ObservationType_meta(ctx, field) - case "method": - return ec.fieldContext_ObservationType_method(ctx, field) - case "bodyStructure": - return ec.fieldContext_ObservationType_bodyStructure(ctx, field) - case "effectiveDateTime": - return ec.fieldContext_ObservationType_effectiveDateTime(ctx, field) - case "valueRatio": - return ec.fieldContext_ObservationType_valueRatio(ctx, field) - case "interpretation": - return ec.fieldContext_ObservationType_interpretation(ctx, field) - case "valueDateTime": - return ec.fieldContext_ObservationType_valueDateTime(ctx, field) - case "valueTime": - return ec.fieldContext_ObservationType_valueTime(ctx, field) - case "dataAbsentReason": - return ec.fieldContext_ObservationType_dataAbsentReason(ctx, field) case "resourceType": - return ec.fieldContext_ObservationType_resourceType(ctx, field) - case "note": - return ec.fieldContext_ObservationType_note(ctx, field) - case "basedOn": - return ec.fieldContext_ObservationType_basedOn(ctx, field) - case "focus": - return ec.fieldContext_ObservationType_focus(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_ObservationType_valueCodeableConcept(ctx, field) - case "hasMember": - return ec.fieldContext_ObservationType_hasMember(ctx, field) - case "valueInteger": - return ec.fieldContext_ObservationType_valueInteger(ctx, field) - case "language": - return ec.fieldContext_ObservationType_language(ctx, field) - case "identifier": - return ec.fieldContext_ObservationType_identifier(ctx, field) - case "valueSampledData": - return ec.fieldContext_ObservationType_valueSampledData(ctx, field) - case "subject": - return ec.fieldContext_ObservationType_subject(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_ObservationType_extension(ctx, field) - case "triggeredBy": - return ec.fieldContext_ObservationType_triggeredBy(ctx, field) - case "specimen": - return ec.fieldContext_ObservationType_specimen(ctx, field) - case "partOf": - return ec.fieldContext_ObservationType_partOf(ctx, field) - case "component": - return ec.fieldContext_ObservationType_component(ctx, field) - case "effectiveTiming": - return ec.fieldContext_ObservationType_effectiveTiming(ctx, field) - case "valueRange": - return ec.fieldContext_ObservationType_valueRange(ctx, field) - case "status": - return ec.fieldContext_ObservationType_status(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ObservationType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationTriggeredBy_observation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ObservationTriggeredBy_reason(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationTriggeredBy_reason(ctx, field) +func (ec *executionContext) _ObservationReferenceRange_appliesTo(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_appliesTo(ctx, field) if err != nil { return graphql.Null } @@ -114538,7 +114061,7 @@ func (ec *executionContext) _ObservationTriggeredBy_reason(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.AppliesTo, nil }) if err != nil { ec.Error(ctx, err) @@ -114547,26 +114070,38 @@ func (ec *executionContext) _ObservationTriggeredBy_reason(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationTriggeredBy_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationReferenceRange_appliesTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationTriggeredBy", + Object: "ObservationReferenceRange", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationTriggeredBy_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationTriggeredBy_resourceType(ctx, field) +func (ec *executionContext) _ObservationReferenceRange_id(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_id(ctx, field) if err != nil { return graphql.Null } @@ -114579,7 +114114,7 @@ func (ec *executionContext) _ObservationTriggeredBy_resourceType(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -114593,9 +114128,9 @@ func (ec *executionContext) _ObservationTriggeredBy_resourceType(ctx context.Con return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationTriggeredBy_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationReferenceRange_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationTriggeredBy", + Object: "ObservationReferenceRange", Field: field, IsMethod: false, IsResolver: false, @@ -114606,8 +114141,8 @@ func (ec *executionContext) fieldContext_ObservationTriggeredBy_resourceType(_ c return fc, nil } -func (ec *executionContext) _ObservationTriggeredBy_type(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationTriggeredBy_type(ctx, field) +func (ec *executionContext) _ObservationReferenceRange_text(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_text(ctx, field) if err != nil { return graphql.Null } @@ -114620,7 +114155,7 @@ func (ec *executionContext) _ObservationTriggeredBy_type(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -114634,9 +114169,9 @@ func (ec *executionContext) _ObservationTriggeredBy_type(ctx context.Context, fi return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationTriggeredBy_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationReferenceRange_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationTriggeredBy", + Object: "ObservationReferenceRange", Field: field, IsMethod: false, IsResolver: false, @@ -114647,8 +114182,8 @@ func (ec *executionContext) fieldContext_ObservationTriggeredBy_type(_ context.C return fc, nil } -func (ec *executionContext) _ObservationTriggeredBy_extension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationTriggeredBy_extension(ctx, field) +func (ec *executionContext) _ObservationReferenceRange_age(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_age(ctx, field) if err != nil { return graphql.Null } @@ -114661,7 +114196,7 @@ func (ec *executionContext) _ObservationTriggeredBy_extension(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Age, nil }) if err != nil { ec.Error(ctx, err) @@ -114670,142 +114205,38 @@ func (ec *executionContext) _ObservationTriggeredBy_extension(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationTriggeredBy_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationReferenceRange_age(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationTriggeredBy", + Object: "ObservationReferenceRange", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_Range_resourceType(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_effectivePeriod(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_effectivePeriod(ctx, field) +func (ec *executionContext) _ObservationReferenceRange_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -114818,7 +114249,7 @@ func (ec *executionContext) _ObservationType_effectivePeriod(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectivePeriod, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -114827,90 +114258,142 @@ func (ec *executionContext) _ObservationType_effectivePeriod(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_effectivePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationReferenceRange_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationType", + Object: "ObservationReferenceRange", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ObservationType_derivedFrom(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_derivedFrom(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DerivedFrom, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.ObservationDerivedFromUnion) - fc.Result = res - return ec.marshalOObservationDerivedFromUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationDerivedFromUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ObservationType_derivedFrom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ObservationType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObservationDerivedFromUnion does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_derivedFrom_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ObservationType_effectiveInstant(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_effectiveInstant(ctx, field) +func (ec *executionContext) _ObservationTriggeredBy_type(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationTriggeredBy_type(ctx, field) if err != nil { return graphql.Null } @@ -114923,7 +114406,7 @@ func (ec *executionContext) _ObservationType_effectiveInstant(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectiveInstant, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -114937,9 +114420,9 @@ func (ec *executionContext) _ObservationType_effectiveInstant(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_effectiveInstant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationTriggeredBy_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationType", + Object: "ObservationTriggeredBy", Field: field, IsMethod: false, IsResolver: false, @@ -114950,8 +114433,8 @@ func (ec *executionContext) fieldContext_ObservationType_effectiveInstant(_ cont return fc, nil } -func (ec *executionContext) _ObservationType_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valuePeriod(ctx, field) +func (ec *executionContext) _ObservationTriggeredBy_extension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationTriggeredBy_extension(ctx, field) if err != nil { return graphql.Null } @@ -114964,7 +114447,7 @@ func (ec *executionContext) _ObservationType_valuePeriod(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValuePeriod, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -114973,38 +114456,142 @@ func (ec *executionContext) _ObservationType_valuePeriod(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationTriggeredBy_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationType", + Object: "ObservationTriggeredBy", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_instantiatesCanonical(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_instantiatesCanonical(ctx, field) +func (ec *executionContext) _ObservationTriggeredBy_id(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationTriggeredBy_id(ctx, field) if err != nil { return graphql.Null } @@ -115017,7 +114604,7 @@ func (ec *executionContext) _ObservationType_instantiatesCanonical(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InstantiatesCanonical, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -115031,9 +114618,9 @@ func (ec *executionContext) _ObservationType_instantiatesCanonical(ctx context.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_instantiatesCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationTriggeredBy_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationType", + Object: "ObservationTriggeredBy", Field: field, IsMethod: false, IsResolver: false, @@ -115044,8 +114631,8 @@ func (ec *executionContext) fieldContext_ObservationType_instantiatesCanonical(_ return fc, nil } -func (ec *executionContext) _ObservationType_referenceRange(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_referenceRange(ctx, field) +func (ec *executionContext) _ObservationTriggeredBy_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationTriggeredBy_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -115058,7 +114645,7 @@ func (ec *executionContext) _ObservationType_referenceRange(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReferenceRange, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -115067,50 +114654,142 @@ func (ec *executionContext) _ObservationType_referenceRange(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ObservationReferenceRange) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOObservationReferenceRange2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_referenceRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationTriggeredBy_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationType", + Object: "ObservationTriggeredBy", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_ObservationReferenceRange_extension(ctx, field) - case "high": - return ec.fieldContext_ObservationReferenceRange_high(ctx, field) - case "id": - return ec.fieldContext_ObservationReferenceRange_id(ctx, field) - case "type": - return ec.fieldContext_ObservationReferenceRange_type(ctx, field) - case "appliesTo": - return ec.fieldContext_ObservationReferenceRange_appliesTo(ctx, field) - case "age": - return ec.fieldContext_ObservationReferenceRange_age(ctx, field) - case "text": - return ec.fieldContext_ObservationReferenceRange_text(ctx, field) - case "low": - return ec.fieldContext_ObservationReferenceRange_low(ctx, field) - case "normalValue": - return ec.fieldContext_ObservationReferenceRange_normalValue(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_ObservationReferenceRange_resourceType(ctx, field) - case "modifierExtension": - return ec.fieldContext_ObservationReferenceRange_modifierExtension(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ObservationReferenceRange", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_code(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_code(ctx, field) +func (ec *executionContext) _ObservationTriggeredBy_observation(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationTriggeredBy_observation(ctx, field) if err != nil { return graphql.Null } @@ -115123,47 +114802,147 @@ func (ec *executionContext) _ObservationType_code(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Observation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.ObservationType) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNObservationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationTriggeredBy_observation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationType", + Object: "ObservationTriggeredBy", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "bodyStructure": + return ec.fieldContext_ObservationType_bodyStructure(ctx, field) + case "dataAbsentReason": + return ec.fieldContext_ObservationType_dataAbsentReason(ctx, field) + case "effectiveInstant": + return ec.fieldContext_ObservationType_effectiveInstant(ctx, field) + case "effectivePeriod": + return ec.fieldContext_ObservationType_effectivePeriod(ctx, field) + case "identifier": + return ec.fieldContext_ObservationType_identifier(ctx, field) + case "meta": + return ec.fieldContext_ObservationType_meta(ctx, field) + case "issued": + return ec.fieldContext_ObservationType_issued(ctx, field) + case "method": + return ec.fieldContext_ObservationType_method(ctx, field) + case "valueTime": + return ec.fieldContext_ObservationType_valueTime(ctx, field) + case "contained": + return ec.fieldContext_ObservationType_contained(ctx, field) + case "valueInteger": + return ec.fieldContext_ObservationType_valueInteger(ctx, field) + case "referenceRange": + return ec.fieldContext_ObservationType_referenceRange(ctx, field) + case "note": + return ec.fieldContext_ObservationType_note(ctx, field) case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_ObservationType_text(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_ObservationType_resourceType(ctx, field) + case "valueDateTime": + return ec.fieldContext_ObservationType_valueDateTime(ctx, field) + case "valueString": + return ec.fieldContext_ObservationType_valueString(ctx, field) + case "valueQuantity": + return ec.fieldContext_ObservationType_valueQuantity(ctx, field) + case "effectiveDateTime": + return ec.fieldContext_ObservationType_effectiveDateTime(ctx, field) + case "hasMember": + return ec.fieldContext_ObservationType_hasMember(ctx, field) + case "instantiatesCanonical": + return ec.fieldContext_ObservationType_instantiatesCanonical(ctx, field) + case "focus": + return ec.fieldContext_ObservationType_focus(ctx, field) + case "performer": + return ec.fieldContext_ObservationType_performer(ctx, field) + case "valueSampledData": + return ec.fieldContext_ObservationType_valueSampledData(ctx, field) + case "implicitRules": + return ec.fieldContext_ObservationType_implicitRules(ctx, field) + case "language": + return ec.fieldContext_ObservationType_language(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_ObservationType_valueCodeableConcept(ctx, field) + case "code": + return ec.fieldContext_ObservationType_code(ctx, field) + case "partOf": + return ec.fieldContext_ObservationType_partOf(ctx, field) + case "status": + return ec.fieldContext_ObservationType_status(ctx, field) + case "category": + return ec.fieldContext_ObservationType_category(ctx, field) + case "triggeredBy": + return ec.fieldContext_ObservationType_triggeredBy(ctx, field) + case "subject": + return ec.fieldContext_ObservationType_subject(ctx, field) + case "derivedFrom": + return ec.fieldContext_ObservationType_derivedFrom(ctx, field) + case "modifierExtension": + return ec.fieldContext_ObservationType_modifierExtension(ctx, field) + case "bodySite": + return ec.fieldContext_ObservationType_bodySite(ctx, field) + case "valueRatio": + return ec.fieldContext_ObservationType_valueRatio(ctx, field) + case "basedOn": + return ec.fieldContext_ObservationType_basedOn(ctx, field) + case "component": + return ec.fieldContext_ObservationType_component(ctx, field) + case "valueAttachment": + return ec.fieldContext_ObservationType_valueAttachment(ctx, field) + case "valueRange": + return ec.fieldContext_ObservationType_valueRange(ctx, field) + case "valuePeriod": + return ec.fieldContext_ObservationType_valuePeriod(ctx, field) + case "specimen": + return ec.fieldContext_ObservationType_specimen(ctx, field) + case "effectiveTiming": + return ec.fieldContext_ObservationType_effectiveTiming(ctx, field) + case "id": + return ec.fieldContext_ObservationType_id(ctx, field) + case "interpretation": + return ec.fieldContext_ObservationType_interpretation(ctx, field) + case "valueBoolean": + return ec.fieldContext_ObservationType_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_ObservationType_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ObservationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ObservationTriggeredBy_observation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ObservationType_category(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_category(ctx, field) +func (ec *executionContext) _ObservationTriggeredBy_reason(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationTriggeredBy_reason(ctx, field) if err != nil { return graphql.Null } @@ -115176,7 +114955,7 @@ func (ec *executionContext) _ObservationType_category(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Category, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -115185,38 +114964,26 @@ func (ec *executionContext) _ObservationType_category(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationTriggeredBy_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationType", + Object: "ObservationTriggeredBy", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationType_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valueBoolean(ctx, field) +func (ec *executionContext) _ObservationTriggeredBy_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ObservationTriggeredBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationTriggeredBy_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -115229,7 +114996,7 @@ func (ec *executionContext) _ObservationType_valueBoolean(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueBoolean, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -115243,9 +115010,9 @@ func (ec *executionContext) _ObservationType_valueBoolean(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationTriggeredBy_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ObservationType", + Object: "ObservationTriggeredBy", Field: field, IsMethod: false, IsResolver: false, @@ -115256,8 +115023,8 @@ func (ec *executionContext) fieldContext_ObservationType_valueBoolean(_ context. return fc, nil } -func (ec *executionContext) _ObservationType_performer(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_performer(ctx, field) +func (ec *executionContext) _ObservationType_bodyStructure(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_bodyStructure(ctx, field) if err != nil { return graphql.Null } @@ -115270,28 +115037,67 @@ func (ec *executionContext) _ObservationType_performer(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Performer, nil + return obj.BodyStructure, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ObservationPerformerUnion) + res := resTmp.(*model.BodyStructureType) fc.Result = res - return ec.marshalOObservationPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPerformerUnion(ctx, field.Selections, res) + return ec.marshalNBodyStructureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_bodyStructure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObservationPerformerUnion does not have child fields") + switch field.Name { + case "description": + return ec.fieldContext_BodyStructureType_description(ctx, field) + case "implicitRules": + return ec.fieldContext_BodyStructureType_implicitRules(ctx, field) + case "patient": + return ec.fieldContext_BodyStructureType_patient(ctx, field) + case "language": + return ec.fieldContext_BodyStructureType_language(ctx, field) + case "meta": + return ec.fieldContext_BodyStructureType_meta(ctx, field) + case "modifierExtension": + return ec.fieldContext_BodyStructureType_modifierExtension(ctx, field) + case "includedStructure": + return ec.fieldContext_BodyStructureType_includedStructure(ctx, field) + case "text": + return ec.fieldContext_BodyStructureType_text(ctx, field) + case "contained": + return ec.fieldContext_BodyStructureType_contained(ctx, field) + case "excludedStructure": + return ec.fieldContext_BodyStructureType_excludedStructure(ctx, field) + case "identifier": + return ec.fieldContext_BodyStructureType_identifier(ctx, field) + case "id": + return ec.fieldContext_BodyStructureType_id(ctx, field) + case "active": + return ec.fieldContext_BodyStructureType_active(ctx, field) + case "morphology": + return ec.fieldContext_BodyStructureType_morphology(ctx, field) + case "extension": + return ec.fieldContext_BodyStructureType_extension(ctx, field) + case "resourceType": + return ec.fieldContext_BodyStructureType_resourceType(ctx, field) + case "image": + return ec.fieldContext_BodyStructureType_image(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BodyStructureType", field.Name) }, } defer func() { @@ -115301,15 +115107,15 @@ func (ec *executionContext) fieldContext_ObservationType_performer(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ObservationType_bodyStructure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ObservationType_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_bodySite(ctx, field) +func (ec *executionContext) _ObservationType_dataAbsentReason(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_dataAbsentReason(ctx, field) if err != nil { return graphql.Null } @@ -115322,7 +115128,7 @@ func (ec *executionContext) _ObservationType_bodySite(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BodySite, nil + return obj.DataAbsentReason, nil }) if err != nil { ec.Error(ctx, err) @@ -115336,7 +115142,7 @@ func (ec *executionContext) _ObservationType_bodySite(ctx context.Context, field return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_dataAbsentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -115344,6 +115150,8 @@ func (ec *executionContext) fieldContext_ObservationType_bodySite(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -115352,8 +115160,6 @@ func (ec *executionContext) fieldContext_ObservationType_bodySite(_ context.Cont return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -115361,8 +115167,8 @@ func (ec *executionContext) fieldContext_ObservationType_bodySite(_ context.Cont return fc, nil } -func (ec *executionContext) _ObservationType_text(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_text(ctx, field) +func (ec *executionContext) _ObservationType_effectiveInstant(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_effectiveInstant(ctx, field) if err != nil { return graphql.Null } @@ -115375,7 +115181,7 @@ func (ec *executionContext) _ObservationType_text(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.EffectiveInstant, nil }) if err != nil { ec.Error(ctx, err) @@ -115384,38 +115190,26 @@ func (ec *executionContext) _ObservationType_text(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_effectiveInstant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationType_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valueQuantity(ctx, field) +func (ec *executionContext) _ObservationType_effectivePeriod(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_effectivePeriod(ctx, field) if err != nil { return graphql.Null } @@ -115428,7 +115222,7 @@ func (ec *executionContext) _ObservationType_valueQuantity(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueQuantity, nil + return obj.EffectivePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -115437,12 +115231,12 @@ func (ec *executionContext) _ObservationType_valueQuantity(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_effectivePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -115450,31 +115244,25 @@ func (ec *executionContext) fieldContext_ObservationType_valueQuantity(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_Quantity_id(ctx, field) + return ec.fieldContext_Period_id(ctx, field) case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_valueString(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valueString(ctx, field) +func (ec *executionContext) _ObservationType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -115487,7 +115275,7 @@ func (ec *executionContext) _ObservationType_valueString(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueString, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -115496,26 +115284,46 @@ func (ec *executionContext) _ObservationType_valueString(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_id(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_id(ctx, field) +func (ec *executionContext) _ObservationType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_meta(ctx, field) if err != nil { return graphql.Null } @@ -115528,7 +115336,7 @@ func (ec *executionContext) _ObservationType_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -115537,26 +115345,46 @@ func (ec *executionContext) _ObservationType_id(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_modifierExtension(ctx, field) +func (ec *executionContext) _ObservationType_issued(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_issued(ctx, field) if err != nil { return graphql.Null } @@ -115569,7 +115397,7 @@ func (ec *executionContext) _ObservationType_modifierExtension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Issued, nil }) if err != nil { ec.Error(ctx, err) @@ -115578,142 +115406,26 @@ func (ec *executionContext) _ObservationType_modifierExtension(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_issued(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_contained(ctx, field) +func (ec *executionContext) _ObservationType_method(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_method(ctx, field) if err != nil { return graphql.Null } @@ -115726,7 +115438,7 @@ func (ec *executionContext) _ObservationType_contained(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Method, nil }) if err != nil { ec.Error(ctx, err) @@ -115735,26 +115447,38 @@ func (ec *executionContext) _ObservationType_contained(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valueAttachment(ctx, field) +func (ec *executionContext) _ObservationType_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueTime(ctx, field) if err != nil { return graphql.Null } @@ -115767,7 +115491,7 @@ func (ec *executionContext) _ObservationType_valueAttachment(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAttachment, nil + return obj.ValueTime, nil }) if err != nil { ec.Error(ctx, err) @@ -115776,60 +115500,26 @@ func (ec *executionContext) _ObservationType_valueAttachment(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Attachment) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) - case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) - case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) - case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationType_issued(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_issued(ctx, field) +func (ec *executionContext) _ObservationType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_contained(ctx, field) if err != nil { return graphql.Null } @@ -115842,7 +115532,7 @@ func (ec *executionContext) _ObservationType_issued(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Issued, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -115851,26 +115541,26 @@ func (ec *executionContext) _ObservationType_issued(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_issued(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_implicitRules(ctx, field) +func (ec *executionContext) _ObservationType_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueInteger(ctx, field) if err != nil { return graphql.Null } @@ -115883,7 +115573,7 @@ func (ec *executionContext) _ObservationType_implicitRules(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.ValueInteger, nil }) if err != nil { ec.Error(ctx, err) @@ -115897,7 +115587,7 @@ func (ec *executionContext) _ObservationType_implicitRules(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -115910,8 +115600,8 @@ func (ec *executionContext) fieldContext_ObservationType_implicitRules(_ context return fc, nil } -func (ec *executionContext) _ObservationType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_meta(ctx, field) +func (ec *executionContext) _ObservationType_referenceRange(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_referenceRange(ctx, field) if err != nil { return graphql.Null } @@ -115924,7 +115614,7 @@ func (ec *executionContext) _ObservationType_meta(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.ReferenceRange, nil }) if err != nil { ec.Error(ctx, err) @@ -115933,12 +115623,12 @@ func (ec *executionContext) _ObservationType_meta(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.ObservationReferenceRange) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOObservationReferenceRange2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_referenceRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -115946,33 +115636,37 @@ func (ec *executionContext) fieldContext_ObservationType_meta(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + return ec.fieldContext_ObservationReferenceRange_resourceType(ctx, field) + case "type": + return ec.fieldContext_ObservationReferenceRange_type(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_ObservationReferenceRange_extension(ctx, field) + case "low": + return ec.fieldContext_ObservationReferenceRange_low(ctx, field) + case "high": + return ec.fieldContext_ObservationReferenceRange_high(ctx, field) + case "normalValue": + return ec.fieldContext_ObservationReferenceRange_normalValue(ctx, field) + case "appliesTo": + return ec.fieldContext_ObservationReferenceRange_appliesTo(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_ObservationReferenceRange_id(ctx, field) + case "text": + return ec.fieldContext_ObservationReferenceRange_text(ctx, field) + case "age": + return ec.fieldContext_ObservationReferenceRange_age(ctx, field) + case "modifierExtension": + return ec.fieldContext_ObservationReferenceRange_modifierExtension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ObservationReferenceRange", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_method(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_method(ctx, field) +func (ec *executionContext) _ObservationType_note(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_note(ctx, field) if err != nil { return graphql.Null } @@ -115985,47 +115679,49 @@ func (ec *executionContext) _ObservationType_method(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Method, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(model.ObservationNoteUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNObservationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type ObservationNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ObservationType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ObservationType_bodyStructure(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_bodyStructure(ctx, field) +func (ec *executionContext) _ObservationType_text(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_text(ctx, field) if err != nil { return graphql.Null } @@ -116038,7 +115734,7 @@ func (ec *executionContext) _ObservationType_bodyStructure(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BodyStructure, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -116047,12 +115743,12 @@ func (ec *executionContext) _ObservationType_bodyStructure(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.BodyStructureType) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOBodyStructureType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_bodyStructure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -116060,60 +115756,25 @@ func (ec *executionContext) fieldContext_ObservationType_bodyStructure(ctx conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "patient": - return ec.fieldContext_BodyStructureType_patient(ctx, field) - case "contained": - return ec.fieldContext_BodyStructureType_contained(ctx, field) - case "modifierExtension": - return ec.fieldContext_BodyStructureType_modifierExtension(ctx, field) - case "active": - return ec.fieldContext_BodyStructureType_active(ctx, field) - case "identifier": - return ec.fieldContext_BodyStructureType_identifier(ctx, field) - case "image": - return ec.fieldContext_BodyStructureType_image(ctx, field) case "extension": - return ec.fieldContext_BodyStructureType_extension(ctx, field) - case "excludedStructure": - return ec.fieldContext_BodyStructureType_excludedStructure(ctx, field) - case "resourceType": - return ec.fieldContext_BodyStructureType_resourceType(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_BodyStructureType_id(ctx, field) - case "meta": - return ec.fieldContext_BodyStructureType_meta(ctx, field) - case "includedStructure": - return ec.fieldContext_BodyStructureType_includedStructure(ctx, field) - case "implicitRules": - return ec.fieldContext_BodyStructureType_implicitRules(ctx, field) - case "morphology": - return ec.fieldContext_BodyStructureType_morphology(ctx, field) - case "text": - return ec.fieldContext_BodyStructureType_text(ctx, field) - case "description": - return ec.fieldContext_BodyStructureType_description(ctx, field) - case "language": - return ec.fieldContext_BodyStructureType_language(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type BodyStructureType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_bodyStructure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ObservationType_effectiveDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_effectiveDateTime(ctx, field) +func (ec *executionContext) _ObservationType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -116126,7 +115787,7 @@ func (ec *executionContext) _ObservationType_effectiveDateTime(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectiveDateTime, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -116140,7 +115801,7 @@ func (ec *executionContext) _ObservationType_effectiveDateTime(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_effectiveDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -116153,8 +115814,8 @@ func (ec *executionContext) fieldContext_ObservationType_effectiveDateTime(_ con return fc, nil } -func (ec *executionContext) _ObservationType_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valueRatio(ctx, field) +func (ec *executionContext) _ObservationType_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueDateTime(ctx, field) if err != nil { return graphql.Null } @@ -116167,7 +115828,7 @@ func (ec *executionContext) _ObservationType_valueRatio(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRatio, nil + return obj.ValueDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -116176,38 +115837,26 @@ func (ec *executionContext) _ObservationType_valueRatio(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Ratio) + res := resTmp.(*string) fc.Result = res - return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Ratio_extension(ctx, field) - case "id": - return ec.fieldContext_Ratio_id(ctx, field) - case "numerator": - return ec.fieldContext_Ratio_numerator(ctx, field) - case "resourceType": - return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationType_interpretation(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_interpretation(ctx, field) +func (ec *executionContext) _ObservationType_valueString(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueString(ctx, field) if err != nil { return graphql.Null } @@ -116220,7 +115869,7 @@ func (ec *executionContext) _ObservationType_interpretation(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Interpretation, nil + return obj.ValueString, nil }) if err != nil { ec.Error(ctx, err) @@ -116229,38 +115878,26 @@ func (ec *executionContext) _ObservationType_interpretation(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_interpretation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ObservationType_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valueDateTime(ctx, field) +func (ec *executionContext) _ObservationType_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueQuantity(ctx, field) if err != nil { return graphql.Null } @@ -116273,7 +115910,7 @@ func (ec *executionContext) _ObservationType_valueDateTime(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDateTime, nil + return obj.ValueQuantity, nil }) if err != nil { ec.Error(ctx, err) @@ -116282,26 +115919,44 @@ func (ec *executionContext) _ObservationType_valueDateTime(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valueTime(ctx, field) +func (ec *executionContext) _ObservationType_effectiveDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_effectiveDateTime(ctx, field) if err != nil { return graphql.Null } @@ -116314,7 +115969,7 @@ func (ec *executionContext) _ObservationType_valueTime(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTime, nil + return obj.EffectiveDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -116328,7 +115983,7 @@ func (ec *executionContext) _ObservationType_valueTime(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_effectiveDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -116341,8 +115996,8 @@ func (ec *executionContext) fieldContext_ObservationType_valueTime(_ context.Con return fc, nil } -func (ec *executionContext) _ObservationType_dataAbsentReason(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_dataAbsentReason(ctx, field) +func (ec *executionContext) _ObservationType_hasMember(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_hasMember(ctx, field) if err != nil { return graphql.Null } @@ -116355,47 +116010,49 @@ func (ec *executionContext) _ObservationType_dataAbsentReason(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DataAbsentReason, nil + return obj.HasMember, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(model.ObservationHasMemberUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNObservationHasMemberUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationHasMemberUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_dataAbsentReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_hasMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type ObservationHasMemberUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ObservationType_hasMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ObservationType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_resourceType(ctx, field) +func (ec *executionContext) _ObservationType_instantiatesCanonical(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_instantiatesCanonical(ctx, field) if err != nil { return graphql.Null } @@ -116408,7 +116065,7 @@ func (ec *executionContext) _ObservationType_resourceType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.InstantiatesCanonical, nil }) if err != nil { ec.Error(ctx, err) @@ -116422,7 +116079,7 @@ func (ec *executionContext) _ObservationType_resourceType(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_instantiatesCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -116435,8 +116092,8 @@ func (ec *executionContext) fieldContext_ObservationType_resourceType(_ context. return fc, nil } -func (ec *executionContext) _ObservationType_note(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_note(ctx, field) +func (ec *executionContext) _ObservationType_focus(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_focus(ctx, field) if err != nil { return graphql.Null } @@ -116449,28 +116106,31 @@ func (ec *executionContext) _ObservationType_note(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.Focus, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ObservationNoteUnion) + res := resTmp.(model.ResourceUnion) fc.Result = res - return ec.marshalOObservationNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationNoteUnion(ctx, field.Selections, res) + return ec.marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_focus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObservationNoteUnion does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } defer func() { @@ -116480,15 +116140,15 @@ func (ec *executionContext) fieldContext_ObservationType_note(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ObservationType_focus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ObservationType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_basedOn(ctx, field) +func (ec *executionContext) _ObservationType_performer(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_performer(ctx, field) if err != nil { return graphql.Null } @@ -116501,28 +116161,31 @@ func (ec *executionContext) _ObservationType_basedOn(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BasedOn, nil + return obj.Performer, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ObservationBasedOnUnion) + res := resTmp.(model.ObservationPerformerUnion) fc.Result = res - return ec.marshalOObservationBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationBasedOnUnion(ctx, field.Selections, res) + return ec.marshalNObservationPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPerformerUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObservationBasedOnUnion does not have child fields") + return nil, errors.New("field of type ObservationPerformerUnion does not have child fields") }, } defer func() { @@ -116532,15 +116195,15 @@ func (ec *executionContext) fieldContext_ObservationType_basedOn(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ObservationType_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ObservationType_focus(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_focus(ctx, field) +func (ec *executionContext) _ObservationType_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueSampledData(ctx, field) if err != nil { return graphql.Null } @@ -116553,7 +116216,7 @@ func (ec *executionContext) _ObservationType_focus(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Focus, nil + return obj.ValueSampledData, nil }) if err != nil { ec.Error(ctx, err) @@ -116562,31 +116225,130 @@ func (ec *executionContext) _ObservationType_focus(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(model.ResourceUnion) + res := resTmp.(*model.SampledData) fc.Result = res - return ec.marshalOResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_focus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "intervalUnit": + return ec.fieldContext_SampledData_intervalUnit(ctx, field) + case "resourceType": + return ec.fieldContext_SampledData_resourceType(ctx, field) + case "lowerLimit": + return ec.fieldContext_SampledData_lowerLimit(ctx, field) + case "factor": + return ec.fieldContext_SampledData_factor(ctx, field) + case "id": + return ec.fieldContext_SampledData_id(ctx, field) + case "extension": + return ec.fieldContext_SampledData_extension(ctx, field) + case "upperLimit": + return ec.fieldContext_SampledData_upperLimit(ctx, field) + case "dimensions": + return ec.fieldContext_SampledData_dimensions(ctx, field) + case "interval": + return ec.fieldContext_SampledData_interval(ctx, field) + case "offsets": + return ec.fieldContext_SampledData_offsets(ctx, field) + case "origin": + return ec.fieldContext_SampledData_origin(ctx, field) + case "codeMap": + return ec.fieldContext_SampledData_codeMap(ctx, field) + case "data": + return ec.fieldContext_SampledData_data(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _ObservationType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_implicitRules(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ImplicitRules, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ObservationType_language(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_language(ctx, field) + if err != nil { + return graphql.Null + } ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_focus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Language, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } @@ -116627,6 +116389,8 @@ func (ec *executionContext) fieldContext_ObservationType_valueCodeableConcept(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -116635,8 +116399,59 @@ func (ec *executionContext) fieldContext_ObservationType_valueCodeableConcept(_ return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ObservationType_code(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_code(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Code, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { case "resourceType": return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -116644,8 +116459,8 @@ func (ec *executionContext) fieldContext_ObservationType_valueCodeableConcept(_ return fc, nil } -func (ec *executionContext) _ObservationType_hasMember(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_hasMember(ctx, field) +func (ec *executionContext) _ObservationType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_partOf(ctx, field) if err != nil { return graphql.Null } @@ -116658,28 +116473,31 @@ func (ec *executionContext) _ObservationType_hasMember(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HasMember, nil + return obj.PartOf, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ObservationHasMemberUnion) + res := resTmp.(model.ObservationPartOfUnion) fc.Result = res - return ec.marshalOObservationHasMemberUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationHasMemberUnion(ctx, field.Selections, res) + return ec.marshalNObservationPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPartOfUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_hasMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObservationHasMemberUnion does not have child fields") + return nil, errors.New("field of type ObservationPartOfUnion does not have child fields") }, } defer func() { @@ -116689,15 +116507,15 @@ func (ec *executionContext) fieldContext_ObservationType_hasMember(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_hasMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ObservationType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ObservationType_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valueInteger(ctx, field) +func (ec *executionContext) _ObservationType_status(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_status(ctx, field) if err != nil { return graphql.Null } @@ -116710,7 +116528,7 @@ func (ec *executionContext) _ObservationType_valueInteger(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInteger, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -116724,7 +116542,7 @@ func (ec *executionContext) _ObservationType_valueInteger(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -116737,8 +116555,8 @@ func (ec *executionContext) fieldContext_ObservationType_valueInteger(_ context. return fc, nil } -func (ec *executionContext) _ObservationType_language(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_language(ctx, field) +func (ec *executionContext) _ObservationType_category(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_category(ctx, field) if err != nil { return graphql.Null } @@ -116751,7 +116569,7 @@ func (ec *executionContext) _ObservationType_language(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Category, nil }) if err != nil { ec.Error(ctx, err) @@ -116760,26 +116578,38 @@ func (ec *executionContext) _ObservationType_language(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_identifier(ctx, field) +func (ec *executionContext) _ObservationType_triggeredBy(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_triggeredBy(ctx, field) if err != nil { return graphql.Null } @@ -116792,7 +116622,7 @@ func (ec *executionContext) _ObservationType_identifier(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.TriggeredBy, nil }) if err != nil { ec.Error(ctx, err) @@ -116801,12 +116631,12 @@ func (ec *executionContext) _ObservationType_identifier(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.([]*model.ObservationTriggeredBy) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOObservationTriggeredBy2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_triggeredBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -116815,32 +116645,28 @@ func (ec *executionContext) fieldContext_ObservationType_identifier(_ context.Co Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "type": - return ec.fieldContext_Identifier_type(ctx, field) + return ec.fieldContext_ObservationTriggeredBy_type(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + return ec.fieldContext_ObservationTriggeredBy_extension(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_ObservationTriggeredBy_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ObservationTriggeredBy_modifierExtension(ctx, field) + case "observation": + return ec.fieldContext_ObservationTriggeredBy_observation(ctx, field) + case "reason": + return ec.fieldContext_ObservationTriggeredBy_reason(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_ObservationTriggeredBy_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ObservationTriggeredBy", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_valueSampledData(ctx, field) +func (ec *executionContext) _ObservationType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_subject(ctx, field) if err != nil { return graphql.Null } @@ -116853,63 +116679,49 @@ func (ec *executionContext) _ObservationType_valueSampledData(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueSampledData, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.SampledData) + res := resTmp.(model.ObservationSubjectUnion) fc.Result = res - return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) + return ec.marshalNObservationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSubjectUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_SampledData_resourceType(ctx, field) - case "origin": - return ec.fieldContext_SampledData_origin(ctx, field) - case "codeMap": - return ec.fieldContext_SampledData_codeMap(ctx, field) - case "intervalUnit": - return ec.fieldContext_SampledData_intervalUnit(ctx, field) - case "lowerLimit": - return ec.fieldContext_SampledData_lowerLimit(ctx, field) - case "upperLimit": - return ec.fieldContext_SampledData_upperLimit(ctx, field) - case "extension": - return ec.fieldContext_SampledData_extension(ctx, field) - case "id": - return ec.fieldContext_SampledData_id(ctx, field) - case "dimensions": - return ec.fieldContext_SampledData_dimensions(ctx, field) - case "factor": - return ec.fieldContext_SampledData_factor(ctx, field) - case "interval": - return ec.fieldContext_SampledData_interval(ctx, field) - case "offsets": - return ec.fieldContext_SampledData_offsets(ctx, field) - case "data": - return ec.fieldContext_SampledData_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) + return nil, errors.New("field of type ObservationSubjectUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ObservationType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ObservationType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_subject(ctx, field) +func (ec *executionContext) _ObservationType_derivedFrom(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_derivedFrom(ctx, field) if err != nil { return graphql.Null } @@ -116922,28 +116734,31 @@ func (ec *executionContext) _ObservationType_subject(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.DerivedFrom, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(model.ObservationSubjectUnion) + res := resTmp.(model.ObservationDerivedFromUnion) fc.Result = res - return ec.marshalOObservationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSubjectUnion(ctx, field.Selections, res) + return ec.marshalNObservationDerivedFromUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationDerivedFromUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_derivedFrom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObservationSubjectUnion does not have child fields") + return nil, errors.New("field of type ObservationDerivedFromUnion does not have child fields") }, } defer func() { @@ -116953,15 +116768,15 @@ func (ec *executionContext) fieldContext_ObservationType_subject(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ObservationType_derivedFrom_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ObservationType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_extension(ctx, field) +func (ec *executionContext) _ObservationType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -116974,7 +116789,7 @@ func (ec *executionContext) _ObservationType_extension(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -116988,7 +116803,7 @@ func (ec *executionContext) _ObservationType_extension(ctx context.Context, fiel return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -116996,120 +116811,120 @@ func (ec *executionContext) fieldContext_ObservationType_extension(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -117117,8 +116932,8 @@ func (ec *executionContext) fieldContext_ObservationType_extension(_ context.Con return fc, nil } -func (ec *executionContext) _ObservationType_triggeredBy(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_triggeredBy(ctx, field) +func (ec *executionContext) _ObservationType_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_bodySite(ctx, field) if err != nil { return graphql.Null } @@ -117131,7 +116946,7 @@ func (ec *executionContext) _ObservationType_triggeredBy(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TriggeredBy, nil + return obj.BodySite, nil }) if err != nil { ec.Error(ctx, err) @@ -117140,12 +116955,12 @@ func (ec *executionContext) _ObservationType_triggeredBy(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ObservationTriggeredBy) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOObservationTriggeredBy2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_triggeredBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -117153,29 +116968,25 @@ func (ec *executionContext) fieldContext_ObservationType_triggeredBy(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_ObservationTriggeredBy_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ObservationTriggeredBy_modifierExtension(ctx, field) - case "observation": - return ec.fieldContext_ObservationTriggeredBy_observation(ctx, field) - case "reason": - return ec.fieldContext_ObservationTriggeredBy_reason(ctx, field) case "resourceType": - return ec.fieldContext_ObservationTriggeredBy_resourceType(ctx, field) - case "type": - return ec.fieldContext_ObservationTriggeredBy_type(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_ObservationTriggeredBy_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ObservationTriggeredBy", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ObservationType_specimen(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_specimen(ctx, field) +func (ec *executionContext) _ObservationType_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueRatio(ctx, field) if err != nil { return graphql.Null } @@ -117188,7 +116999,7 @@ func (ec *executionContext) _ObservationType_specimen(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Specimen, nil + return obj.ValueRatio, nil }) if err != nil { ec.Error(ctx, err) @@ -117197,37 +117008,38 @@ func (ec *executionContext) _ObservationType_specimen(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ObservationSpecimenUnion) + res := resTmp.(*model.Ratio) fc.Result = res - return ec.marshalOObservationSpecimenUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSpecimenUnion(ctx, field.Selections, res) + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_specimen(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObservationSpecimenUnion does not have child fields") + switch field.Name { + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) + case "extension": + return ec.fieldContext_Ratio_extension(ctx, field) + case "id": + return ec.fieldContext_Ratio_id(ctx, field) + case "numerator": + return ec.fieldContext_Ratio_numerator(ctx, field) + case "resourceType": + return ec.fieldContext_Ratio_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_specimen_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ObservationType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_partOf(ctx, field) +func (ec *executionContext) _ObservationType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_basedOn(ctx, field) if err != nil { return graphql.Null } @@ -117240,28 +117052,31 @@ func (ec *executionContext) _ObservationType_partOf(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PartOf, nil + return obj.BasedOn, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ObservationPartOfUnion) + res := resTmp.(model.ObservationBasedOnUnion) fc.Result = res - return ec.marshalOObservationPartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPartOfUnion(ctx, field.Selections, res) + return ec.marshalNObservationBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationBasedOnUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObservationPartOfUnion does not have child fields") + return nil, errors.New("field of type ObservationBasedOnUnion does not have child fields") }, } defer func() { @@ -117271,7 +117086,7 @@ func (ec *executionContext) fieldContext_ObservationType_partOf(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ObservationType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ObservationType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } @@ -117314,46 +117129,46 @@ func (ec *executionContext) fieldContext_ObservationType_component(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_ObservationComponent_id(ctx, field) - case "valuePeriod": - return ec.fieldContext_ObservationComponent_valuePeriod(ctx, field) - case "valueQuantity": - return ec.fieldContext_ObservationComponent_valueQuantity(ctx, field) - case "valueRange": - return ec.fieldContext_ObservationComponent_valueRange(ctx, field) + case "dataAbsentReason": + return ec.fieldContext_ObservationComponent_dataAbsentReason(ctx, field) + case "interpretation": + return ec.fieldContext_ObservationComponent_interpretation(ctx, field) case "valueAttachment": return ec.fieldContext_ObservationComponent_valueAttachment(ctx, field) case "extension": return ec.fieldContext_ObservationComponent_extension(ctx, field) - case "valueSampledData": - return ec.fieldContext_ObservationComponent_valueSampledData(ctx, field) - case "valueString": - return ec.fieldContext_ObservationComponent_valueString(ctx, field) - case "modifierExtension": - return ec.fieldContext_ObservationComponent_modifierExtension(ctx, field) - case "code": - return ec.fieldContext_ObservationComponent_code(ctx, field) - case "dataAbsentReason": - return ec.fieldContext_ObservationComponent_dataAbsentReason(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_ObservationComponent_valueCodeableConcept(ctx, field) + case "valueTime": + return ec.fieldContext_ObservationComponent_valueTime(ctx, field) case "valueBoolean": return ec.fieldContext_ObservationComponent_valueBoolean(ctx, field) - case "valueDateTime": - return ec.fieldContext_ObservationComponent_valueDateTime(ctx, field) + case "valuePeriod": + return ec.fieldContext_ObservationComponent_valuePeriod(ctx, field) + case "modifierExtension": + return ec.fieldContext_ObservationComponent_modifierExtension(ctx, field) case "valueInteger": return ec.fieldContext_ObservationComponent_valueInteger(ctx, field) - case "valueTime": - return ec.fieldContext_ObservationComponent_valueTime(ctx, field) - case "interpretation": - return ec.fieldContext_ObservationComponent_interpretation(ctx, field) - case "referenceRange": - return ec.fieldContext_ObservationComponent_referenceRange(ctx, field) case "resourceType": return ec.fieldContext_ObservationComponent_resourceType(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_ObservationComponent_valueCodeableConcept(ctx, field) + case "referenceRange": + return ec.fieldContext_ObservationComponent_referenceRange(ctx, field) + case "code": + return ec.fieldContext_ObservationComponent_code(ctx, field) case "valueRatio": return ec.fieldContext_ObservationComponent_valueRatio(ctx, field) + case "valueSampledData": + return ec.fieldContext_ObservationComponent_valueSampledData(ctx, field) + case "valueDateTime": + return ec.fieldContext_ObservationComponent_valueDateTime(ctx, field) + case "valueRange": + return ec.fieldContext_ObservationComponent_valueRange(ctx, field) + case "valueString": + return ec.fieldContext_ObservationComponent_valueString(ctx, field) + case "valueQuantity": + return ec.fieldContext_ObservationComponent_valueQuantity(ctx, field) + case "id": + return ec.fieldContext_ObservationComponent_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ObservationComponent", field.Name) }, @@ -117361,8 +117176,8 @@ func (ec *executionContext) fieldContext_ObservationType_component(_ context.Con return fc, nil } -func (ec *executionContext) _ObservationType_effectiveTiming(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_effectiveTiming(ctx, field) +func (ec *executionContext) _ObservationType_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueAttachment(ctx, field) if err != nil { return graphql.Null } @@ -117375,7 +117190,7 @@ func (ec *executionContext) _ObservationType_effectiveTiming(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectiveTiming, nil + return obj.ValueAttachment, nil }) if err != nil { ec.Error(ctx, err) @@ -117384,12 +117199,12 @@ func (ec *executionContext) _ObservationType_effectiveTiming(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Timing) + res := resTmp.(*model.Attachment) fc.Result = res - return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) + return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_effectiveTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, @@ -117397,22 +117212,40 @@ func (ec *executionContext) fieldContext_ObservationType_effectiveTiming(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "repeat": - return ec.fieldContext_Timing_repeat(ctx, field) + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) case "resourceType": - return ec.fieldContext_Timing_resourceType(ctx, field) - case "code": - return ec.fieldContext_Timing_code(ctx, field) - case "event": - return ec.fieldContext_Timing_event(ctx, field) + return ec.fieldContext_Attachment_resourceType(ctx, field) case "extension": - return ec.fieldContext_Timing_extension(ctx, field) + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) case "id": - return ec.fieldContext_Timing_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_Timing_modifierExtension(ctx, field) + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, } return fc, nil @@ -117454,16 +117287,16 @@ func (ec *executionContext) fieldContext_ObservationType_valueRange(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": return ec.fieldContext_Range_resourceType(ctx, field) case "extension": return ec.fieldContext_Range_extension(ctx, field) case "high": return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, @@ -117471,8 +117304,8 @@ func (ec *executionContext) fieldContext_ObservationType_valueRange(_ context.Co return fc, nil } -func (ec *executionContext) _ObservationType_status(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ObservationType_status(ctx, field) +func (ec *executionContext) _ObservationType_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valuePeriod(ctx, field) if err != nil { return graphql.Null } @@ -117485,7 +117318,7 @@ func (ec *executionContext) _ObservationType_status(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.ValuePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -117494,26 +117327,38 @@ func (ec *executionContext) _ObservationType_status(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ObservationType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationQualification_extension(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationQualification_extension(ctx, field) +func (ec *executionContext) _ObservationType_specimen(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_specimen(ctx, field) if err != nil { return graphql.Null } @@ -117526,151 +117371,106 @@ func (ec *executionContext) _OrganizationQualification_extension(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Specimen, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(model.ObservationSpecimenUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNObservationSpecimenUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSpecimenUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationQualification_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_specimen(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationQualification", + Object: "ObservationType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ObservationSpecimenUnion does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ObservationType_specimen_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ObservationType_effectiveTiming(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_effectiveTiming(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EffectiveTiming, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Timing) + fc.Result = res + return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationType_effectiveTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "code": + return ec.fieldContext_Timing_code(ctx, field) + case "event": + return ec.fieldContext_Timing_event(ctx, field) + case "extension": + return ec.fieldContext_Timing_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Timing_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Timing_modifierExtension(ctx, field) + case "repeat": + return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Timing_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationQualification_id(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationQualification_id(ctx, field) +func (ec *executionContext) _ObservationType_id(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_id(ctx, field) if err != nil { return graphql.Null } @@ -117697,9 +117497,9 @@ func (ec *executionContext) _OrganizationQualification_id(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationQualification_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationQualification", + Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, @@ -117710,8 +117510,8 @@ func (ec *executionContext) fieldContext_OrganizationQualification_id(_ context. return fc, nil } -func (ec *executionContext) _OrganizationQualification_identifier(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationQualification_identifier(ctx, field) +func (ec *executionContext) _ObservationType_interpretation(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_interpretation(ctx, field) if err != nil { return graphql.Null } @@ -117724,7 +117524,7 @@ func (ec *executionContext) _OrganizationQualification_identifier(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Interpretation, nil }) if err != nil { ec.Error(ctx, err) @@ -117733,46 +117533,38 @@ func (ec *executionContext) _OrganizationQualification_identifier(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationQualification_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_interpretation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationQualification", + Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationQualification_issuer(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationQualification_issuer(ctx, field) +func (ec *executionContext) _ObservationType_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueBoolean(ctx, field) if err != nil { return graphql.Null } @@ -117785,7 +117577,7 @@ func (ec *executionContext) _OrganizationQualification_issuer(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Issuer, nil + return obj.ValueBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -117794,75 +117586,26 @@ func (ec *executionContext) _OrganizationQualification_issuer(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationQualification_issuer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationQualification", + Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) - case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_OrganizationQualification_issuer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _OrganizationQualification_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationQualification_modifierExtension(ctx, field) +func (ec *executionContext) _ObservationType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_extension(ctx, field) if err != nil { return graphql.Null } @@ -117875,7 +117618,7 @@ func (ec *executionContext) _OrganizationQualification_modifierExtension(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -117889,128 +117632,128 @@ func (ec *executionContext) _OrganizationQualification_modifierExtension(ctx con return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationQualification_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ObservationType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationQualification", + Object: "ObservationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -118018,8 +117761,8 @@ func (ec *executionContext) fieldContext_OrganizationQualification_modifierExten return fc, nil } -func (ec *executionContext) _OrganizationQualification_period(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationQualification_period(ctx, field) +func (ec *executionContext) _OrganizationQualification_extension(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationQualification_extension(ctx, field) if err != nil { return graphql.Null } @@ -118032,7 +117775,7 @@ func (ec *executionContext) _OrganizationQualification_period(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -118041,12 +117784,12 @@ func (ec *executionContext) _OrganizationQualification_period(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationQualification_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationQualification_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationQualification", Field: field, @@ -118054,25 +117797,129 @@ func (ec *executionContext) fieldContext_OrganizationQualification_period(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationQualification_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationQualification_resourceType(ctx, field) +func (ec *executionContext) _OrganizationQualification_id(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationQualification_id(ctx, field) if err != nil { return graphql.Null } @@ -118085,7 +117932,7 @@ func (ec *executionContext) _OrganizationQualification_resourceType(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -118099,7 +117946,7 @@ func (ec *executionContext) _OrganizationQualification_resourceType(ctx context. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationQualification_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationQualification_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationQualification", Field: field, @@ -118112,8 +117959,8 @@ func (ec *executionContext) fieldContext_OrganizationQualification_resourceType( return fc, nil } -func (ec *executionContext) _OrganizationQualification_code(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationQualification_code(ctx, field) +func (ec *executionContext) _OrganizationQualification_identifier(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationQualification_identifier(ctx, field) if err != nil { return graphql.Null } @@ -118126,7 +117973,7 @@ func (ec *executionContext) _OrganizationQualification_code(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -118135,12 +117982,12 @@ func (ec *executionContext) _OrganizationQualification_code(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationQualification_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationQualification_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationQualification", Field: field, @@ -118148,25 +117995,33 @@ func (ec *executionContext) fieldContext_OrganizationQualification_code(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationType_name(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_name(ctx, field) +func (ec *executionContext) _OrganizationQualification_issuer(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationQualification_issuer(ctx, field) if err != nil { return graphql.Null } @@ -118179,190 +118034,87 @@ func (ec *executionContext) _OrganizationType_name(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Issuer, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationType_contact(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_contact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contact, nil - }) - if err != nil { - ec.Error(ctx, err) return graphql.Null } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.ExtendedContactDetail) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationQualification_issuer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationType", + Object: "OrganizationQualification", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_ExtendedContactDetail_name(ctx, field) - case "organization": - return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) - case "purpose": - return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) case "resourceType": - return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) - case "telecom": - return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) - case "address": - return ec.fieldContext_ExtendedContactDetail_address(ctx, field) - case "id": - return ec.fieldContext_ExtendedContactDetail_id(ctx, field) + return ec.fieldContext_OrganizationType_resourceType(ctx, field) case "extension": - return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) - case "period": - return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _OrganizationType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_implicitRules(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationType_type(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_type(ctx, field) - if err != nil { - return graphql.Null - } ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { + if fc.Args, err = ec.field_OrganizationQualification_issuer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.CodeableConcept) - fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationType_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, + return fc, err } return fc, nil } -func (ec *executionContext) _OrganizationType_extension(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_extension(ctx, field) +func (ec *executionContext) _OrganizationQualification_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationQualification_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -118375,7 +118127,7 @@ func (ec *executionContext) _OrganizationType_extension(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -118389,128 +118141,128 @@ func (ec *executionContext) _OrganizationType_extension(ctx context.Context, fie return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationQualification_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationType", + Object: "OrganizationQualification", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -118518,8 +118270,8 @@ func (ec *executionContext) fieldContext_OrganizationType_extension(_ context.Co return fc, nil } -func (ec *executionContext) _OrganizationType_text(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_text(ctx, field) +func (ec *executionContext) _OrganizationQualification_period(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationQualification_period(ctx, field) if err != nil { return graphql.Null } @@ -118532,7 +118284,7 @@ func (ec *executionContext) _OrganizationType_text(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -118541,38 +118293,38 @@ func (ec *executionContext) _OrganizationType_text(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationQualification_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationType", + Object: "OrganizationQualification", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Period_id(ctx, field) case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationType_language(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_language(ctx, field) +func (ec *executionContext) _OrganizationQualification_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationQualification_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -118585,7 +118337,7 @@ func (ec *executionContext) _OrganizationType_language(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -118599,9 +118351,9 @@ func (ec *executionContext) _OrganizationType_language(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationQualification_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationType", + Object: "OrganizationQualification", Field: field, IsMethod: false, IsResolver: false, @@ -118612,8 +118364,8 @@ func (ec *executionContext) fieldContext_OrganizationType_language(_ context.Con return fc, nil } -func (ec *executionContext) _OrganizationType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_resourceType(ctx, field) +func (ec *executionContext) _OrganizationQualification_code(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationQualification_code(ctx, field) if err != nil { return graphql.Null } @@ -118626,7 +118378,7 @@ func (ec *executionContext) _OrganizationType_resourceType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -118635,26 +118387,38 @@ func (ec *executionContext) _OrganizationType_resourceType(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationQualification_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationType", + Object: "OrganizationQualification", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_partOf(ctx, field) +func (ec *executionContext) _OrganizationType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -118667,7 +118431,7 @@ func (ec *executionContext) _OrganizationType_partOf(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PartOf, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -118676,12 +118440,12 @@ func (ec *executionContext) _OrganizationType_partOf(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationType", Field: field, @@ -118689,62 +118453,33 @@ func (ec *executionContext) fieldContext_OrganizationType_partOf(ctx context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_OrganizationType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _OrganizationType_alias(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_alias(ctx, field) +func (ec *executionContext) _OrganizationType_contained(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_contained(ctx, field) if err != nil { return graphql.Null } @@ -118757,7 +118492,7 @@ func (ec *executionContext) _OrganizationType_alias(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Alias, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -118766,26 +118501,26 @@ func (ec *executionContext) _OrganizationType_alias(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_alias(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationType_contained(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_contained(ctx, field) +func (ec *executionContext) _OrganizationType_active(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_active(ctx, field) if err != nil { return graphql.Null } @@ -118798,7 +118533,7 @@ func (ec *executionContext) _OrganizationType_contained(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Active, nil }) if err != nil { ec.Error(ctx, err) @@ -118807,26 +118542,26 @@ func (ec *executionContext) _OrganizationType_contained(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationType_meta(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_meta(ctx, field) +func (ec *executionContext) _OrganizationType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -118839,7 +118574,7 @@ func (ec *executionContext) _OrganizationType_meta(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -118848,12 +118583,12 @@ func (ec *executionContext) _OrganizationType_meta(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationType", Field: field, @@ -118861,74 +118596,129 @@ func (ec *executionContext) fieldContext_OrganizationType_meta(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) - case "id": - return ec.fieldContext_Meta_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationType_id(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationType_qualification(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_qualification(ctx, field) +func (ec *executionContext) _OrganizationType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_partOf(ctx, field) if err != nil { return graphql.Null } @@ -118941,21 +118731,24 @@ func (ec *executionContext) _OrganizationType_qualification(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Qualification, nil + return obj.PartOf, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.OrganizationQualification) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOOrganizationQualification2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_qualification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationType", Field: field, @@ -118963,31 +118756,62 @@ func (ec *executionContext) fieldContext_OrganizationType_qualification(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_OrganizationQualification_extension(ctx, field) - case "id": - return ec.fieldContext_OrganizationQualification_id(ctx, field) case "identifier": - return ec.fieldContext_OrganizationQualification_identifier(ctx, field) - case "issuer": - return ec.fieldContext_OrganizationQualification_issuer(ctx, field) + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) case "modifierExtension": - return ec.fieldContext_OrganizationQualification_modifierExtension(ctx, field) - case "period": - return ec.fieldContext_OrganizationQualification_period(ctx, field) + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) case "resourceType": - return ec.fieldContext_OrganizationQualification_resourceType(ctx, field) - case "code": - return ec.fieldContext_OrganizationQualification_code(ctx, field) + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationQualification", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_OrganizationType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _OrganizationType_description(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_description(ctx, field) +func (ec *executionContext) _OrganizationType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -119000,7 +118824,7 @@ func (ec *executionContext) _OrganizationType_description(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -119014,7 +118838,7 @@ func (ec *executionContext) _OrganizationType_description(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationType", Field: field, @@ -119027,8 +118851,8 @@ func (ec *executionContext) fieldContext_OrganizationType_description(_ context. return fc, nil } -func (ec *executionContext) _OrganizationType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_modifierExtension(ctx, field) +func (ec *executionContext) _OrganizationType_extension(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_extension(ctx, field) if err != nil { return graphql.Null } @@ -119041,7 +118865,7 @@ func (ec *executionContext) _OrganizationType_modifierExtension(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -119055,7 +118879,7 @@ func (ec *executionContext) _OrganizationType_modifierExtension(ctx context.Cont return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationType", Field: field, @@ -119063,120 +118887,120 @@ func (ec *executionContext) fieldContext_OrganizationType_modifierExtension(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -119184,8 +119008,8 @@ func (ec *executionContext) fieldContext_OrganizationType_modifierExtension(_ co return fc, nil } -func (ec *executionContext) _OrganizationType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_identifier(ctx, field) +func (ec *executionContext) _OrganizationType_description(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_description(ctx, field) if err != nil { return graphql.Null } @@ -119198,7 +119022,7 @@ func (ec *executionContext) _OrganizationType_identifier(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -119207,46 +119031,26 @@ func (ec *executionContext) _OrganizationType_identifier(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationType_active(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationType_active(ctx, field) +func (ec *executionContext) _OrganizationType_meta(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_meta(ctx, field) if err != nil { return graphql.Null } @@ -119259,7 +119063,7 @@ func (ec *executionContext) _OrganizationType_active(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Active, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -119268,26 +119072,46 @@ func (ec *executionContext) _OrganizationType_active(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _ParameterDefinition_profile(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_profile(ctx, field) +func (ec *executionContext) _OrganizationType_name(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_name(ctx, field) if err != nil { return graphql.Null } @@ -119300,7 +119124,7 @@ func (ec *executionContext) _ParameterDefinition_profile(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Profile, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -119314,9 +119138,9 @@ func (ec *executionContext) _ParameterDefinition_profile(ctx context.Context, fi return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ParameterDefinition", + Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, @@ -119327,8 +119151,8 @@ func (ec *executionContext) fieldContext_ParameterDefinition_profile(_ context.C return fc, nil } -func (ec *executionContext) _ParameterDefinition_min(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_min(ctx, field) +func (ec *executionContext) _OrganizationType_type(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_type(ctx, field) if err != nil { return graphql.Null } @@ -119341,7 +119165,7 @@ func (ec *executionContext) _ParameterDefinition_min(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Min, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -119350,26 +119174,38 @@ func (ec *executionContext) _ParameterDefinition_min(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_min(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ParameterDefinition", + Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ParameterDefinition_name(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_name(ctx, field) +func (ec *executionContext) _OrganizationType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -119382,7 +119218,7 @@ func (ec *executionContext) _ParameterDefinition_name(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -119396,9 +119232,9 @@ func (ec *executionContext) _ParameterDefinition_name(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ParameterDefinition", + Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, @@ -119409,8 +119245,8 @@ func (ec *executionContext) fieldContext_ParameterDefinition_name(_ context.Cont return fc, nil } -func (ec *executionContext) _ParameterDefinition_type(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_type(ctx, field) +func (ec *executionContext) _OrganizationType_id(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_id(ctx, field) if err != nil { return graphql.Null } @@ -119423,7 +119259,7 @@ func (ec *executionContext) _ParameterDefinition_type(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -119437,9 +119273,9 @@ func (ec *executionContext) _ParameterDefinition_type(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ParameterDefinition", + Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, @@ -119450,8 +119286,8 @@ func (ec *executionContext) fieldContext_ParameterDefinition_type(_ context.Cont return fc, nil } -func (ec *executionContext) _ParameterDefinition_documentation(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_documentation(ctx, field) +func (ec *executionContext) _OrganizationType_qualification(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_qualification(ctx, field) if err != nil { return graphql.Null } @@ -119464,7 +119300,7 @@ func (ec *executionContext) _ParameterDefinition_documentation(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Documentation, nil + return obj.Qualification, nil }) if err != nil { ec.Error(ctx, err) @@ -119473,26 +119309,44 @@ func (ec *executionContext) _ParameterDefinition_documentation(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.OrganizationQualification) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOOrganizationQualification2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_documentation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_qualification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ParameterDefinition", + Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_OrganizationQualification_extension(ctx, field) + case "id": + return ec.fieldContext_OrganizationQualification_id(ctx, field) + case "identifier": + return ec.fieldContext_OrganizationQualification_identifier(ctx, field) + case "issuer": + return ec.fieldContext_OrganizationQualification_issuer(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationQualification_modifierExtension(ctx, field) + case "period": + return ec.fieldContext_OrganizationQualification_period(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationQualification_resourceType(ctx, field) + case "code": + return ec.fieldContext_OrganizationQualification_code(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationQualification", field.Name) }, } return fc, nil } -func (ec *executionContext) _ParameterDefinition_extension(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_extension(ctx, field) +func (ec *executionContext) _OrganizationType_alias(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_alias(ctx, field) if err != nil { return graphql.Null } @@ -119505,7 +119359,7 @@ func (ec *executionContext) _ParameterDefinition_extension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Alias, nil }) if err != nil { ec.Error(ctx, err) @@ -119514,142 +119368,26 @@ func (ec *executionContext) _ParameterDefinition_extension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_alias(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ParameterDefinition", + Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ParameterDefinition_id(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_id(ctx, field) +func (ec *executionContext) _OrganizationType_contact(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_contact(ctx, field) if err != nil { return graphql.Null } @@ -119662,7 +119400,7 @@ func (ec *executionContext) _ParameterDefinition_id(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Contact, nil }) if err != nil { ec.Error(ctx, err) @@ -119671,26 +119409,46 @@ func (ec *executionContext) _ParameterDefinition_id(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.ExtendedContactDetail) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ParameterDefinition", + Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "period": + return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + case "telecom": + return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) + case "address": + return ec.fieldContext_ExtendedContactDetail_address(ctx, field) + case "organization": + return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) + case "purpose": + return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) + case "resourceType": + return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) + case "name": + return ec.fieldContext_ExtendedContactDetail_name(ctx, field) + case "extension": + return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) + case "id": + return ec.fieldContext_ExtendedContactDetail_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) }, } return fc, nil } -func (ec *executionContext) _ParameterDefinition_max(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_max(ctx, field) +func (ec *executionContext) _OrganizationType_text(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_text(ctx, field) if err != nil { return graphql.Null } @@ -119703,7 +119461,7 @@ func (ec *executionContext) _ParameterDefinition_max(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Max, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -119712,26 +119470,38 @@ func (ec *executionContext) _ParameterDefinition_max(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_max(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ParameterDefinition", + Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _ParameterDefinition_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_resourceType(ctx, field) +func (ec *executionContext) _OrganizationType_language(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationType_language(ctx, field) if err != nil { return graphql.Null } @@ -119744,7 +119514,7 @@ func (ec *executionContext) _ParameterDefinition_resourceType(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -119758,9 +119528,9 @@ func (ec *executionContext) _ParameterDefinition_resourceType(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ParameterDefinition", + Object: "OrganizationType", Field: field, IsMethod: false, IsResolver: false, @@ -119771,8 +119541,8 @@ func (ec *executionContext) fieldContext_ParameterDefinition_resourceType(_ cont return fc, nil } -func (ec *executionContext) _ParameterDefinition_use(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ParameterDefinition_use(ctx, field) +func (ec *executionContext) _ParameterDefinition_max(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_max(ctx, field) if err != nil { return graphql.Null } @@ -119785,7 +119555,7 @@ func (ec *executionContext) _ParameterDefinition_use(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Use, nil + return obj.Max, nil }) if err != nil { ec.Error(ctx, err) @@ -119799,7 +119569,7 @@ func (ec *executionContext) _ParameterDefinition_use(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ParameterDefinition_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_max(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ParameterDefinition", Field: field, @@ -119812,8 +119582,8 @@ func (ec *executionContext) fieldContext_ParameterDefinition_use(_ context.Conte return fc, nil } -func (ec *executionContext) _PatientCommunication_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientCommunication_resourceType(ctx, field) +func (ec *executionContext) _ParameterDefinition_name(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_name(ctx, field) if err != nil { return graphql.Null } @@ -119826,7 +119596,7 @@ func (ec *executionContext) _PatientCommunication_resourceType(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -119840,9 +119610,9 @@ func (ec *executionContext) _PatientCommunication_resourceType(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientCommunication_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientCommunication", + Object: "ParameterDefinition", Field: field, IsMethod: false, IsResolver: false, @@ -119853,8 +119623,8 @@ func (ec *executionContext) fieldContext_PatientCommunication_resourceType(_ con return fc, nil } -func (ec *executionContext) _PatientCommunication_extension(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientCommunication_extension(ctx, field) +func (ec *executionContext) _ParameterDefinition_documentation(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_documentation(ctx, field) if err != nil { return graphql.Null } @@ -119867,7 +119637,7 @@ func (ec *executionContext) _PatientCommunication_extension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Documentation, nil }) if err != nil { ec.Error(ctx, err) @@ -119876,142 +119646,26 @@ func (ec *executionContext) _PatientCommunication_extension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientCommunication_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_documentation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientCommunication", + Object: "ParameterDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientCommunication_id(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientCommunication_id(ctx, field) +func (ec *executionContext) _ParameterDefinition_id(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_id(ctx, field) if err != nil { return graphql.Null } @@ -120038,9 +119692,9 @@ func (ec *executionContext) _PatientCommunication_id(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientCommunication_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientCommunication", + Object: "ParameterDefinition", Field: field, IsMethod: false, IsResolver: false, @@ -120051,8 +119705,8 @@ func (ec *executionContext) fieldContext_PatientCommunication_id(_ context.Conte return fc, nil } -func (ec *executionContext) _PatientCommunication_language(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientCommunication_language(ctx, field) +func (ec *executionContext) _ParameterDefinition_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -120065,7 +119719,7 @@ func (ec *executionContext) _PatientCommunication_language(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -120074,38 +119728,26 @@ func (ec *executionContext) _PatientCommunication_language(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientCommunication_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientCommunication", + Object: "ParameterDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientCommunication_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientCommunication_modifierExtension(ctx, field) +func (ec *executionContext) _ParameterDefinition_extension(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_extension(ctx, field) if err != nil { return graphql.Null } @@ -120118,7 +119760,7 @@ func (ec *executionContext) _PatientCommunication_modifierExtension(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -120132,128 +119774,128 @@ func (ec *executionContext) _PatientCommunication_modifierExtension(ctx context. return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientCommunication_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientCommunication", + Object: "ParameterDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) case "valueId": return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) case "valueAvailability": return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -120261,8 +119903,8 @@ func (ec *executionContext) fieldContext_PatientCommunication_modifierExtension( return fc, nil } -func (ec *executionContext) _PatientCommunication_preferred(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientCommunication_preferred(ctx, field) +func (ec *executionContext) _ParameterDefinition_profile(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_profile(ctx, field) if err != nil { return graphql.Null } @@ -120275,7 +119917,7 @@ func (ec *executionContext) _PatientCommunication_preferred(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Preferred, nil + return obj.Profile, nil }) if err != nil { ec.Error(ctx, err) @@ -120289,9 +119931,9 @@ func (ec *executionContext) _PatientCommunication_preferred(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientCommunication_preferred(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientCommunication", + Object: "ParameterDefinition", Field: field, IsMethod: false, IsResolver: false, @@ -120302,8 +119944,8 @@ func (ec *executionContext) fieldContext_PatientCommunication_preferred(_ contex return fc, nil } -func (ec *executionContext) _PatientContact_relationship(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_relationship(ctx, field) +func (ec *executionContext) _ParameterDefinition_use(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_use(ctx, field) if err != nil { return graphql.Null } @@ -120316,7 +119958,7 @@ func (ec *executionContext) _PatientContact_relationship(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Relationship, nil + return obj.Use, nil }) if err != nil { ec.Error(ctx, err) @@ -120325,38 +119967,26 @@ func (ec *executionContext) _PatientContact_relationship(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_relationship(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientContact", + Object: "ParameterDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientContact_telecom(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_telecom(ctx, field) +func (ec *executionContext) _ParameterDefinition_min(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_min(ctx, field) if err != nil { return graphql.Null } @@ -120369,7 +119999,7 @@ func (ec *executionContext) _PatientContact_telecom(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Telecom, nil + return obj.Min, nil }) if err != nil { ec.Error(ctx, err) @@ -120378,44 +120008,26 @@ func (ec *executionContext) _PatientContact_telecom(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ContactPoint) + res := resTmp.(*string) fc.Result = res - return ec.marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_telecom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_min(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientContact", + Object: "ParameterDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_ContactPoint_extension(ctx, field) - case "id": - return ec.fieldContext_ContactPoint_id(ctx, field) - case "period": - return ec.fieldContext_ContactPoint_period(ctx, field) - case "rank": - return ec.fieldContext_ContactPoint_rank(ctx, field) - case "resourceType": - return ec.fieldContext_ContactPoint_resourceType(ctx, field) - case "system": - return ec.fieldContext_ContactPoint_system(ctx, field) - case "use": - return ec.fieldContext_ContactPoint_use(ctx, field) - case "value": - return ec.fieldContext_ContactPoint_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientContact_extension(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_extension(ctx, field) +func (ec *executionContext) _ParameterDefinition_type(ctx context.Context, field graphql.CollectedField, obj *model.ParameterDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ParameterDefinition_type(ctx, field) if err != nil { return graphql.Null } @@ -120428,7 +120040,7 @@ func (ec *executionContext) _PatientContact_extension(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -120437,142 +120049,26 @@ func (ec *executionContext) _PatientContact_extension(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ParameterDefinition_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientContact", + Object: "ParameterDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientContact_name(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_name(ctx, field) +func (ec *executionContext) _PatientCommunication_preferred(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientCommunication_preferred(ctx, field) if err != nil { return graphql.Null } @@ -120585,7 +120081,7 @@ func (ec *executionContext) _PatientContact_name(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Preferred, nil }) if err != nil { ec.Error(ctx, err) @@ -120594,48 +120090,26 @@ func (ec *executionContext) _PatientContact_name(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.HumanName) + res := resTmp.(*string) fc.Result = res - return ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientCommunication_preferred(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientContact", + Object: "PatientCommunication", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "suffix": - return ec.fieldContext_HumanName_suffix(ctx, field) - case "use": - return ec.fieldContext_HumanName_use(ctx, field) - case "family": - return ec.fieldContext_HumanName_family(ctx, field) - case "given": - return ec.fieldContext_HumanName_given(ctx, field) - case "id": - return ec.fieldContext_HumanName_id(ctx, field) - case "prefix": - return ec.fieldContext_HumanName_prefix(ctx, field) - case "extension": - return ec.fieldContext_HumanName_extension(ctx, field) - case "resourceType": - return ec.fieldContext_HumanName_resourceType(ctx, field) - case "period": - return ec.fieldContext_HumanName_period(ctx, field) - case "text": - return ec.fieldContext_HumanName_text(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientContact_address(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_address(ctx, field) +func (ec *executionContext) _PatientCommunication_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientCommunication_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -120648,7 +120122,7 @@ func (ec *executionContext) _PatientContact_address(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Address, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -120657,54 +120131,183 @@ func (ec *executionContext) _PatientContact_address(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Address) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientCommunication_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientContact", + Object: "PatientCommunication", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PatientCommunication_extension(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientCommunication_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PatientCommunication_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PatientCommunication", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_Address_text(ctx, field) - case "use": - return ec.fieldContext_Address_use(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Address_id(ctx, field) - case "line": - return ec.fieldContext_Address_line(ctx, field) - case "country": - return ec.fieldContext_Address_country(ctx, field) - case "postalCode": - return ec.fieldContext_Address_postalCode(ctx, field) - case "state": - return ec.fieldContext_Address_state(ctx, field) - case "city": - return ec.fieldContext_Address_city(ctx, field) - case "district": - return ec.fieldContext_Address_district(ctx, field) - case "period": - return ec.fieldContext_Address_period(ctx, field) - case "resourceType": - return ec.fieldContext_Address_resourceType(ctx, field) - case "type": - return ec.fieldContext_Address_type(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_Address_extension(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientContact_gender(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_gender(ctx, field) +func (ec *executionContext) _PatientCommunication_id(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientCommunication_id(ctx, field) if err != nil { return graphql.Null } @@ -120717,7 +120320,7 @@ func (ec *executionContext) _PatientContact_gender(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Gender, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -120731,9 +120334,9 @@ func (ec *executionContext) _PatientContact_gender(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_gender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientCommunication_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientContact", + Object: "PatientCommunication", Field: field, IsMethod: false, IsResolver: false, @@ -120744,8 +120347,8 @@ func (ec *executionContext) fieldContext_PatientContact_gender(_ context.Context return fc, nil } -func (ec *executionContext) _PatientContact_id(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_id(ctx, field) +func (ec *executionContext) _PatientCommunication_language(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientCommunication_language(ctx, field) if err != nil { return graphql.Null } @@ -120758,7 +120361,7 @@ func (ec *executionContext) _PatientContact_id(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -120767,26 +120370,38 @@ func (ec *executionContext) _PatientContact_id(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientCommunication_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientContact", + Object: "PatientCommunication", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientContact_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_modifierExtension(ctx, field) +func (ec *executionContext) _PatientCommunication_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PatientCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientCommunication_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -120813,128 +120428,128 @@ func (ec *executionContext) _PatientContact_modifierExtension(ctx context.Contex return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientCommunication_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientContact", + Object: "PatientCommunication", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -120942,8 +120557,8 @@ func (ec *executionContext) fieldContext_PatientContact_modifierExtension(_ cont return fc, nil } -func (ec *executionContext) _PatientContact_organization(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_organization(ctx, field) +func (ec *executionContext) _PatientContact_extension(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_extension(ctx, field) if err != nil { return graphql.Null } @@ -120956,7 +120571,7 @@ func (ec *executionContext) _PatientContact_organization(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -120965,12 +120580,12 @@ func (ec *executionContext) _PatientContact_organization(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientContact", Field: field, @@ -120978,62 +120593,129 @@ func (ec *executionContext) fieldContext_PatientContact_organization(ctx context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) - case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PatientContact_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _PatientContact_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_resourceType(ctx, field) +func (ec *executionContext) _PatientContact_period(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_period(ctx, field) if err != nil { return graphql.Null } @@ -121046,7 +120728,7 @@ func (ec *executionContext) _PatientContact_resourceType(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -121055,26 +120737,38 @@ func (ec *executionContext) _PatientContact_resourceType(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientContact_period(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientContact_period(ctx, field) +func (ec *executionContext) _PatientContact_gender(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_gender(ctx, field) if err != nil { return graphql.Null } @@ -121087,7 +120781,7 @@ func (ec *executionContext) _PatientContact_period(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.Gender, nil }) if err != nil { ec.Error(ctx, err) @@ -121096,38 +120790,26 @@ func (ec *executionContext) _PatientContact_period(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientContact_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_gender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientLink_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientLink_modifierExtension(ctx, field) +func (ec *executionContext) _PatientContact_id(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_id(ctx, field) if err != nil { return graphql.Null } @@ -121140,7 +120822,7 @@ func (ec *executionContext) _PatientLink_modifierExtension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -121149,142 +120831,26 @@ func (ec *executionContext) _PatientLink_modifierExtension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientLink_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientLink", + Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientLink_other(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientLink_other(ctx, field) +func (ec *executionContext) _PatientContact_telecom(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_telecom(ctx, field) if err != nil { return graphql.Null } @@ -121297,7 +120863,7 @@ func (ec *executionContext) _PatientLink_other(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Other, nil + return obj.Telecom, nil }) if err != nil { ec.Error(ctx, err) @@ -121306,37 +120872,44 @@ func (ec *executionContext) _PatientLink_other(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]model.PatientLinkOtherUnion) + res := resTmp.([]*model.ContactPoint) fc.Result = res - return ec.marshalOPatientLinkOtherUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkOtherUnion(ctx, field.Selections, res) + return ec.marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientLink_other(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_telecom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientLink", + Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type PatientLinkOtherUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_ContactPoint_resourceType(ctx, field) + case "system": + return ec.fieldContext_ContactPoint_system(ctx, field) + case "use": + return ec.fieldContext_ContactPoint_use(ctx, field) + case "value": + return ec.fieldContext_ContactPoint_value(ctx, field) + case "extension": + return ec.fieldContext_ContactPoint_extension(ctx, field) + case "id": + return ec.fieldContext_ContactPoint_id(ctx, field) + case "period": + return ec.fieldContext_ContactPoint_period(ctx, field) + case "rank": + return ec.fieldContext_ContactPoint_rank(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PatientLink_other_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _PatientLink_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientLink_resourceType(ctx, field) +func (ec *executionContext) _PatientContact_name(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_name(ctx, field) if err != nil { return graphql.Null } @@ -121349,7 +120922,7 @@ func (ec *executionContext) _PatientLink_resourceType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -121358,26 +120931,48 @@ func (ec *executionContext) _PatientLink_resourceType(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.HumanName) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientLink_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientLink", + Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "given": + return ec.fieldContext_HumanName_given(ctx, field) + case "resourceType": + return ec.fieldContext_HumanName_resourceType(ctx, field) + case "use": + return ec.fieldContext_HumanName_use(ctx, field) + case "family": + return ec.fieldContext_HumanName_family(ctx, field) + case "suffix": + return ec.fieldContext_HumanName_suffix(ctx, field) + case "id": + return ec.fieldContext_HumanName_id(ctx, field) + case "period": + return ec.fieldContext_HumanName_period(ctx, field) + case "prefix": + return ec.fieldContext_HumanName_prefix(ctx, field) + case "extension": + return ec.fieldContext_HumanName_extension(ctx, field) + case "text": + return ec.fieldContext_HumanName_text(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientLink_type(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientLink_type(ctx, field) +func (ec *executionContext) _PatientContact_organization(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_organization(ctx, field) if err != nil { return graphql.Null } @@ -121390,35 +120985,87 @@ func (ec *executionContext) _PatientLink_type(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Organization, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientLink_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientLink", + Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_PatientContact_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PatientLink_extension(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientLink_extension(ctx, field) +func (ec *executionContext) _PatientContact_relationship(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_relationship(ctx, field) if err != nil { return graphql.Null } @@ -121431,7 +121078,7 @@ func (ec *executionContext) _PatientLink_extension(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Relationship, nil }) if err != nil { ec.Error(ctx, err) @@ -121440,142 +121087,38 @@ func (ec *executionContext) _PatientLink_extension(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientLink_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_relationship(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientLink", + Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientLink_id(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientLink_id(ctx, field) +func (ec *executionContext) _PatientContact_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -121588,7 +121131,7 @@ func (ec *executionContext) _PatientLink_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -121602,9 +121145,9 @@ func (ec *executionContext) _PatientLink_id(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientLink_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientLink", + Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, @@ -121615,8 +121158,8 @@ func (ec *executionContext) fieldContext_PatientLink_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _PatientType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_modifierExtension(ctx, field) +func (ec *executionContext) _PatientContact_address(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_address(ctx, field) if err != nil { return graphql.Null } @@ -121629,7 +121172,7 @@ func (ec *executionContext) _PatientType_modifierExtension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Address, nil }) if err != nil { ec.Error(ctx, err) @@ -121638,142 +121181,54 @@ func (ec *executionContext) _PatientType_modifierExtension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Address) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientType", + Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "country": + return ec.fieldContext_Address_country(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Address_extension(ctx, field) + case "use": + return ec.fieldContext_Address_use(ctx, field) + case "district": + return ec.fieldContext_Address_district(ctx, field) + case "period": + return ec.fieldContext_Address_period(ctx, field) + case "resourceType": + return ec.fieldContext_Address_resourceType(ctx, field) + case "text": + return ec.fieldContext_Address_text(ctx, field) + case "city": + return ec.fieldContext_Address_city(ctx, field) + case "postalCode": + return ec.fieldContext_Address_postalCode(ctx, field) + case "line": + return ec.fieldContext_Address_line(ctx, field) + case "state": + return ec.fieldContext_Address_state(ctx, field) + case "type": + return ec.fieldContext_Address_type(ctx, field) + case "id": + return ec.fieldContext_Address_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientType_gender(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_gender(ctx, field) +func (ec *executionContext) _PatientContact_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PatientContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientContact_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -121786,7 +121241,7 @@ func (ec *executionContext) _PatientType_gender(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Gender, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -121795,26 +121250,142 @@ func (ec *executionContext) _PatientType_gender(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_gender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientContact_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientType", + Object: "PatientContact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientType_extension(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_extension(ctx, field) +func (ec *executionContext) _PatientLink_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientLink_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -121827,7 +121398,7 @@ func (ec *executionContext) _PatientType_extension(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -121836,142 +121407,26 @@ func (ec *executionContext) _PatientType_extension(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientLink_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientType", + Object: "PatientLink", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientType_deceasedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_deceasedBoolean(ctx, field) +func (ec *executionContext) _PatientLink_type(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientLink_type(ctx, field) if err != nil { return graphql.Null } @@ -121984,7 +121439,7 @@ func (ec *executionContext) _PatientType_deceasedBoolean(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeceasedBoolean, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -121998,9 +121453,9 @@ func (ec *executionContext) _PatientType_deceasedBoolean(ctx context.Context, fi return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_deceasedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientLink_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientType", + Object: "PatientLink", Field: field, IsMethod: false, IsResolver: false, @@ -122011,8 +121466,8 @@ func (ec *executionContext) fieldContext_PatientType_deceasedBoolean(_ context.C return fc, nil } -func (ec *executionContext) _PatientType_address(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_address(ctx, field) +func (ec *executionContext) _PatientLink_extension(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientLink_extension(ctx, field) if err != nil { return graphql.Null } @@ -122025,7 +121480,7 @@ func (ec *executionContext) _PatientType_address(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Address, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -122034,54 +121489,142 @@ func (ec *executionContext) _PatientType_address(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Address) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOAddress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientLink_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientType", + Object: "PatientLink", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_Address_text(ctx, field) - case "use": - return ec.fieldContext_Address_use(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Address_id(ctx, field) - case "line": - return ec.fieldContext_Address_line(ctx, field) - case "country": - return ec.fieldContext_Address_country(ctx, field) - case "postalCode": - return ec.fieldContext_Address_postalCode(ctx, field) - case "state": - return ec.fieldContext_Address_state(ctx, field) - case "city": - return ec.fieldContext_Address_city(ctx, field) - case "district": - return ec.fieldContext_Address_district(ctx, field) - case "period": - return ec.fieldContext_Address_period(ctx, field) - case "resourceType": - return ec.fieldContext_Address_resourceType(ctx, field) - case "type": - return ec.fieldContext_Address_type(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_Address_extension(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientType_link(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_link(ctx, field) +func (ec *executionContext) _PatientLink_id(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientLink_id(ctx, field) if err != nil { return graphql.Null } @@ -122094,7 +121637,7 @@ func (ec *executionContext) _PatientType_link(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Link, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -122103,37 +121646,26 @@ func (ec *executionContext) _PatientType_link(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]model.PatientLinkUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPatientLinkUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_link(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientLink_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientType", + Object: "PatientLink", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type PatientLinkUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PatientType_link_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _PatientType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_identifier(ctx, field) +func (ec *executionContext) _PatientLink_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientLink_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -122146,7 +121678,7 @@ func (ec *executionContext) _PatientType_identifier(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -122155,46 +121687,142 @@ func (ec *executionContext) _PatientType_identifier(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientLink_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientType", + Object: "PatientLink", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientType_generalPractitioner(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_generalPractitioner(ctx, field) +func (ec *executionContext) _PatientLink_other(ctx context.Context, field graphql.CollectedField, obj *model.PatientLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientLink_other(ctx, field) if err != nil { return graphql.Null } @@ -122207,28 +121835,31 @@ func (ec *executionContext) _PatientType_generalPractitioner(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GeneralPractitioner, nil + return obj.Other, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.PatientGeneralPractitionerUnion) + res := resTmp.(model.PatientLinkOtherUnion) fc.Result = res - return ec.marshalOPatientGeneralPractitionerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientGeneralPractitionerUnion(ctx, field.Selections, res) + return ec.marshalNPatientLinkOtherUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkOtherUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_generalPractitioner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientLink_other(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PatientType", + Object: "PatientLink", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type PatientGeneralPractitionerUnion does not have child fields") + return nil, errors.New("field of type PatientLinkOtherUnion does not have child fields") }, } defer func() { @@ -122238,15 +121869,15 @@ func (ec *executionContext) fieldContext_PatientType_generalPractitioner(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PatientType_generalPractitioner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_PatientLink_other_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _PatientType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_implicitRules(ctx, field) +func (ec *executionContext) _PatientType_managingOrganization(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_managingOrganization(ctx, field) if err != nil { return graphql.Null } @@ -122259,35 +121890,87 @@ func (ec *executionContext) _PatientType_implicitRules(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.ManagingOrganization, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_managingOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_PatientType_managingOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PatientType_meta(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_meta(ctx, field) +func (ec *executionContext) _PatientType_contact(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_contact(ctx, field) if err != nil { return graphql.Null } @@ -122300,7 +121983,7 @@ func (ec *executionContext) _PatientType_meta(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Contact, nil }) if err != nil { ec.Error(ctx, err) @@ -122309,12 +121992,12 @@ func (ec *executionContext) _PatientType_meta(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.PatientContact) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOPatientContact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, @@ -122322,33 +122005,37 @@ func (ec *executionContext) fieldContext_PatientType_meta(_ context.Context, fie IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_PatientContact_extension(ctx, field) + case "period": + return ec.fieldContext_PatientContact_period(ctx, field) + case "gender": + return ec.fieldContext_PatientContact_gender(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_PatientContact_id(ctx, field) + case "telecom": + return ec.fieldContext_PatientContact_telecom(ctx, field) + case "name": + return ec.fieldContext_PatientContact_name(ctx, field) + case "organization": + return ec.fieldContext_PatientContact_organization(ctx, field) + case "relationship": + return ec.fieldContext_PatientContact_relationship(ctx, field) + case "resourceType": + return ec.fieldContext_PatientContact_resourceType(ctx, field) + case "address": + return ec.fieldContext_PatientContact_address(ctx, field) + case "modifierExtension": + return ec.fieldContext_PatientContact_modifierExtension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PatientContact", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientType_multipleBirthInteger(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_multipleBirthInteger(ctx, field) +func (ec *executionContext) _PatientType_gender(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_gender(ctx, field) if err != nil { return graphql.Null } @@ -122361,7 +122048,7 @@ func (ec *executionContext) _PatientType_multipleBirthInteger(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MultipleBirthInteger, nil + return obj.Gender, nil }) if err != nil { ec.Error(ctx, err) @@ -122375,7 +122062,7 @@ func (ec *executionContext) _PatientType_multipleBirthInteger(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_multipleBirthInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_gender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, @@ -122388,8 +122075,8 @@ func (ec *executionContext) fieldContext_PatientType_multipleBirthInteger(_ cont return fc, nil } -func (ec *executionContext) _PatientType_multipleBirthBoolean(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_multipleBirthBoolean(ctx, field) +func (ec *executionContext) _PatientType_link(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_link(ctx, field) if err != nil { return graphql.Null } @@ -122402,35 +122089,49 @@ func (ec *executionContext) _PatientType_multipleBirthBoolean(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MultipleBirthBoolean, nil + return obj.Link, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.PatientLinkUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNPatientLinkUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_multipleBirthBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_link(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type PatientLinkUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_PatientType_link_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PatientType_text(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_text(ctx, field) +func (ec *executionContext) _PatientType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -122443,7 +122144,7 @@ func (ec *executionContext) _PatientType_text(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -122452,38 +122153,26 @@ func (ec *executionContext) _PatientType_text(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientType_managingOrganization(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_managingOrganization(ctx, field) +func (ec *executionContext) _PatientType_multipleBirthInteger(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_multipleBirthInteger(ctx, field) if err != nil { return graphql.Null } @@ -122496,7 +122185,7 @@ func (ec *executionContext) _PatientType_managingOrganization(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ManagingOrganization, nil + return obj.MultipleBirthInteger, nil }) if err != nil { ec.Error(ctx, err) @@ -122505,75 +122194,26 @@ func (ec *executionContext) _PatientType_managingOrganization(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_managingOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_multipleBirthInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) - case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PatientType_managingOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _PatientType_active(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_active(ctx, field) +func (ec *executionContext) _PatientType_id(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_id(ctx, field) if err != nil { return graphql.Null } @@ -122586,7 +122226,7 @@ func (ec *executionContext) _PatientType_active(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Active, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -122600,7 +122240,7 @@ func (ec *executionContext) _PatientType_active(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, @@ -122613,8 +122253,8 @@ func (ec *executionContext) fieldContext_PatientType_active(_ context.Context, f return fc, nil } -func (ec *executionContext) _PatientType_birthDate(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_birthDate(ctx, field) +func (ec *executionContext) _PatientType_meta(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_meta(ctx, field) if err != nil { return graphql.Null } @@ -122627,7 +122267,7 @@ func (ec *executionContext) _PatientType_birthDate(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BirthDate, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -122636,26 +122276,46 @@ func (ec *executionContext) _PatientType_birthDate(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_birthDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientType_deceasedDateTime(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_deceasedDateTime(ctx, field) +func (ec *executionContext) _PatientType_contained(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_contained(ctx, field) if err != nil { return graphql.Null } @@ -122668,7 +122328,7 @@ func (ec *executionContext) _PatientType_deceasedDateTime(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeceasedDateTime, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -122677,26 +122337,26 @@ func (ec *executionContext) _PatientType_deceasedDateTime(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_deceasedDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientType_id(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_id(ctx, field) +func (ec *executionContext) _PatientType_communication(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_communication(ctx, field) if err != nil { return graphql.Null } @@ -122709,7 +122369,7 @@ func (ec *executionContext) _PatientType_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Communication, nil }) if err != nil { ec.Error(ctx, err) @@ -122718,26 +122378,40 @@ func (ec *executionContext) _PatientType_id(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.PatientCommunication) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPatientCommunication2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_communication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "preferred": + return ec.fieldContext_PatientCommunication_preferred(ctx, field) + case "resourceType": + return ec.fieldContext_PatientCommunication_resourceType(ctx, field) + case "extension": + return ec.fieldContext_PatientCommunication_extension(ctx, field) + case "id": + return ec.fieldContext_PatientCommunication_id(ctx, field) + case "language": + return ec.fieldContext_PatientCommunication_language(ctx, field) + case "modifierExtension": + return ec.fieldContext_PatientCommunication_modifierExtension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PatientCommunication", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientType_name(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_name(ctx, field) +func (ec *executionContext) _PatientType_birthDate(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_birthDate(ctx, field) if err != nil { return graphql.Null } @@ -122750,7 +122424,7 @@ func (ec *executionContext) _PatientType_name(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.BirthDate, nil }) if err != nil { ec.Error(ctx, err) @@ -122759,48 +122433,26 @@ func (ec *executionContext) _PatientType_name(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.HumanName) + res := resTmp.(*string) fc.Result = res - return ec.marshalOHumanName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_birthDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "suffix": - return ec.fieldContext_HumanName_suffix(ctx, field) - case "use": - return ec.fieldContext_HumanName_use(ctx, field) - case "family": - return ec.fieldContext_HumanName_family(ctx, field) - case "given": - return ec.fieldContext_HumanName_given(ctx, field) - case "id": - return ec.fieldContext_HumanName_id(ctx, field) - case "prefix": - return ec.fieldContext_HumanName_prefix(ctx, field) - case "extension": - return ec.fieldContext_HumanName_extension(ctx, field) - case "resourceType": - return ec.fieldContext_HumanName_resourceType(ctx, field) - case "period": - return ec.fieldContext_HumanName_period(ctx, field) - case "text": - return ec.fieldContext_HumanName_text(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientType_photo(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_photo(ctx, field) +func (ec *executionContext) _PatientType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -122813,7 +122465,7 @@ func (ec *executionContext) _PatientType_photo(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Photo, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -122822,12 +122474,12 @@ func (ec *executionContext) _PatientType_photo(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Attachment) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_photo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, @@ -122835,47 +122487,33 @@ func (ec *executionContext) fieldContext_PatientType_photo(_ context.Context, fi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientType_contained(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_contained(ctx, field) +func (ec *executionContext) _PatientType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -122888,7 +122526,7 @@ func (ec *executionContext) _PatientType_contained(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -122897,26 +122535,26 @@ func (ec *executionContext) _PatientType_contained(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientType_contact(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_contact(ctx, field) +func (ec *executionContext) _PatientType_generalPractitioner(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_generalPractitioner(ctx, field) if err != nil { return graphql.Null } @@ -122929,59 +122567,49 @@ func (ec *executionContext) _PatientType_contact(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contact, nil + return obj.GeneralPractitioner, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.PatientContact) + res := resTmp.(model.PatientGeneralPractitionerUnion) fc.Result = res - return ec.marshalOPatientContact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx, field.Selections, res) + return ec.marshalNPatientGeneralPractitionerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientGeneralPractitionerUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_generalPractitioner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "relationship": - return ec.fieldContext_PatientContact_relationship(ctx, field) - case "telecom": - return ec.fieldContext_PatientContact_telecom(ctx, field) - case "extension": - return ec.fieldContext_PatientContact_extension(ctx, field) - case "name": - return ec.fieldContext_PatientContact_name(ctx, field) - case "address": - return ec.fieldContext_PatientContact_address(ctx, field) - case "gender": - return ec.fieldContext_PatientContact_gender(ctx, field) - case "id": - return ec.fieldContext_PatientContact_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_PatientContact_modifierExtension(ctx, field) - case "organization": - return ec.fieldContext_PatientContact_organization(ctx, field) - case "resourceType": - return ec.fieldContext_PatientContact_resourceType(ctx, field) - case "period": - return ec.fieldContext_PatientContact_period(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PatientContact", field.Name) + return nil, errors.New("field of type PatientGeneralPractitionerUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_PatientType_generalPractitioner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PatientType_maritalStatus(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_maritalStatus(ctx, field) +func (ec *executionContext) _PatientType_language(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_language(ctx, field) if err != nil { return graphql.Null } @@ -122994,7 +122622,7 @@ func (ec *executionContext) _PatientType_maritalStatus(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaritalStatus, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -123003,38 +122631,26 @@ func (ec *executionContext) _PatientType_maritalStatus(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_maritalStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PatientType_communication(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_communication(ctx, field) +func (ec *executionContext) _PatientType_deceasedDateTime(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_deceasedDateTime(ctx, field) if err != nil { return graphql.Null } @@ -123047,7 +122663,7 @@ func (ec *executionContext) _PatientType_communication(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Communication, nil + return obj.DeceasedDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -123056,33 +122672,19 @@ func (ec *executionContext) _PatientType_communication(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.PatientCommunication) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPatientCommunication2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_communication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_deceasedDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_PatientCommunication_resourceType(ctx, field) - case "extension": - return ec.fieldContext_PatientCommunication_extension(ctx, field) - case "id": - return ec.fieldContext_PatientCommunication_id(ctx, field) - case "language": - return ec.fieldContext_PatientCommunication_language(ctx, field) - case "modifierExtension": - return ec.fieldContext_PatientCommunication_modifierExtension(ctx, field) - case "preferred": - return ec.fieldContext_PatientCommunication_preferred(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PatientCommunication", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -123124,14 +122726,6 @@ func (ec *executionContext) fieldContext_PatientType_telecom(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_ContactPoint_extension(ctx, field) - case "id": - return ec.fieldContext_ContactPoint_id(ctx, field) - case "period": - return ec.fieldContext_ContactPoint_period(ctx, field) - case "rank": - return ec.fieldContext_ContactPoint_rank(ctx, field) case "resourceType": return ec.fieldContext_ContactPoint_resourceType(ctx, field) case "system": @@ -123140,6 +122734,14 @@ func (ec *executionContext) fieldContext_PatientType_telecom(_ context.Context, return ec.fieldContext_ContactPoint_use(ctx, field) case "value": return ec.fieldContext_ContactPoint_value(ctx, field) + case "extension": + return ec.fieldContext_ContactPoint_extension(ctx, field) + case "id": + return ec.fieldContext_ContactPoint_id(ctx, field) + case "period": + return ec.fieldContext_ContactPoint_period(ctx, field) + case "rank": + return ec.fieldContext_ContactPoint_rank(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) }, @@ -123147,8 +122749,8 @@ func (ec *executionContext) fieldContext_PatientType_telecom(_ context.Context, return fc, nil } -func (ec *executionContext) _PatientType_language(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_language(ctx, field) +func (ec *executionContext) _PatientType_photo(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_photo(ctx, field) if err != nil { return graphql.Null } @@ -123161,7 +122763,7 @@ func (ec *executionContext) _PatientType_language(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Photo, nil }) if err != nil { ec.Error(ctx, err) @@ -123170,26 +122772,60 @@ func (ec *executionContext) _PatientType_language(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Attachment) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_photo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) + case "resourceType": + return ec.fieldContext_Attachment_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) + case "id": + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, } return fc, nil } -func (ec *executionContext) _PatientType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PatientType_resourceType(ctx, field) +func (ec *executionContext) _PatientType_text(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_text(ctx, field) if err != nil { return graphql.Null } @@ -123202,7 +122838,7 @@ func (ec *executionContext) _PatientType_resourceType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -123211,183 +122847,38 @@ func (ec *executionContext) _PatientType_resourceType(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PatientType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Period_extension(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Period_extension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Extension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Period_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Period", - Field: field, - IsMethod: false, - IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _Period_id(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Period_id(ctx, field) +func (ec *executionContext) _PatientType_multipleBirthBoolean(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_multipleBirthBoolean(ctx, field) if err != nil { return graphql.Null } @@ -123400,7 +122891,7 @@ func (ec *executionContext) _Period_id(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.MultipleBirthBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -123414,9 +122905,9 @@ func (ec *executionContext) _Period_id(ctx context.Context, field graphql.Collec return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Period_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_multipleBirthBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Period", + Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, @@ -123427,8 +122918,8 @@ func (ec *executionContext) fieldContext_Period_id(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _Period_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Period_resourceType(ctx, field) +func (ec *executionContext) _PatientType_address(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_address(ctx, field) if err != nil { return graphql.Null } @@ -123441,7 +122932,7 @@ func (ec *executionContext) _Period_resourceType(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Address, nil }) if err != nil { ec.Error(ctx, err) @@ -123450,26 +122941,54 @@ func (ec *executionContext) _Period_resourceType(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Address) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOAddress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Period_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Period", + Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "country": + return ec.fieldContext_Address_country(ctx, field) + case "extension": + return ec.fieldContext_Address_extension(ctx, field) + case "use": + return ec.fieldContext_Address_use(ctx, field) + case "district": + return ec.fieldContext_Address_district(ctx, field) + case "period": + return ec.fieldContext_Address_period(ctx, field) + case "resourceType": + return ec.fieldContext_Address_resourceType(ctx, field) + case "text": + return ec.fieldContext_Address_text(ctx, field) + case "city": + return ec.fieldContext_Address_city(ctx, field) + case "postalCode": + return ec.fieldContext_Address_postalCode(ctx, field) + case "line": + return ec.fieldContext_Address_line(ctx, field) + case "state": + return ec.fieldContext_Address_state(ctx, field) + case "type": + return ec.fieldContext_Address_type(ctx, field) + case "id": + return ec.fieldContext_Address_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) }, } return fc, nil } -func (ec *executionContext) _Period_start(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Period_start(ctx, field) +func (ec *executionContext) _PatientType_maritalStatus(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_maritalStatus(ctx, field) if err != nil { return graphql.Null } @@ -123482,7 +123001,7 @@ func (ec *executionContext) _Period_start(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Start, nil + return obj.MaritalStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -123491,26 +123010,38 @@ func (ec *executionContext) _Period_start(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Period_start(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_maritalStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Period", + Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _Period_end(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Period_end(ctx, field) +func (ec *executionContext) _PatientType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -123523,7 +123054,7 @@ func (ec *executionContext) _Period_end(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.End, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -123532,67 +123063,142 @@ func (ec *executionContext) _Period_end(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Period_end(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Period", + Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PractitionerCommunication_preferred(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerCommunication_preferred(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Preferred, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PractitionerCommunication_preferred(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PractitionerCommunication", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerCommunication_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerCommunication_resourceType(ctx, field) +func (ec *executionContext) _PatientType_extension(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_extension(ctx, field) if err != nil { return graphql.Null } @@ -123605,7 +123211,7 @@ func (ec *executionContext) _PractitionerCommunication_resourceType(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -123614,26 +123220,142 @@ func (ec *executionContext) _PractitionerCommunication_resourceType(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerCommunication_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerCommunication", + Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerCommunication_extension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerCommunication_extension(ctx, field) +func (ec *executionContext) _PatientType_name(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_name(ctx, field) if err != nil { return graphql.Null } @@ -123646,7 +123368,7 @@ func (ec *executionContext) _PractitionerCommunication_extension(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -123655,142 +123377,48 @@ func (ec *executionContext) _PractitionerCommunication_extension(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.HumanName) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOHumanName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerCommunication_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerCommunication", + Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + case "given": + return ec.fieldContext_HumanName_given(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_HumanName_resourceType(ctx, field) + case "use": + return ec.fieldContext_HumanName_use(ctx, field) + case "family": + return ec.fieldContext_HumanName_family(ctx, field) + case "suffix": + return ec.fieldContext_HumanName_suffix(ctx, field) + case "id": + return ec.fieldContext_HumanName_id(ctx, field) + case "period": + return ec.fieldContext_HumanName_period(ctx, field) + case "prefix": + return ec.fieldContext_HumanName_prefix(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_HumanName_extension(ctx, field) + case "text": + return ec.fieldContext_HumanName_text(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerCommunication_id(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerCommunication_id(ctx, field) +func (ec *executionContext) _PatientType_active(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_active(ctx, field) if err != nil { return graphql.Null } @@ -123803,7 +123431,7 @@ func (ec *executionContext) _PractitionerCommunication_id(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Active, nil }) if err != nil { ec.Error(ctx, err) @@ -123817,9 +123445,9 @@ func (ec *executionContext) _PractitionerCommunication_id(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerCommunication_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerCommunication", + Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, @@ -123830,8 +123458,8 @@ func (ec *executionContext) fieldContext_PractitionerCommunication_id(_ context. return fc, nil } -func (ec *executionContext) _PractitionerCommunication_language(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerCommunication_language(ctx, field) +func (ec *executionContext) _PatientType_deceasedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_deceasedBoolean(ctx, field) if err != nil { return graphql.Null } @@ -123844,7 +123472,7 @@ func (ec *executionContext) _PractitionerCommunication_language(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.DeceasedBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -123853,38 +123481,26 @@ func (ec *executionContext) _PractitionerCommunication_language(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerCommunication_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PatientType_deceasedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerCommunication", + Object: "PatientType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PractitionerCommunication_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerCommunication_modifierExtension(ctx, field) +func (ec *executionContext) _Period_start(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Period_start(ctx, field) if err != nil { return graphql.Null } @@ -123897,7 +123513,7 @@ func (ec *executionContext) _PractitionerCommunication_modifierExtension(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Start, nil }) if err != nil { ec.Error(ctx, err) @@ -123906,142 +123522,26 @@ func (ec *executionContext) _PractitionerCommunication_modifierExtension(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerCommunication_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Period_start(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerCommunication", + Object: "Period", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PractitionerQualification_issuer(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerQualification_issuer(ctx, field) +func (ec *executionContext) _Period_end(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Period_end(ctx, field) if err != nil { return graphql.Null } @@ -124054,7 +123554,7 @@ func (ec *executionContext) _PractitionerQualification_issuer(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Issuer, nil + return obj.End, nil }) if err != nil { ec.Error(ctx, err) @@ -124063,75 +123563,26 @@ func (ec *executionContext) _PractitionerQualification_issuer(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerQualification_issuer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Period_end(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerQualification", + Object: "Period", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) - case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PractitionerQualification_issuer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _PractitionerQualification_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerQualification_modifierExtension(ctx, field) +func (ec *executionContext) _Period_extension(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Period_extension(ctx, field) if err != nil { return graphql.Null } @@ -124144,7 +123595,7 @@ func (ec *executionContext) _PractitionerQualification_modifierExtension(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -124158,128 +123609,128 @@ func (ec *executionContext) _PractitionerQualification_modifierExtension(ctx con return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerQualification_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Period_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerQualification", + Object: "Period", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -124287,8 +123738,8 @@ func (ec *executionContext) fieldContext_PractitionerQualification_modifierExten return fc, nil } -func (ec *executionContext) _PractitionerQualification_period(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerQualification_period(ctx, field) +func (ec *executionContext) _Period_id(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Period_id(ctx, field) if err != nil { return graphql.Null } @@ -124301,7 +123752,7 @@ func (ec *executionContext) _PractitionerQualification_period(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -124310,38 +123761,26 @@ func (ec *executionContext) _PractitionerQualification_period(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerQualification_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Period_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerQualification", + Object: "Period", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PractitionerQualification_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerQualification_resourceType(ctx, field) +func (ec *executionContext) _Period_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Period) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Period_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -124368,9 +123807,9 @@ func (ec *executionContext) _PractitionerQualification_resourceType(ctx context. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerQualification_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Period_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerQualification", + Object: "Period", Field: field, IsMethod: false, IsResolver: false, @@ -124381,8 +123820,8 @@ func (ec *executionContext) fieldContext_PractitionerQualification_resourceType( return fc, nil } -func (ec *executionContext) _PractitionerQualification_code(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerQualification_code(ctx, field) +func (ec *executionContext) _PractitionerCommunication_preferred(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerCommunication_preferred(ctx, field) if err != nil { return graphql.Null } @@ -124395,7 +123834,7 @@ func (ec *executionContext) _PractitionerQualification_code(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Preferred, nil }) if err != nil { ec.Error(ctx, err) @@ -124404,38 +123843,67 @@ func (ec *executionContext) _PractitionerQualification_code(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerQualification_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerCommunication_preferred(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerQualification", + Object: "PractitionerCommunication", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PractitionerQualification_extension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerQualification_extension(ctx, field) +func (ec *executionContext) _PractitionerCommunication_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerCommunication_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerCommunication_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PractitionerCommunication", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PractitionerCommunication_extension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerCommunication_extension(ctx, field) if err != nil { return graphql.Null } @@ -124462,128 +123930,379 @@ func (ec *executionContext) _PractitionerQualification_extension(ctx context.Con return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerQualification_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerCommunication_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerQualification", + Object: "PractitionerCommunication", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) case "valueDate": return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) case "valuePositiveInt": return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) case "valueTime": return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueTiming": return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PractitionerCommunication_id(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerCommunication_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerCommunication_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PractitionerCommunication", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PractitionerCommunication_language(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerCommunication_language(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Language, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerCommunication_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PractitionerCommunication", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PractitionerCommunication_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerCommunication) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerCommunication_modifierExtension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifierExtension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerCommunication_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PractitionerCommunication", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) case "valueExpression": return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) case "valueAvailability": return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -124591,8 +124310,8 @@ func (ec *executionContext) fieldContext_PractitionerQualification_extension(_ c return fc, nil } -func (ec *executionContext) _PractitionerQualification_id(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerQualification_id(ctx, field) +func (ec *executionContext) _PractitionerQualification_code(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerQualification_code(ctx, field) if err != nil { return graphql.Null } @@ -124605,7 +124324,7 @@ func (ec *executionContext) _PractitionerQualification_id(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -124614,26 +124333,38 @@ func (ec *executionContext) _PractitionerQualification_id(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerQualification_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerQualification_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerQualification", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerQualification_identifier(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerQualification_identifier(ctx, field) +func (ec *executionContext) _PractitionerQualification_extension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerQualification_extension(ctx, field) if err != nil { return graphql.Null } @@ -124646,7 +124377,7 @@ func (ec *executionContext) _PractitionerQualification_identifier(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -124655,12 +124386,12 @@ func (ec *executionContext) _PractitionerQualification_identifier(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerQualification_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerQualification_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerQualification", Field: field, @@ -124668,33 +124399,129 @@ func (ec *executionContext) fieldContext_PractitionerQualification_identifier(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerRoleType_availability(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_availability(ctx, field) +func (ec *executionContext) _PractitionerQualification_id(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerQualification_id(ctx, field) if err != nil { return graphql.Null } @@ -124707,7 +124534,7 @@ func (ec *executionContext) _PractitionerRoleType_availability(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Availability, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -124716,38 +124543,26 @@ func (ec *executionContext) _PractitionerRoleType_availability(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Availability) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAvailability2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_availability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerQualification_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerRoleType", + Object: "PractitionerQualification", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "availableTime": - return ec.fieldContext_Availability_availableTime(ctx, field) - case "extension": - return ec.fieldContext_Availability_extension(ctx, field) - case "id": - return ec.fieldContext_Availability_id(ctx, field) - case "notAvailableTime": - return ec.fieldContext_Availability_notAvailableTime(ctx, field) - case "resourceType": - return ec.fieldContext_Availability_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Availability", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PractitionerRoleType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_identifier(ctx, field) +func (ec *executionContext) _PractitionerQualification_identifier(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerQualification_identifier(ctx, field) if err != nil { return graphql.Null } @@ -124774,32 +124589,32 @@ func (ec *executionContext) _PractitionerRoleType_identifier(ctx context.Context return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerQualification_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerRoleType", + Object: "PractitionerQualification", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) case "extension": return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) case "period": return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) case "value": return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) case "id": return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, @@ -124807,8 +124622,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_identifier(_ conte return fc, nil } -func (ec *executionContext) _PractitionerRoleType_practitioner(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_practitioner(ctx, field) +func (ec *executionContext) _PractitionerQualification_issuer(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerQualification_issuer(ctx, field) if err != nil { return graphql.Null } @@ -124821,72 +124636,69 @@ func (ec *executionContext) _PractitionerRoleType_practitioner(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Practitioner, nil + return obj.Issuer, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.PractitionerType) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOPractitionerType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_practitioner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerQualification_issuer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerRoleType", + Object: "PractitionerQualification", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "meta": - return ec.fieldContext_PractitionerType_meta(ctx, field) - case "deceasedBoolean": - return ec.fieldContext_PractitionerType_deceasedBoolean(ctx, field) - case "birthDate": - return ec.fieldContext_PractitionerType_birthDate(ctx, field) - case "id": - return ec.fieldContext_PractitionerType_id(ctx, field) - case "extension": - return ec.fieldContext_PractitionerType_extension(ctx, field) - case "gender": - return ec.fieldContext_PractitionerType_gender(ctx, field) - case "qualification": - return ec.fieldContext_PractitionerType_qualification(ctx, field) - case "contained": - return ec.fieldContext_PractitionerType_contained(ctx, field) - case "telecom": - return ec.fieldContext_PractitionerType_telecom(ctx, field) case "identifier": - return ec.fieldContext_PractitionerType_identifier(ctx, field) - case "address": - return ec.fieldContext_PractitionerType_address(ctx, field) + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) case "modifierExtension": - return ec.fieldContext_PractitionerType_modifierExtension(ctx, field) + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) case "resourceType": - return ec.fieldContext_PractitionerType_resourceType(ctx, field) - case "implicitRules": - return ec.fieldContext_PractitionerType_implicitRules(ctx, field) - case "language": - return ec.fieldContext_PractitionerType_language(ctx, field) + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) case "name": - return ec.fieldContext_PractitionerType_name(ctx, field) - case "photo": - return ec.fieldContext_PractitionerType_photo(ctx, field) + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) case "text": - return ec.fieldContext_PractitionerType_text(ctx, field) - case "active": - return ec.fieldContext_PractitionerType_active(ctx, field) - case "communication": - return ec.fieldContext_PractitionerType_communication(ctx, field) - case "deceasedDateTime": - return ec.fieldContext_PractitionerType_deceasedDateTime(ctx, field) + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PractitionerType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } defer func() { @@ -124896,15 +124708,15 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_practitioner(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PractitionerRoleType_practitioner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_PractitionerQualification_issuer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _PractitionerRoleType_contained(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_contained(ctx, field) +func (ec *executionContext) _PractitionerQualification_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerQualification_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -124917,7 +124729,7 @@ func (ec *executionContext) _PractitionerRoleType_contained(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -124926,26 +124738,142 @@ func (ec *executionContext) _PractitionerRoleType_contained(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerQualification_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerRoleType", + Object: "PractitionerQualification", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerRoleType_language(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_language(ctx, field) +func (ec *executionContext) _PractitionerQualification_period(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerQualification_period(ctx, field) if err != nil { return graphql.Null } @@ -124958,7 +124886,60 @@ func (ec *executionContext) _PractitionerRoleType_language(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Period, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Period) + fc.Result = res + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerQualification_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PractitionerQualification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PractitionerQualification_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerQualification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerQualification_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -124972,9 +124953,9 @@ func (ec *executionContext) _PractitionerRoleType_language(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerQualification_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerRoleType", + Object: "PractitionerQualification", Field: field, IsMethod: false, IsResolver: false, @@ -124985,8 +124966,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_language(_ context return fc, nil } -func (ec *executionContext) _PractitionerRoleType_code(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_code(ctx, field) +func (ec *executionContext) _PractitionerRoleType_communication(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_communication(ctx, field) if err != nil { return graphql.Null } @@ -124999,7 +124980,7 @@ func (ec *executionContext) _PractitionerRoleType_code(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Communication, nil }) if err != nil { ec.Error(ctx, err) @@ -125013,7 +124994,7 @@ func (ec *executionContext) _PractitionerRoleType_code(ctx context.Context, fiel return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_communication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, @@ -125021,6 +125002,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_code(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -125029,8 +125012,6 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_code(_ context.Con return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -125038,8 +125019,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_code(_ context.Con return fc, nil } -func (ec *executionContext) _PractitionerRoleType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_implicitRules(ctx, field) +func (ec *executionContext) _PractitionerRoleType_active(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_active(ctx, field) if err != nil { return graphql.Null } @@ -125052,7 +125033,7 @@ func (ec *executionContext) _PractitionerRoleType_implicitRules(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.Active, nil }) if err != nil { ec.Error(ctx, err) @@ -125066,7 +125047,7 @@ func (ec *executionContext) _PractitionerRoleType_implicitRules(ctx context.Cont return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, @@ -125079,8 +125060,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_implicitRules(_ co return fc, nil } -func (ec *executionContext) _PractitionerRoleType_specialty(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_specialty(ctx, field) +func (ec *executionContext) _PractitionerRoleType_id(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_id(ctx, field) if err != nil { return graphql.Null } @@ -125093,7 +125074,7 @@ func (ec *executionContext) _PractitionerRoleType_specialty(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Specialty, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -125102,38 +125083,26 @@ func (ec *executionContext) _PractitionerRoleType_specialty(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_specialty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PractitionerRoleType_id(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_id(ctx, field) +func (ec *executionContext) _PractitionerRoleType_organization(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_organization(ctx, field) if err != nil { return graphql.Null } @@ -125146,35 +125115,87 @@ func (ec *executionContext) _PractitionerRoleType_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Organization, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_PractitionerRoleType_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PractitionerRoleType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_resourceType(ctx, field) +func (ec *executionContext) _PractitionerRoleType_contained(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_contained(ctx, field) if err != nil { return graphql.Null } @@ -125187,7 +125208,7 @@ func (ec *executionContext) _PractitionerRoleType_resourceType(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -125196,19 +125217,19 @@ func (ec *executionContext) _PractitionerRoleType_resourceType(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil @@ -125250,120 +125271,120 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_extension(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -125371,8 +125392,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_extension(_ contex return fc, nil } -func (ec *executionContext) _PractitionerRoleType_organization(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_organization(ctx, field) +func (ec *executionContext) _PractitionerRoleType_period(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_period(ctx, field) if err != nil { return graphql.Null } @@ -125385,7 +125406,7 @@ func (ec *executionContext) _PractitionerRoleType_organization(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -125394,12 +125415,12 @@ func (ec *executionContext) _PractitionerRoleType_organization(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, @@ -125407,56 +125428,72 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_organization(ctx c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _PractitionerRoleType_code(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_code(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PractitionerRoleType_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Code, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerRoleType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PractitionerRoleType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, } return fc, nil } @@ -125497,120 +125534,120 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_modifierExtension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -125618,8 +125655,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_modifierExtension( return fc, nil } -func (ec *executionContext) _PractitionerRoleType_communication(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_communication(ctx, field) +func (ec *executionContext) _PractitionerRoleType_specialty(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_specialty(ctx, field) if err != nil { return graphql.Null } @@ -125632,7 +125669,7 @@ func (ec *executionContext) _PractitionerRoleType_communication(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Communication, nil + return obj.Specialty, nil }) if err != nil { ec.Error(ctx, err) @@ -125646,7 +125683,7 @@ func (ec *executionContext) _PractitionerRoleType_communication(ctx context.Cont return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_communication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_specialty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, @@ -125654,6 +125691,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_communication(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -125662,8 +125701,6 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_communication(_ co return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -125671,8 +125708,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_communication(_ co return fc, nil } -func (ec *executionContext) _PractitionerRoleType_active(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_active(ctx, field) +func (ec *executionContext) _PractitionerRoleType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -125685,7 +125722,7 @@ func (ec *executionContext) _PractitionerRoleType_active(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Active, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -125699,7 +125736,7 @@ func (ec *executionContext) _PractitionerRoleType_active(ctx context.Context, fi return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, @@ -125712,8 +125749,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_active(_ context.C return fc, nil } -func (ec *executionContext) _PractitionerRoleType_characteristic(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_characteristic(ctx, field) +func (ec *executionContext) _PractitionerRoleType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -125726,7 +125763,7 @@ func (ec *executionContext) _PractitionerRoleType_characteristic(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Characteristic, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -125735,12 +125772,12 @@ func (ec *executionContext) _PractitionerRoleType_characteristic(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_characteristic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, @@ -125748,25 +125785,33 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_characteristic(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerRoleType_contact(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_contact(ctx, field) +func (ec *executionContext) _PractitionerRoleType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -125779,7 +125824,7 @@ func (ec *executionContext) _PractitionerRoleType_contact(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contact, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -125788,39 +125833,60 @@ func (ec *executionContext) _PractitionerRoleType_contact(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ExtendedContactDetail) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ExtendedContactDetail_name(ctx, field) - case "organization": - return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) - case "purpose": - return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) - case "resourceType": - return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) - case "telecom": - return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) - case "address": - return ec.fieldContext_ExtendedContactDetail_address(ctx, field) - case "id": - return ec.fieldContext_ExtendedContactDetail_id(ctx, field) - case "extension": - return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) - case "period": - return ec.fieldContext_ExtendedContactDetail_period(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PractitionerRoleType_language(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_language(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Language, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerRoleType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PractitionerRoleType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -125862,24 +125928,24 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_meta(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) case "lastUpdated": return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) case "id": return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, @@ -125887,8 +125953,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_meta(_ context.Con return fc, nil } -func (ec *executionContext) _PractitionerRoleType_period(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerRoleType_period(ctx, field) +func (ec *executionContext) _PractitionerRoleType_contact(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_contact(ctx, field) if err != nil { return graphql.Null } @@ -125901,7 +125967,7 @@ func (ec *executionContext) _PractitionerRoleType_period(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.Contact, nil }) if err != nil { ec.Error(ctx, err) @@ -125910,12 +125976,12 @@ func (ec *executionContext) _PractitionerRoleType_period(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.([]*model.ExtendedContactDetail) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerRoleType_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerRoleType", Field: field, @@ -125923,18 +125989,26 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_period(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "period": + return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + case "telecom": + return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) + case "address": + return ec.fieldContext_ExtendedContactDetail_address(ctx, field) + case "organization": + return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) + case "purpose": + return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) + case "resourceType": + return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) + case "name": + return ec.fieldContext_ExtendedContactDetail_name(ctx, field) case "extension": - return ec.fieldContext_Period_extension(ctx, field) + return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_ExtendedContactDetail_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) }, } return fc, nil @@ -125976,8 +126050,6 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_text(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) case "extension": return ec.fieldContext_Narrative_extension(ctx, field) case "id": @@ -125986,6 +126058,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_text(_ context.Con return ec.fieldContext_Narrative_resourceType(ctx, field) case "status": return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, @@ -125993,8 +126067,8 @@ func (ec *executionContext) fieldContext_PractitionerRoleType_text(_ context.Con return fc, nil } -func (ec *executionContext) _PractitionerType_meta(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_meta(ctx, field) +func (ec *executionContext) _PractitionerRoleType_practitioner(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_practitioner(ctx, field) if err != nil { return graphql.Null } @@ -126007,55 +126081,93 @@ func (ec *executionContext) _PractitionerType_meta(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Practitioner, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*model.PractitionerType) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalNPractitionerType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_practitioner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerType", + Object: "PractitionerRoleType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + case "birthDate": + return ec.fieldContext_PractitionerType_birthDate(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_PractitionerType_id(ctx, field) + case "language": + return ec.fieldContext_PractitionerType_language(ctx, field) + case "qualification": + return ec.fieldContext_PractitionerType_qualification(ctx, field) + case "address": + return ec.fieldContext_PractitionerType_address(ctx, field) + case "modifierExtension": + return ec.fieldContext_PractitionerType_modifierExtension(ctx, field) + case "active": + return ec.fieldContext_PractitionerType_active(ctx, field) + case "contained": + return ec.fieldContext_PractitionerType_contained(ctx, field) + case "gender": + return ec.fieldContext_PractitionerType_gender(ctx, field) + case "name": + return ec.fieldContext_PractitionerType_name(ctx, field) + case "text": + return ec.fieldContext_PractitionerType_text(ctx, field) + case "deceasedDateTime": + return ec.fieldContext_PractitionerType_deceasedDateTime(ctx, field) + case "extension": + return ec.fieldContext_PractitionerType_extension(ctx, field) + case "meta": + return ec.fieldContext_PractitionerType_meta(ctx, field) + case "photo": + return ec.fieldContext_PractitionerType_photo(ctx, field) + case "telecom": + return ec.fieldContext_PractitionerType_telecom(ctx, field) + case "resourceType": + return ec.fieldContext_PractitionerType_resourceType(ctx, field) + case "communication": + return ec.fieldContext_PractitionerType_communication(ctx, field) + case "identifier": + return ec.fieldContext_PractitionerType_identifier(ctx, field) + case "deceasedBoolean": + return ec.fieldContext_PractitionerType_deceasedBoolean(ctx, field) + case "implicitRules": + return ec.fieldContext_PractitionerType_implicitRules(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PractitionerType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_PractitionerRoleType_practitioner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PractitionerType_deceasedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_deceasedBoolean(ctx, field) +func (ec *executionContext) _PractitionerRoleType_availability(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_availability(ctx, field) if err != nil { return graphql.Null } @@ -126068,7 +126180,7 @@ func (ec *executionContext) _PractitionerType_deceasedBoolean(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeceasedBoolean, nil + return obj.Availability, nil }) if err != nil { ec.Error(ctx, err) @@ -126077,26 +126189,38 @@ func (ec *executionContext) _PractitionerType_deceasedBoolean(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Availability) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOAvailability2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_deceasedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_availability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerType", + Object: "PractitionerRoleType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "notAvailableTime": + return ec.fieldContext_Availability_notAvailableTime(ctx, field) + case "resourceType": + return ec.fieldContext_Availability_resourceType(ctx, field) + case "availableTime": + return ec.fieldContext_Availability_availableTime(ctx, field) + case "extension": + return ec.fieldContext_Availability_extension(ctx, field) + case "id": + return ec.fieldContext_Availability_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Availability", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerType_birthDate(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_birthDate(ctx, field) +func (ec *executionContext) _PractitionerRoleType_characteristic(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_characteristic(ctx, field) if err != nil { return graphql.Null } @@ -126109,7 +126233,7 @@ func (ec *executionContext) _PractitionerType_birthDate(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BirthDate, nil + return obj.Characteristic, nil }) if err != nil { ec.Error(ctx, err) @@ -126118,26 +126242,38 @@ func (ec *executionContext) _PractitionerType_birthDate(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_birthDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerRoleType_characteristic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PractitionerType", + Object: "PractitionerRoleType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerType_id(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_id(ctx, field) +func (ec *executionContext) _PractitionerType_birthDate(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_birthDate(ctx, field) if err != nil { return graphql.Null } @@ -126150,7 +126286,7 @@ func (ec *executionContext) _PractitionerType_id(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.BirthDate, nil }) if err != nil { ec.Error(ctx, err) @@ -126164,7 +126300,7 @@ func (ec *executionContext) _PractitionerType_id(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_birthDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, @@ -126177,8 +126313,8 @@ func (ec *executionContext) fieldContext_PractitionerType_id(_ context.Context, return fc, nil } -func (ec *executionContext) _PractitionerType_extension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_extension(ctx, field) +func (ec *executionContext) _PractitionerType_id(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_id(ctx, field) if err != nil { return graphql.Null } @@ -126191,7 +126327,7 @@ func (ec *executionContext) _PractitionerType_extension(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -126200,142 +126336,26 @@ func (ec *executionContext) _PractitionerType_extension(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PractitionerType_gender(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_gender(ctx, field) +func (ec *executionContext) _PractitionerType_language(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_language(ctx, field) if err != nil { return graphql.Null } @@ -126348,7 +126368,7 @@ func (ec *executionContext) _PractitionerType_gender(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Gender, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -126362,7 +126382,7 @@ func (ec *executionContext) _PractitionerType_gender(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_gender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, @@ -126411,14 +126431,6 @@ func (ec *executionContext) fieldContext_PractitionerType_qualification(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "issuer": - return ec.fieldContext_PractitionerQualification_issuer(ctx, field) - case "modifierExtension": - return ec.fieldContext_PractitionerQualification_modifierExtension(ctx, field) - case "period": - return ec.fieldContext_PractitionerQualification_period(ctx, field) - case "resourceType": - return ec.fieldContext_PractitionerQualification_resourceType(ctx, field) case "code": return ec.fieldContext_PractitionerQualification_code(ctx, field) case "extension": @@ -126427,6 +126439,14 @@ func (ec *executionContext) fieldContext_PractitionerType_qualification(_ contex return ec.fieldContext_PractitionerQualification_id(ctx, field) case "identifier": return ec.fieldContext_PractitionerQualification_identifier(ctx, field) + case "issuer": + return ec.fieldContext_PractitionerQualification_issuer(ctx, field) + case "modifierExtension": + return ec.fieldContext_PractitionerQualification_modifierExtension(ctx, field) + case "period": + return ec.fieldContext_PractitionerQualification_period(ctx, field) + case "resourceType": + return ec.fieldContext_PractitionerQualification_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type PractitionerQualification", field.Name) }, @@ -126434,8 +126454,8 @@ func (ec *executionContext) fieldContext_PractitionerType_qualification(_ contex return fc, nil } -func (ec *executionContext) _PractitionerType_contained(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_contained(ctx, field) +func (ec *executionContext) _PractitionerType_address(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_address(ctx, field) if err != nil { return graphql.Null } @@ -126448,7 +126468,7 @@ func (ec *executionContext) _PractitionerType_contained(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Address, nil }) if err != nil { ec.Error(ctx, err) @@ -126457,26 +126477,54 @@ func (ec *executionContext) _PractitionerType_contained(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.([]*model.Address) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOAddress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + switch field.Name { + case "country": + return ec.fieldContext_Address_country(ctx, field) + case "extension": + return ec.fieldContext_Address_extension(ctx, field) + case "use": + return ec.fieldContext_Address_use(ctx, field) + case "district": + return ec.fieldContext_Address_district(ctx, field) + case "period": + return ec.fieldContext_Address_period(ctx, field) + case "resourceType": + return ec.fieldContext_Address_resourceType(ctx, field) + case "text": + return ec.fieldContext_Address_text(ctx, field) + case "city": + return ec.fieldContext_Address_city(ctx, field) + case "postalCode": + return ec.fieldContext_Address_postalCode(ctx, field) + case "line": + return ec.fieldContext_Address_line(ctx, field) + case "state": + return ec.fieldContext_Address_state(ctx, field) + case "type": + return ec.fieldContext_Address_type(ctx, field) + case "id": + return ec.fieldContext_Address_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerType_telecom(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_telecom(ctx, field) +func (ec *executionContext) _PractitionerType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -126489,7 +126537,7 @@ func (ec *executionContext) _PractitionerType_telecom(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Telecom, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -126498,12 +126546,12 @@ func (ec *executionContext) _PractitionerType_telecom(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ContactPoint) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_telecom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, @@ -126511,31 +126559,129 @@ func (ec *executionContext) fieldContext_PractitionerType_telecom(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_ContactPoint_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_ContactPoint_id(ctx, field) - case "period": - return ec.fieldContext_ContactPoint_period(ctx, field) - case "rank": - return ec.fieldContext_ContactPoint_rank(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_ContactPoint_resourceType(ctx, field) - case "system": - return ec.fieldContext_ContactPoint_system(ctx, field) - case "use": - return ec.fieldContext_ContactPoint_use(ctx, field) - case "value": - return ec.fieldContext_ContactPoint_value(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_identifier(ctx, field) +func (ec *executionContext) _PractitionerType_active(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_active(ctx, field) if err != nil { return graphql.Null } @@ -126548,7 +126694,7 @@ func (ec *executionContext) _PractitionerType_identifier(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Active, nil }) if err != nil { ec.Error(ctx, err) @@ -126557,46 +126703,26 @@ func (ec *executionContext) _PractitionerType_identifier(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PractitionerType_address(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_address(ctx, field) +func (ec *executionContext) _PractitionerType_contained(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_contained(ctx, field) if err != nil { return graphql.Null } @@ -126609,7 +126735,7 @@ func (ec *executionContext) _PractitionerType_address(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Address, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -126618,54 +126744,26 @@ func (ec *executionContext) _PractitionerType_address(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Address) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOAddress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_Address_text(ctx, field) - case "use": - return ec.fieldContext_Address_use(ctx, field) - case "id": - return ec.fieldContext_Address_id(ctx, field) - case "line": - return ec.fieldContext_Address_line(ctx, field) - case "country": - return ec.fieldContext_Address_country(ctx, field) - case "postalCode": - return ec.fieldContext_Address_postalCode(ctx, field) - case "state": - return ec.fieldContext_Address_state(ctx, field) - case "city": - return ec.fieldContext_Address_city(ctx, field) - case "district": - return ec.fieldContext_Address_district(ctx, field) - case "period": - return ec.fieldContext_Address_period(ctx, field) - case "resourceType": - return ec.fieldContext_Address_resourceType(ctx, field) - case "type": - return ec.fieldContext_Address_type(ctx, field) - case "extension": - return ec.fieldContext_Address_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PractitionerType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_modifierExtension(ctx, field) +func (ec *executionContext) _PractitionerType_gender(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_gender(ctx, field) if err != nil { return graphql.Null } @@ -126678,7 +126776,7 @@ func (ec *executionContext) _PractitionerType_modifierExtension(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Gender, nil }) if err != nil { ec.Error(ctx, err) @@ -126687,12 +126785,53 @@ func (ec *executionContext) _PractitionerType_modifierExtension(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_gender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PractitionerType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PractitionerType_name(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.HumanName) + fc.Result = res + return ec.marshalOHumanName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, @@ -126700,129 +126839,35 @@ func (ec *executionContext) fieldContext_PractitionerType_modifierExtension(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + case "given": + return ec.fieldContext_HumanName_given(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_HumanName_resourceType(ctx, field) + case "use": + return ec.fieldContext_HumanName_use(ctx, field) + case "family": + return ec.fieldContext_HumanName_family(ctx, field) + case "suffix": + return ec.fieldContext_HumanName_suffix(ctx, field) + case "id": + return ec.fieldContext_HumanName_id(ctx, field) + case "period": + return ec.fieldContext_HumanName_period(ctx, field) + case "prefix": + return ec.fieldContext_HumanName_prefix(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_HumanName_extension(ctx, field) + case "text": + return ec.fieldContext_HumanName_text(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_resourceType(ctx, field) +func (ec *executionContext) _PractitionerType_text(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_text(ctx, field) if err != nil { return graphql.Null } @@ -126835,7 +126880,7 @@ func (ec *executionContext) _PractitionerType_resourceType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -126844,26 +126889,38 @@ func (ec *executionContext) _PractitionerType_resourceType(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_implicitRules(ctx, field) +func (ec *executionContext) _PractitionerType_deceasedDateTime(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_deceasedDateTime(ctx, field) if err != nil { return graphql.Null } @@ -126876,7 +126933,7 @@ func (ec *executionContext) _PractitionerType_implicitRules(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.DeceasedDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -126890,7 +126947,7 @@ func (ec *executionContext) _PractitionerType_implicitRules(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_deceasedDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, @@ -126903,8 +126960,8 @@ func (ec *executionContext) fieldContext_PractitionerType_implicitRules(_ contex return fc, nil } -func (ec *executionContext) _PractitionerType_language(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_language(ctx, field) +func (ec *executionContext) _PractitionerType_extension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_extension(ctx, field) if err != nil { return graphql.Null } @@ -126917,7 +126974,7 @@ func (ec *executionContext) _PractitionerType_language(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -126926,26 +126983,142 @@ func (ec *executionContext) _PractitionerType_language(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerType_name(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_name(ctx, field) +func (ec *executionContext) _PractitionerType_meta(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_meta(ctx, field) if err != nil { return graphql.Null } @@ -126958,7 +127131,7 @@ func (ec *executionContext) _PractitionerType_name(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -126967,12 +127140,12 @@ func (ec *executionContext) _PractitionerType_name(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.HumanName) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOHumanName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, @@ -126980,28 +127153,26 @@ func (ec *executionContext) fieldContext_PractitionerType_name(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "suffix": - return ec.fieldContext_HumanName_suffix(ctx, field) - case "use": - return ec.fieldContext_HumanName_use(ctx, field) - case "family": - return ec.fieldContext_HumanName_family(ctx, field) - case "given": - return ec.fieldContext_HumanName_given(ctx, field) - case "id": - return ec.fieldContext_HumanName_id(ctx, field) - case "prefix": - return ec.fieldContext_HumanName_prefix(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_HumanName_extension(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_HumanName_resourceType(ctx, field) - case "period": - return ec.fieldContext_HumanName_period(ctx, field) - case "text": - return ec.fieldContext_HumanName_text(ctx, field) + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil @@ -127043,38 +127214,38 @@ func (ec *executionContext) fieldContext_PractitionerType_photo(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) - case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) case "size": return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) case "title": return ec.fieldContext_Attachment_title(ctx, field) case "creation": return ec.fieldContext_Attachment_creation(ctx, field) case "height": return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) case "hash": return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) case "resourceType": return ec.fieldContext_Attachment_resourceType(ctx, field) - case "id": - return ec.fieldContext_Attachment_id(ctx, field) + case "extension": + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) case "contentType": return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) + case "id": + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, @@ -127082,8 +127253,8 @@ func (ec *executionContext) fieldContext_PractitionerType_photo(_ context.Contex return fc, nil } -func (ec *executionContext) _PractitionerType_text(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_text(ctx, field) +func (ec *executionContext) _PractitionerType_telecom(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_telecom(ctx, field) if err != nil { return graphql.Null } @@ -127096,7 +127267,7 @@ func (ec *executionContext) _PractitionerType_text(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Telecom, nil }) if err != nil { ec.Error(ctx, err) @@ -127105,12 +127276,12 @@ func (ec *executionContext) _PractitionerType_text(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.([]*model.ContactPoint) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_telecom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, @@ -127118,25 +127289,31 @@ func (ec *executionContext) fieldContext_PractitionerType_text(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) + case "resourceType": + return ec.fieldContext_ContactPoint_resourceType(ctx, field) + case "system": + return ec.fieldContext_ContactPoint_system(ctx, field) + case "use": + return ec.fieldContext_ContactPoint_use(ctx, field) + case "value": + return ec.fieldContext_ContactPoint_value(ctx, field) case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) + return ec.fieldContext_ContactPoint_extension(ctx, field) case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_ContactPoint_id(ctx, field) + case "period": + return ec.fieldContext_ContactPoint_period(ctx, field) + case "rank": + return ec.fieldContext_ContactPoint_rank(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) }, } return fc, nil } -func (ec *executionContext) _PractitionerType_active(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_active(ctx, field) +func (ec *executionContext) _PractitionerType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -127149,7 +127326,7 @@ func (ec *executionContext) _PractitionerType_active(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Active, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -127163,7 +127340,7 @@ func (ec *executionContext) _PractitionerType_active(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, @@ -127231,8 +127408,8 @@ func (ec *executionContext) fieldContext_PractitionerType_communication(_ contex return fc, nil } -func (ec *executionContext) _PractitionerType_deceasedDateTime(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PractitionerType_deceasedDateTime(ctx, field) +func (ec *executionContext) _PractitionerType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -127245,7 +127422,68 @@ func (ec *executionContext) _PractitionerType_deceasedDateTime(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeceasedDateTime, nil + return obj.Identifier, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Identifier) + fc.Result = res + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PractitionerType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PractitionerType_deceasedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_deceasedBoolean(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeceasedBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -127259,7 +127497,7 @@ func (ec *executionContext) _PractitionerType_deceasedDateTime(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PractitionerType_deceasedDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_deceasedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "PractitionerType", Field: field, @@ -127272,8 +127510,8 @@ func (ec *executionContext) fieldContext_PractitionerType_deceasedDateTime(_ con return fc, nil } -func (ec *executionContext) _ProcedureFocalDevice_action(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureFocalDevice) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureFocalDevice_action(ctx, field) +func (ec *executionContext) _PractitionerType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -127286,7 +127524,7 @@ func (ec *executionContext) _ProcedureFocalDevice_action(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Action, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -127295,31 +127533,19 @@ func (ec *executionContext) _ProcedureFocalDevice_action(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureFocalDevice_action(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PractitionerType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureFocalDevice", + Object: "PractitionerType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -127361,120 +127587,120 @@ func (ec *executionContext) fieldContext_ProcedureFocalDevice_extension(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -127559,120 +127785,120 @@ func (ec *executionContext) fieldContext_ProcedureFocalDevice_modifierExtension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) case "valueUnsignedInt": return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -127721,6 +127947,312 @@ func (ec *executionContext) fieldContext_ProcedureFocalDevice_resourceType(_ con return fc, nil } +func (ec *executionContext) _ProcedureFocalDevice_action(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureFocalDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureFocalDevice_action(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Action, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedureFocalDevice_action(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedureFocalDevice", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProcedurePerformer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedurePerformer_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedurePerformer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedurePerformer", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ProcedurePerformer_actor(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedurePerformer_actor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Actor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.ProcedurePerformerActorUnion) + fc.Result = res + return ec.marshalNProcedurePerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerActorUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedurePerformer_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedurePerformer", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ProcedurePerformerActorUnion does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ProcedurePerformer_actor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ProcedurePerformer_extension(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedurePerformer_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedurePerformer_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedurePerformer", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _ProcedurePerformer_function(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { fc, err := ec.fieldContext_ProcedurePerformer_function(ctx, field) if err != nil { @@ -127757,6 +128289,8 @@ func (ec *executionContext) fieldContext_ProcedurePerformer_function(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -127765,8 +128299,6 @@ func (ec *executionContext) fieldContext_ProcedurePerformer_function(_ context.C return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -127851,120 +128383,120 @@ func (ec *executionContext) fieldContext_ProcedurePerformer_modifierExtension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -127993,11 +128525,14 @@ func (ec *executionContext) _ProcedurePerformer_onBehalfOf(ctx context.Context, return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ProcedurePerformer_onBehalfOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -128008,42 +128543,42 @@ func (ec *executionContext) fieldContext_ProcedurePerformer_onBehalfOf(ctx conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) case "contained": return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) case "meta": return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) case "id": return ec.fieldContext_OrganizationType_id(ctx, field) case "qualification": return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, @@ -128098,16 +128633,16 @@ func (ec *executionContext) fieldContext_ProcedurePerformer_period(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -128115,8 +128650,8 @@ func (ec *executionContext) fieldContext_ProcedurePerformer_period(_ context.Con return fc, nil } -func (ec *executionContext) _ProcedurePerformer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedurePerformer_resourceType(ctx, field) +func (ec *executionContext) _ProcedureType_recorder(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_recorder(ctx, field) if err != nil { return graphql.Null } @@ -128129,35 +128664,49 @@ func (ec *executionContext) _ProcedurePerformer_resourceType(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Recorder, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ProcedureRecorderUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNProcedureRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureRecorderUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedurePerformer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_recorder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedurePerformer", + Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ProcedureRecorderUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ProcedureType_recorder_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ProcedurePerformer_actor(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedurePerformer_actor(ctx, field) +func (ec *executionContext) _ProcedureType_report(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_report(ctx, field) if err != nil { return graphql.Null } @@ -128170,28 +128719,31 @@ func (ec *executionContext) _ProcedurePerformer_actor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Actor, nil + return obj.Report, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ProcedurePerformerActorUnion) + res := resTmp.(model.ProcedureReportUnion) fc.Result = res - return ec.marshalOProcedurePerformerActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerActorUnion(ctx, field.Selections, res) + return ec.marshalNProcedureReportUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedurePerformer_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_report(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedurePerformer", + Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcedurePerformerActorUnion does not have child fields") + return nil, errors.New("field of type ProcedureReportUnion does not have child fields") }, } defer func() { @@ -128201,15 +128753,15 @@ func (ec *executionContext) fieldContext_ProcedurePerformer_actor(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ProcedurePerformer_actor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ProcedureType_report_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ProcedurePerformer_extension(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedurePerformer_extension(ctx, field) +func (ec *executionContext) _ProcedureType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -128222,7 +128774,7 @@ func (ec *executionContext) _ProcedurePerformer_extension(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -128231,142 +128783,26 @@ func (ec *executionContext) _ProcedurePerformer_extension(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedurePerformer_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedurePerformer", + Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_resourceType(ctx, field) +func (ec *executionContext) _ProcedureType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_meta(ctx, field) if err != nil { return graphql.Null } @@ -128379,7 +128815,7 @@ func (ec *executionContext) _ProcedureType_resourceType(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -128388,26 +128824,46 @@ func (ec *executionContext) _ProcedureType_resourceType(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_recorder(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_recorder(ctx, field) +func (ec *executionContext) _ProcedureType_note(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_note(ctx, field) if err != nil { return graphql.Null } @@ -128420,28 +128876,31 @@ func (ec *executionContext) _ProcedureType_recorder(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Recorder, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ProcedureRecorderUnion) + res := resTmp.(model.ProcedureNoteUnion) fc.Result = res - return ec.marshalOProcedureRecorderUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureRecorderUnion(ctx, field.Selections, res) + return ec.marshalNProcedureNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_recorder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcedureRecorderUnion does not have child fields") + return nil, errors.New("field of type ProcedureNoteUnion does not have child fields") }, } defer func() { @@ -128451,15 +128910,15 @@ func (ec *executionContext) fieldContext_ProcedureType_recorder(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ProcedureType_recorder_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ProcedureType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ProcedureType_occurrenceTiming(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_occurrenceTiming(ctx, field) +func (ec *executionContext) _ProcedureType_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_bodySite(ctx, field) if err != nil { return graphql.Null } @@ -128472,7 +128931,7 @@ func (ec *executionContext) _ProcedureType_occurrenceTiming(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OccurrenceTiming, nil + return obj.BodySite, nil }) if err != nil { ec.Error(ctx, err) @@ -128481,12 +128940,12 @@ func (ec *executionContext) _ProcedureType_occurrenceTiming(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Timing) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_occurrenceTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -128494,29 +128953,25 @@ func (ec *executionContext) fieldContext_ProcedureType_occurrenceTiming(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "repeat": - return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_Timing_resourceType(ctx, field) - case "code": - return ec.fieldContext_Timing_code(ctx, field) - case "event": - return ec.fieldContext_Timing_event(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Timing_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Timing_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_Timing_modifierExtension(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_occurrenceString(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_occurrenceString(ctx, field) +func (ec *executionContext) _ProcedureType_instantiatesUri(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_instantiatesUri(ctx, field) if err != nil { return graphql.Null } @@ -128529,7 +128984,7 @@ func (ec *executionContext) _ProcedureType_occurrenceString(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OccurrenceString, nil + return obj.InstantiatesURI, nil }) if err != nil { ec.Error(ctx, err) @@ -128543,7 +128998,7 @@ func (ec *executionContext) _ProcedureType_occurrenceString(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_occurrenceString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_instantiatesUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -128556,8 +129011,8 @@ func (ec *executionContext) fieldContext_ProcedureType_occurrenceString(_ contex return fc, nil } -func (ec *executionContext) _ProcedureType_outcome(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_outcome(ctx, field) +func (ec *executionContext) _ProcedureType_occurrenceTiming(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_occurrenceTiming(ctx, field) if err != nil { return graphql.Null } @@ -128570,7 +129025,7 @@ func (ec *executionContext) _ProcedureType_outcome(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Outcome, nil + return obj.OccurrenceTiming, nil }) if err != nil { ec.Error(ctx, err) @@ -128579,12 +129034,12 @@ func (ec *executionContext) _ProcedureType_outcome(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Timing) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_outcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_occurrenceTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -128592,25 +129047,29 @@ func (ec *executionContext) fieldContext_ProcedureType_outcome(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "code": + return ec.fieldContext_Timing_code(ctx, field) + case "event": + return ec.fieldContext_Timing_event(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Timing_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Timing_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Timing_modifierExtension(ctx, field) + case "repeat": + return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Timing_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_reason(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_reason(ctx, field) +func (ec *executionContext) _ProcedureType_occurrenceAge(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_occurrenceAge(ctx, field) if err != nil { return graphql.Null } @@ -128623,7 +129082,7 @@ func (ec *executionContext) _ProcedureType_reason(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.OccurrenceAge, nil }) if err != nil { ec.Error(ctx, err) @@ -128632,12 +129091,12 @@ func (ec *executionContext) _ProcedureType_reason(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*model.Age) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_occurrenceAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -128645,23 +129104,31 @@ func (ec *executionContext) fieldContext_ProcedureType_reason(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_Age_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) + return ec.fieldContext_Age_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_reportedReference(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_reportedReference(ctx, field) +func (ec *executionContext) _ProcedureType_occurrenceDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_occurrenceDateTime(ctx, field) if err != nil { return graphql.Null } @@ -128674,7 +129141,7 @@ func (ec *executionContext) _ProcedureType_reportedReference(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReportedReference, nil + return obj.OccurrenceDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -128683,37 +129150,26 @@ func (ec *executionContext) _ProcedureType_reportedReference(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ProcedureReportedReferenceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOProcedureReportedReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportedReferenceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_reportedReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_occurrenceDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcedureReportedReferenceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ProcedureType_reportedReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ProcedureType_occurrencePeriod(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_occurrencePeriod(ctx, field) +func (ec *executionContext) _ProcedureType_reportedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_reportedBoolean(ctx, field) if err != nil { return graphql.Null } @@ -128726,7 +129182,7 @@ func (ec *executionContext) _ProcedureType_occurrencePeriod(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OccurrencePeriod, nil + return obj.ReportedBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -128735,38 +129191,26 @@ func (ec *executionContext) _ProcedureType_occurrencePeriod(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_occurrencePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_reportedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureType_reportedBoolean(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_reportedBoolean(ctx, field) +func (ec *executionContext) _ProcedureType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_subject(ctx, field) if err != nil { return graphql.Null } @@ -128779,35 +129223,49 @@ func (ec *executionContext) _ProcedureType_reportedBoolean(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReportedBoolean, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ProcedureSubjectUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNProcedureSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureSubjectUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_reportedBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ProcedureSubjectUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ProcedureType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ProcedureType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_extension(ctx, field) +func (ec *executionContext) _ProcedureType_occurrenceRange(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_occurrenceRange(ctx, field) if err != nil { return graphql.Null } @@ -128820,7 +129278,7 @@ func (ec *executionContext) _ProcedureType_extension(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.OccurrenceRange, nil }) if err != nil { ec.Error(ctx, err) @@ -128829,12 +129287,12 @@ func (ec *executionContext) _ProcedureType_extension(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_occurrenceRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -128842,129 +129300,25 @@ func (ec *executionContext) fieldContext_ProcedureType_extension(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_Range_resourceType(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_report(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_report(ctx, field) +func (ec *executionContext) _ProcedureType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -128977,7 +129331,7 @@ func (ec *executionContext) _ProcedureType_report(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Report, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -128986,37 +129340,142 @@ func (ec *executionContext) _ProcedureType_report(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ProcedureReportUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOProcedureReportUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_report(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcedureReportUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ProcedureType_report_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ProcedureType_code(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_code(ctx, field) +func (ec *executionContext) _ProcedureType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -129029,7 +129488,7 @@ func (ec *executionContext) _ProcedureType_code(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -129038,38 +129497,26 @@ func (ec *executionContext) _ProcedureType_code(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureType_category(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_category(ctx, field) +func (ec *executionContext) _ProcedureType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_contained(ctx, field) if err != nil { return graphql.Null } @@ -129082,7 +129529,7 @@ func (ec *executionContext) _ProcedureType_category(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Category, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -129091,38 +129538,26 @@ func (ec *executionContext) _ProcedureType_category(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureType_used(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_used(ctx, field) +func (ec *executionContext) _ProcedureType_text(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_text(ctx, field) if err != nil { return graphql.Null } @@ -129135,7 +129570,7 @@ func (ec *executionContext) _ProcedureType_used(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Used, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -129144,12 +129579,12 @@ func (ec *executionContext) _ProcedureType_used(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_used(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -129158,22 +129593,24 @@ func (ec *executionContext) fieldContext_ProcedureType_used(_ context.Context, f Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_recorded(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_recorded(ctx, field) +func (ec *executionContext) _ProcedureType_status(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_status(ctx, field) if err != nil { return graphql.Null } @@ -129186,7 +129623,7 @@ func (ec *executionContext) _ProcedureType_recorded(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Recorded, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -129200,7 +129637,7 @@ func (ec *executionContext) _ProcedureType_recorded(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_recorded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -129213,8 +129650,8 @@ func (ec *executionContext) fieldContext_ProcedureType_recorded(_ context.Contex return fc, nil } -func (ec *executionContext) _ProcedureType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_partOf(ctx, field) +func (ec *executionContext) _ProcedureType_reportedReference(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_reportedReference(ctx, field) if err != nil { return graphql.Null } @@ -129227,28 +129664,31 @@ func (ec *executionContext) _ProcedureType_partOf(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PartOf, nil + return obj.ReportedReference, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ProcedurePartOfUnion) + res := resTmp.(model.ProcedureReportedReferenceUnion) fc.Result = res - return ec.marshalOProcedurePartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePartOfUnion(ctx, field.Selections, res) + return ec.marshalNProcedureReportedReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportedReferenceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_reportedReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcedurePartOfUnion does not have child fields") + return nil, errors.New("field of type ProcedureReportedReferenceUnion does not have child fields") }, } defer func() { @@ -129258,15 +129698,15 @@ func (ec *executionContext) fieldContext_ProcedureType_partOf(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ProcedureType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ProcedureType_reportedReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ProcedureType_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_statusReason(ctx, field) +func (ec *executionContext) _ProcedureType_reason(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_reason(ctx, field) if err != nil { return graphql.Null } @@ -129279,7 +129719,7 @@ func (ec *executionContext) _ProcedureType_statusReason(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StatusReason, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -129288,12 +129728,12 @@ func (ec *executionContext) _ProcedureType_statusReason(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -129301,25 +129741,23 @@ func (ec *executionContext) fieldContext_ProcedureType_statusReason(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_modifierExtension(ctx, field) +func (ec *executionContext) _ProcedureType_outcome(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_outcome(ctx, field) if err != nil { return graphql.Null } @@ -129332,7 +129770,7 @@ func (ec *executionContext) _ProcedureType_modifierExtension(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Outcome, nil }) if err != nil { ec.Error(ctx, err) @@ -129341,12 +129779,12 @@ func (ec *executionContext) _ProcedureType_modifierExtension(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_outcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -129354,129 +129792,25 @@ func (ec *executionContext) fieldContext_ProcedureType_modifierExtension(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_occurrenceRange(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_occurrenceRange(ctx, field) +func (ec *executionContext) _ProcedureType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_partOf(ctx, field) if err != nil { return graphql.Null } @@ -129489,100 +129823,49 @@ func (ec *executionContext) _ProcedureType_occurrenceRange(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OccurrenceRange, nil + return obj.PartOf, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(model.ProcedurePartOfUnion) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalNProcedurePartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePartOfUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_occurrenceRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, errors.New("field of type ProcedurePartOfUnion does not have child fields") }, } - return fc, nil -} - -func (ec *executionContext) _ProcedureType_followUp(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_followUp(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FollowUp, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ProcedureType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.CodeableConcept) - fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ProcedureType_followUp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcedureType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, + return fc, err } return fc, nil } -func (ec *executionContext) _ProcedureType_occurrenceAge(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_occurrenceAge(ctx, field) +func (ec *executionContext) _ProcedureType_used(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_used(ctx, field) if err != nil { return graphql.Null } @@ -129595,7 +129878,7 @@ func (ec *executionContext) _ProcedureType_occurrenceAge(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OccurrenceAge, nil + return obj.Used, nil }) if err != nil { ec.Error(ctx, err) @@ -129604,12 +129887,12 @@ func (ec *executionContext) _ProcedureType_occurrenceAge(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_occurrenceAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_used(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -129617,31 +129900,23 @@ func (ec *executionContext) fieldContext_ProcedureType_occurrenceAge(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_Age_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_Age_id(ctx, field) - case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) - case "value": - return ec.fieldContext_Age_value(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_bodySite(ctx, field) +func (ec *executionContext) _ProcedureType_code(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_code(ctx, field) if err != nil { return graphql.Null } @@ -129654,7 +129929,7 @@ func (ec *executionContext) _ProcedureType_bodySite(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BodySite, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -129663,12 +129938,12 @@ func (ec *executionContext) _ProcedureType_bodySite(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -129676,6 +129951,8 @@ func (ec *executionContext) fieldContext_ProcedureType_bodySite(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -129684,8 +129961,6 @@ func (ec *executionContext) fieldContext_ProcedureType_bodySite(_ context.Contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -129693,49 +129968,8 @@ func (ec *executionContext) fieldContext_ProcedureType_bodySite(_ context.Contex return fc, nil } -func (ec *executionContext) _ProcedureType_id(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ProcedureType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcedureType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcedureType_focalDevice(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_focalDevice(ctx, field) +func (ec *executionContext) _ProcedureType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -129748,7 +129982,7 @@ func (ec *executionContext) _ProcedureType_focalDevice(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FocalDevice, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -129757,12 +129991,12 @@ func (ec *executionContext) _ProcedureType_focalDevice(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ProcedureFocalDevice) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOProcedureFocalDevice2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_focalDevice(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -129770,78 +130004,33 @@ func (ec *executionContext) fieldContext_ProcedureType_focalDevice(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "action": - return ec.fieldContext_ProcedureFocalDevice_action(ctx, field) case "extension": - return ec.fieldContext_ProcedureFocalDevice_extension(ctx, field) - case "id": - return ec.fieldContext_ProcedureFocalDevice_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ProcedureFocalDevice_modifierExtension(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_ProcedureFocalDevice_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcedureFocalDevice", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcedureType_text(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_text(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Text, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Narrative) - fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ProcedureType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcedureType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_meta(ctx, field) +func (ec *executionContext) _ProcedureType_category(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_category(ctx, field) if err != nil { return graphql.Null } @@ -129854,7 +130043,7 @@ func (ec *executionContext) _ProcedureType_meta(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Category, nil }) if err != nil { ec.Error(ctx, err) @@ -129863,12 +130052,12 @@ func (ec *executionContext) _ProcedureType_meta(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -129876,26 +130065,18 @@ func (ec *executionContext) fieldContext_ProcedureType_meta(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -129922,11 +130103,14 @@ func (ec *executionContext) _ProcedureType_supportingInfo(ctx context.Context, f return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(model.ResourceUnion) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ProcedureType_supportingInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -129994,8 +130178,8 @@ func (ec *executionContext) fieldContext_ProcedureType_language(_ context.Contex return fc, nil } -func (ec *executionContext) _ProcedureType_note(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_note(ctx, field) +func (ec *executionContext) _ProcedureType_focalDevice(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_focalDevice(ctx, field) if err != nil { return graphql.Null } @@ -130008,7 +130192,7 @@ func (ec *executionContext) _ProcedureType_note(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.FocalDevice, nil }) if err != nil { ec.Error(ctx, err) @@ -130017,37 +130201,38 @@ func (ec *executionContext) _ProcedureType_note(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ProcedureNoteUnion) + res := resTmp.([]*model.ProcedureFocalDevice) fc.Result = res - return ec.marshalOProcedureNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureNoteUnion(ctx, field.Selections, res) + return ec.marshalOProcedureFocalDevice2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_focalDevice(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcedureNoteUnion does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_ProcedureFocalDevice_extension(ctx, field) + case "id": + return ec.fieldContext_ProcedureFocalDevice_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ProcedureFocalDevice_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_ProcedureFocalDevice_resourceType(ctx, field) + case "action": + return ec.fieldContext_ProcedureFocalDevice_action(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureFocalDevice", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ProcedureType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ProcedureType_status(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_status(ctx, field) +func (ec *executionContext) _ProcedureType_id(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_id(ctx, field) if err != nil { return graphql.Null } @@ -130060,7 +130245,7 @@ func (ec *executionContext) _ProcedureType_status(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -130074,7 +130259,7 @@ func (ec *executionContext) _ProcedureType_status(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -130087,8 +130272,8 @@ func (ec *executionContext) fieldContext_ProcedureType_status(_ context.Context, return fc, nil } -func (ec *executionContext) _ProcedureType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_implicitRules(ctx, field) +func (ec *executionContext) _ProcedureType_occurrenceString(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_occurrenceString(ctx, field) if err != nil { return graphql.Null } @@ -130101,7 +130286,7 @@ func (ec *executionContext) _ProcedureType_implicitRules(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.OccurrenceString, nil }) if err != nil { ec.Error(ctx, err) @@ -130115,7 +130300,7 @@ func (ec *executionContext) _ProcedureType_implicitRules(ctx context.Context, fi return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_occurrenceString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -130128,8 +130313,8 @@ func (ec *executionContext) fieldContext_ProcedureType_implicitRules(_ context.C return fc, nil } -func (ec *executionContext) _ProcedureType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_contained(ctx, field) +func (ec *executionContext) _ProcedureType_recorded(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_recorded(ctx, field) if err != nil { return graphql.Null } @@ -130142,7 +130327,7 @@ func (ec *executionContext) _ProcedureType_contained(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Recorded, nil }) if err != nil { ec.Error(ctx, err) @@ -130151,19 +130336,19 @@ func (ec *executionContext) _ProcedureType_contained(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_recorded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -130190,11 +130375,14 @@ func (ec *executionContext) _ProcedureType_performer(ctx context.Context, field return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ProcedurePerformerUnion) + res := resTmp.(model.ProcedurePerformerUnion) fc.Result = res - return ec.marshalOProcedurePerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerUnion(ctx, field.Selections, res) + return ec.marshalNProcedurePerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ProcedureType_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -130221,8 +130409,8 @@ func (ec *executionContext) fieldContext_ProcedureType_performer(ctx context.Con return fc, nil } -func (ec *executionContext) _ProcedureType_instantiatesCanonical(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_instantiatesCanonical(ctx, field) +func (ec *executionContext) _ProcedureType_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_statusReason(ctx, field) if err != nil { return graphql.Null } @@ -130235,7 +130423,7 @@ func (ec *executionContext) _ProcedureType_instantiatesCanonical(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InstantiatesCanonical, nil + return obj.StatusReason, nil }) if err != nil { ec.Error(ctx, err) @@ -130244,26 +130432,38 @@ func (ec *executionContext) _ProcedureType_instantiatesCanonical(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_instantiatesCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_complication(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_complication(ctx, field) +func (ec *executionContext) _ProcedureType_followUp(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_followUp(ctx, field) if err != nil { return graphql.Null } @@ -130276,7 +130476,7 @@ func (ec *executionContext) _ProcedureType_complication(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Complication, nil + return obj.FollowUp, nil }) if err != nil { ec.Error(ctx, err) @@ -130285,12 +130485,12 @@ func (ec *executionContext) _ProcedureType_complication(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_complication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_followUp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -130298,23 +130498,25 @@ func (ec *executionContext) fieldContext_ProcedureType_complication(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_occurrenceDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_occurrenceDateTime(ctx, field) +func (ec *executionContext) _ProcedureType_complication(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_complication(ctx, field) if err != nil { return graphql.Null } @@ -130327,7 +130529,7 @@ func (ec *executionContext) _ProcedureType_occurrenceDateTime(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OccurrenceDateTime, nil + return obj.Complication, nil }) if err != nil { ec.Error(ctx, err) @@ -130336,26 +130538,36 @@ func (ec *executionContext) _ProcedureType_occurrenceDateTime(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_occurrenceDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_complication(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_identifier(ctx, field) +func (ec *executionContext) _ProcedureType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_extension(ctx, field) if err != nil { return graphql.Null } @@ -130368,7 +130580,7 @@ func (ec *executionContext) _ProcedureType_identifier(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -130377,12 +130589,12 @@ func (ec *executionContext) _ProcedureType_identifier(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, @@ -130390,33 +130602,129 @@ func (ec *executionContext) fieldContext_ProcedureType_identifier(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureType_instantiatesUri(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_instantiatesUri(ctx, field) +func (ec *executionContext) _ProcedureType_focus(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_focus(ctx, field) if err != nil { return graphql.Null } @@ -130429,35 +130737,49 @@ func (ec *executionContext) _ProcedureType_instantiatesUri(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InstantiatesURI, nil + return obj.Focus, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ProcedureFocusUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNProcedureFocusUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocusUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_instantiatesUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_focus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ProcedureFocusUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ProcedureType_focus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ProcedureType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_subject(ctx, field) +func (ec *executionContext) _ProcedureType_occurrencePeriod(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_occurrencePeriod(ctx, field) if err != nil { return graphql.Null } @@ -130470,7 +130792,7 @@ func (ec *executionContext) _ProcedureType_subject(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.OccurrencePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -130479,37 +130801,38 @@ func (ec *executionContext) _ProcedureType_subject(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ProcedureSubjectUnion) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOProcedureSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureSubjectUnion(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_occurrencePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcedureSubjectUnion does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ProcedureType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ProcedureType_focus(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureType_focus(ctx, field) +func (ec *executionContext) _ProcedureType_instantiatesCanonical(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_instantiatesCanonical(ctx, field) if err != nil { return graphql.Null } @@ -130522,7 +130845,7 @@ func (ec *executionContext) _ProcedureType_focus(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Focus, nil + return obj.InstantiatesCanonical, nil }) if err != nil { ec.Error(ctx, err) @@ -130531,32 +130854,21 @@ func (ec *executionContext) _ProcedureType_focus(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ProcedureFocusUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOProcedureFocusUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocusUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureType_focus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureType_instantiatesCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ProcedureType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcedureFocusUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ProcedureType_focus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -130678,120 +130990,120 @@ func (ec *executionContext) fieldContext_Quantity_extension(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -131043,42 +131355,42 @@ func (ec *executionContext) fieldContext_Query_organization(ctx context.Context, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) case "contained": return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) case "meta": return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) case "id": return ec.fieldContext_OrganizationType_id(ctx, field) case "qualification": return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, @@ -131136,46 +131448,46 @@ func (ec *executionContext) fieldContext_Query_group(ctx context.Context, field IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "member": - return ec.fieldContext_GroupType_member(ctx, field) + case "language": + return ec.fieldContext_GroupType_language(ctx, field) case "extension": return ec.fieldContext_GroupType_extension(ctx, field) - case "meta": - return ec.fieldContext_GroupType_meta(ctx, field) - case "contained": - return ec.fieldContext_GroupType_contained(ctx, field) - case "membership": - return ec.fieldContext_GroupType_membership(ctx, field) - case "resourceType": - return ec.fieldContext_GroupType_resourceType(ctx, field) - case "characteristic": - return ec.fieldContext_GroupType_characteristic(ctx, field) - case "quantity": - return ec.fieldContext_GroupType_quantity(ctx, field) - case "type": - return ec.fieldContext_GroupType_type(ctx, field) - case "active": - return ec.fieldContext_GroupType_active(ctx, field) - case "description": - return ec.fieldContext_GroupType_description(ctx, field) - case "code": - return ec.fieldContext_GroupType_code(ctx, field) + case "implicitRules": + return ec.fieldContext_GroupType_implicitRules(ctx, field) + case "identifier": + return ec.fieldContext_GroupType_identifier(ctx, field) + case "member": + return ec.fieldContext_GroupType_member(ctx, field) case "id": return ec.fieldContext_GroupType_id(ctx, field) - case "language": - return ec.fieldContext_GroupType_language(ctx, field) - case "modifierExtension": - return ec.fieldContext_GroupType_modifierExtension(ctx, field) + case "quantity": + return ec.fieldContext_GroupType_quantity(ctx, field) case "name": return ec.fieldContext_GroupType_name(ctx, field) - case "implicitRules": - return ec.fieldContext_GroupType_implicitRules(ctx, field) case "text": return ec.fieldContext_GroupType_text(ctx, field) + case "contained": + return ec.fieldContext_GroupType_contained(ctx, field) + case "code": + return ec.fieldContext_GroupType_code(ctx, field) + case "description": + return ec.fieldContext_GroupType_description(ctx, field) + case "modifierExtension": + return ec.fieldContext_GroupType_modifierExtension(ctx, field) + case "active": + return ec.fieldContext_GroupType_active(ctx, field) + case "resourceType": + return ec.fieldContext_GroupType_resourceType(ctx, field) + case "membership": + return ec.fieldContext_GroupType_membership(ctx, field) + case "type": + return ec.fieldContext_GroupType_type(ctx, field) + case "characteristic": + return ec.fieldContext_GroupType_characteristic(ctx, field) case "managingEntity": return ec.fieldContext_GroupType_managingEntity(ctx, field) - case "identifier": - return ec.fieldContext_GroupType_identifier(ctx, field) + case "meta": + return ec.fieldContext_GroupType_meta(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type GroupType", field.Name) }, @@ -131233,48 +131545,48 @@ func (ec *executionContext) fieldContext_Query_practitioner(ctx context.Context, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "meta": - return ec.fieldContext_PractitionerType_meta(ctx, field) - case "deceasedBoolean": - return ec.fieldContext_PractitionerType_deceasedBoolean(ctx, field) case "birthDate": return ec.fieldContext_PractitionerType_birthDate(ctx, field) case "id": return ec.fieldContext_PractitionerType_id(ctx, field) - case "extension": - return ec.fieldContext_PractitionerType_extension(ctx, field) - case "gender": - return ec.fieldContext_PractitionerType_gender(ctx, field) + case "language": + return ec.fieldContext_PractitionerType_language(ctx, field) case "qualification": return ec.fieldContext_PractitionerType_qualification(ctx, field) - case "contained": - return ec.fieldContext_PractitionerType_contained(ctx, field) - case "telecom": - return ec.fieldContext_PractitionerType_telecom(ctx, field) - case "identifier": - return ec.fieldContext_PractitionerType_identifier(ctx, field) case "address": return ec.fieldContext_PractitionerType_address(ctx, field) case "modifierExtension": return ec.fieldContext_PractitionerType_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_PractitionerType_resourceType(ctx, field) - case "implicitRules": - return ec.fieldContext_PractitionerType_implicitRules(ctx, field) - case "language": - return ec.fieldContext_PractitionerType_language(ctx, field) + case "active": + return ec.fieldContext_PractitionerType_active(ctx, field) + case "contained": + return ec.fieldContext_PractitionerType_contained(ctx, field) + case "gender": + return ec.fieldContext_PractitionerType_gender(ctx, field) case "name": return ec.fieldContext_PractitionerType_name(ctx, field) - case "photo": - return ec.fieldContext_PractitionerType_photo(ctx, field) case "text": return ec.fieldContext_PractitionerType_text(ctx, field) - case "active": - return ec.fieldContext_PractitionerType_active(ctx, field) - case "communication": - return ec.fieldContext_PractitionerType_communication(ctx, field) case "deceasedDateTime": return ec.fieldContext_PractitionerType_deceasedDateTime(ctx, field) + case "extension": + return ec.fieldContext_PractitionerType_extension(ctx, field) + case "meta": + return ec.fieldContext_PractitionerType_meta(ctx, field) + case "photo": + return ec.fieldContext_PractitionerType_photo(ctx, field) + case "telecom": + return ec.fieldContext_PractitionerType_telecom(ctx, field) + case "resourceType": + return ec.fieldContext_PractitionerType_resourceType(ctx, field) + case "communication": + return ec.fieldContext_PractitionerType_communication(ctx, field) + case "identifier": + return ec.fieldContext_PractitionerType_identifier(ctx, field) + case "deceasedBoolean": + return ec.fieldContext_PractitionerType_deceasedBoolean(ctx, field) + case "implicitRules": + return ec.fieldContext_PractitionerType_implicitRules(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type PractitionerType", field.Name) }, @@ -131332,46 +131644,46 @@ func (ec *executionContext) fieldContext_Query_practitionerRole(ctx context.Cont IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "availability": - return ec.fieldContext_PractitionerRoleType_availability(ctx, field) - case "identifier": - return ec.fieldContext_PractitionerRoleType_identifier(ctx, field) - case "practitioner": - return ec.fieldContext_PractitionerRoleType_practitioner(ctx, field) + case "communication": + return ec.fieldContext_PractitionerRoleType_communication(ctx, field) + case "active": + return ec.fieldContext_PractitionerRoleType_active(ctx, field) + case "id": + return ec.fieldContext_PractitionerRoleType_id(ctx, field) + case "organization": + return ec.fieldContext_PractitionerRoleType_organization(ctx, field) case "contained": return ec.fieldContext_PractitionerRoleType_contained(ctx, field) - case "language": - return ec.fieldContext_PractitionerRoleType_language(ctx, field) + case "extension": + return ec.fieldContext_PractitionerRoleType_extension(ctx, field) + case "period": + return ec.fieldContext_PractitionerRoleType_period(ctx, field) case "code": return ec.fieldContext_PractitionerRoleType_code(ctx, field) - case "implicitRules": - return ec.fieldContext_PractitionerRoleType_implicitRules(ctx, field) + case "modifierExtension": + return ec.fieldContext_PractitionerRoleType_modifierExtension(ctx, field) case "specialty": return ec.fieldContext_PractitionerRoleType_specialty(ctx, field) - case "id": - return ec.fieldContext_PractitionerRoleType_id(ctx, field) case "resourceType": return ec.fieldContext_PractitionerRoleType_resourceType(ctx, field) - case "extension": - return ec.fieldContext_PractitionerRoleType_extension(ctx, field) - case "organization": - return ec.fieldContext_PractitionerRoleType_organization(ctx, field) - case "modifierExtension": - return ec.fieldContext_PractitionerRoleType_modifierExtension(ctx, field) - case "communication": - return ec.fieldContext_PractitionerRoleType_communication(ctx, field) - case "active": - return ec.fieldContext_PractitionerRoleType_active(ctx, field) - case "characteristic": - return ec.fieldContext_PractitionerRoleType_characteristic(ctx, field) - case "contact": - return ec.fieldContext_PractitionerRoleType_contact(ctx, field) + case "identifier": + return ec.fieldContext_PractitionerRoleType_identifier(ctx, field) + case "implicitRules": + return ec.fieldContext_PractitionerRoleType_implicitRules(ctx, field) + case "language": + return ec.fieldContext_PractitionerRoleType_language(ctx, field) case "meta": return ec.fieldContext_PractitionerRoleType_meta(ctx, field) - case "period": - return ec.fieldContext_PractitionerRoleType_period(ctx, field) + case "contact": + return ec.fieldContext_PractitionerRoleType_contact(ctx, field) case "text": return ec.fieldContext_PractitionerRoleType_text(ctx, field) + case "practitioner": + return ec.fieldContext_PractitionerRoleType_practitioner(ctx, field) + case "availability": + return ec.fieldContext_PractitionerRoleType_availability(ctx, field) + case "characteristic": + return ec.fieldContext_PractitionerRoleType_characteristic(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type PractitionerRoleType", field.Name) }, @@ -131429,86 +131741,86 @@ func (ec *executionContext) fieldContext_Query_researchStudy(ctx context.Context IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "language": + return ec.fieldContext_ResearchStudyType_language(ctx, field) case "region": return ec.fieldContext_ResearchStudyType_region(ctx, field) - case "title": - return ec.fieldContext_ResearchStudyType_title(ctx, field) - case "condition": - return ec.fieldContext_ResearchStudyType_condition(ctx, field) - case "contained": - return ec.fieldContext_ResearchStudyType_contained(ctx, field) - case "period": - return ec.fieldContext_ResearchStudyType_period(ctx, field) - case "descriptionSummary": - return ec.fieldContext_ResearchStudyType_descriptionSummary(ctx, field) + case "identifier": + return ec.fieldContext_ResearchStudyType_identifier(ctx, field) + case "note": + return ec.fieldContext_ResearchStudyType_note(ctx, field) + case "focus": + return ec.fieldContext_ResearchStudyType_focus(ctx, field) case "primaryPurposeType": return ec.fieldContext_ResearchStudyType_primaryPurposeType(ctx, field) - case "comparisonGroup": - return ec.fieldContext_ResearchStudyType_comparisonGroup(ctx, field) + case "progressStatus": + return ec.fieldContext_ResearchStudyType_progressStatus(ctx, field) case "whyStopped": return ec.fieldContext_ResearchStudyType_whyStopped(ctx, field) - case "date": - return ec.fieldContext_ResearchStudyType_date(ctx, field) - case "recruitment": - return ec.fieldContext_ResearchStudyType_recruitment(ctx, field) - case "classifier": - return ec.fieldContext_ResearchStudyType_classifier(ctx, field) - case "phase": - return ec.fieldContext_ResearchStudyType_phase(ctx, field) - case "language": - return ec.fieldContext_ResearchStudyType_language(ctx, field) - case "meta": - return ec.fieldContext_ResearchStudyType_meta(ctx, field) - case "name": - return ec.fieldContext_ResearchStudyType_name(ctx, field) - case "text": - return ec.fieldContext_ResearchStudyType_text(ctx, field) case "result": return ec.fieldContext_ResearchStudyType_result(ctx, field) - case "progressStatus": - return ec.fieldContext_ResearchStudyType_progressStatus(ctx, field) - case "modifierExtension": - return ec.fieldContext_ResearchStudyType_modifierExtension(ctx, field) + case "version": + return ec.fieldContext_ResearchStudyType_version(ctx, field) + case "url": + return ec.fieldContext_ResearchStudyType_url(ctx, field) + case "relatedArtifact": + return ec.fieldContext_ResearchStudyType_relatedArtifact(ctx, field) + case "name": + return ec.fieldContext_ResearchStudyType_name(ctx, field) + case "studyDesign": + return ec.fieldContext_ResearchStudyType_studyDesign(ctx, field) + case "objective": + return ec.fieldContext_ResearchStudyType_objective(ctx, field) + case "recruitment": + return ec.fieldContext_ResearchStudyType_recruitment(ctx, field) + case "title": + return ec.fieldContext_ResearchStudyType_title(ctx, field) case "associatedParty": return ec.fieldContext_ResearchStudyType_associatedParty(ctx, field) + case "id": + return ec.fieldContext_ResearchStudyType_id(ctx, field) + case "contained": + return ec.fieldContext_ResearchStudyType_contained(ctx, field) case "description": return ec.fieldContext_ResearchStudyType_description(ctx, field) - case "site": - return ec.fieldContext_ResearchStudyType_site(ctx, field) - case "url": - return ec.fieldContext_ResearchStudyType_url(ctx, field) + case "comparisonGroup": + return ec.fieldContext_ResearchStudyType_comparisonGroup(ctx, field) case "implicitRules": return ec.fieldContext_ResearchStudyType_implicitRules(ctx, field) - case "version": - return ec.fieldContext_ResearchStudyType_version(ctx, field) - case "outcomeMeasure": - return ec.fieldContext_ResearchStudyType_outcomeMeasure(ctx, field) - case "id": - return ec.fieldContext_ResearchStudyType_id(ctx, field) - case "identifier": - return ec.fieldContext_ResearchStudyType_identifier(ctx, field) - case "objective": - return ec.fieldContext_ResearchStudyType_objective(ctx, field) - case "resourceType": - return ec.fieldContext_ResearchStudyType_resourceType(ctx, field) - case "keyword": - return ec.fieldContext_ResearchStudyType_keyword(ctx, field) - case "note": - return ec.fieldContext_ResearchStudyType_note(ctx, field) - case "status": - return ec.fieldContext_ResearchStudyType_status(ctx, field) + case "partOf": + return ec.fieldContext_ResearchStudyType_partOf(ctx, field) + case "classifier": + return ec.fieldContext_ResearchStudyType_classifier(ctx, field) case "label": return ec.fieldContext_ResearchStudyType_label(ctx, field) - case "relatedArtifact": - return ec.fieldContext_ResearchStudyType_relatedArtifact(ctx, field) - case "studyDesign": - return ec.fieldContext_ResearchStudyType_studyDesign(ctx, field) + case "keyword": + return ec.fieldContext_ResearchStudyType_keyword(ctx, field) + case "modifierExtension": + return ec.fieldContext_ResearchStudyType_modifierExtension(ctx, field) + case "period": + return ec.fieldContext_ResearchStudyType_period(ctx, field) + case "resourceType": + return ec.fieldContext_ResearchStudyType_resourceType(ctx, field) + case "date": + return ec.fieldContext_ResearchStudyType_date(ctx, field) + case "descriptionSummary": + return ec.fieldContext_ResearchStudyType_descriptionSummary(ctx, field) case "extension": return ec.fieldContext_ResearchStudyType_extension(ctx, field) - case "focus": - return ec.fieldContext_ResearchStudyType_focus(ctx, field) - case "partOf": - return ec.fieldContext_ResearchStudyType_partOf(ctx, field) + case "text": + return ec.fieldContext_ResearchStudyType_text(ctx, field) + case "meta": + return ec.fieldContext_ResearchStudyType_meta(ctx, field) + case "phase": + return ec.fieldContext_ResearchStudyType_phase(ctx, field) + case "condition": + return ec.fieldContext_ResearchStudyType_condition(ctx, field) + case "status": + return ec.fieldContext_ResearchStudyType_status(ctx, field) + case "outcomeMeasure": + return ec.fieldContext_ResearchStudyType_outcomeMeasure(ctx, field) + case "site": + return ec.fieldContext_ResearchStudyType_site(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ResearchStudyType", field.Name) }, @@ -131566,60 +131878,60 @@ func (ec *executionContext) fieldContext_Query_patient(ctx context.Context, fiel IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "modifierExtension": - return ec.fieldContext_PatientType_modifierExtension(ctx, field) + case "managingOrganization": + return ec.fieldContext_PatientType_managingOrganization(ctx, field) + case "contact": + return ec.fieldContext_PatientType_contact(ctx, field) case "gender": return ec.fieldContext_PatientType_gender(ctx, field) - case "extension": - return ec.fieldContext_PatientType_extension(ctx, field) - case "deceasedBoolean": - return ec.fieldContext_PatientType_deceasedBoolean(ctx, field) - case "address": - return ec.fieldContext_PatientType_address(ctx, field) case "link": return ec.fieldContext_PatientType_link(ctx, field) - case "identifier": - return ec.fieldContext_PatientType_identifier(ctx, field) - case "generalPractitioner": - return ec.fieldContext_PatientType_generalPractitioner(ctx, field) case "implicitRules": return ec.fieldContext_PatientType_implicitRules(ctx, field) - case "meta": - return ec.fieldContext_PatientType_meta(ctx, field) case "multipleBirthInteger": return ec.fieldContext_PatientType_multipleBirthInteger(ctx, field) - case "multipleBirthBoolean": - return ec.fieldContext_PatientType_multipleBirthBoolean(ctx, field) - case "text": - return ec.fieldContext_PatientType_text(ctx, field) - case "managingOrganization": - return ec.fieldContext_PatientType_managingOrganization(ctx, field) - case "active": - return ec.fieldContext_PatientType_active(ctx, field) - case "birthDate": - return ec.fieldContext_PatientType_birthDate(ctx, field) - case "deceasedDateTime": - return ec.fieldContext_PatientType_deceasedDateTime(ctx, field) case "id": return ec.fieldContext_PatientType_id(ctx, field) - case "name": - return ec.fieldContext_PatientType_name(ctx, field) - case "photo": - return ec.fieldContext_PatientType_photo(ctx, field) + case "meta": + return ec.fieldContext_PatientType_meta(ctx, field) case "contained": return ec.fieldContext_PatientType_contained(ctx, field) - case "contact": - return ec.fieldContext_PatientType_contact(ctx, field) - case "maritalStatus": - return ec.fieldContext_PatientType_maritalStatus(ctx, field) case "communication": return ec.fieldContext_PatientType_communication(ctx, field) - case "telecom": - return ec.fieldContext_PatientType_telecom(ctx, field) - case "language": - return ec.fieldContext_PatientType_language(ctx, field) + case "birthDate": + return ec.fieldContext_PatientType_birthDate(ctx, field) + case "identifier": + return ec.fieldContext_PatientType_identifier(ctx, field) case "resourceType": return ec.fieldContext_PatientType_resourceType(ctx, field) + case "generalPractitioner": + return ec.fieldContext_PatientType_generalPractitioner(ctx, field) + case "language": + return ec.fieldContext_PatientType_language(ctx, field) + case "deceasedDateTime": + return ec.fieldContext_PatientType_deceasedDateTime(ctx, field) + case "telecom": + return ec.fieldContext_PatientType_telecom(ctx, field) + case "photo": + return ec.fieldContext_PatientType_photo(ctx, field) + case "text": + return ec.fieldContext_PatientType_text(ctx, field) + case "multipleBirthBoolean": + return ec.fieldContext_PatientType_multipleBirthBoolean(ctx, field) + case "address": + return ec.fieldContext_PatientType_address(ctx, field) + case "maritalStatus": + return ec.fieldContext_PatientType_maritalStatus(ctx, field) + case "modifierExtension": + return ec.fieldContext_PatientType_modifierExtension(ctx, field) + case "extension": + return ec.fieldContext_PatientType_extension(ctx, field) + case "name": + return ec.fieldContext_PatientType_name(ctx, field) + case "active": + return ec.fieldContext_PatientType_active(ctx, field) + case "deceasedBoolean": + return ec.fieldContext_PatientType_deceasedBoolean(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type PatientType", field.Name) }, @@ -131677,40 +131989,40 @@ func (ec *executionContext) fieldContext_Query_researchSubject(ctx context.Conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "subject": - return ec.fieldContext_ResearchSubjectType_subject(ctx, field) - case "text": - return ec.fieldContext_ResearchSubjectType_text(ctx, field) - case "resourceType": - return ec.fieldContext_ResearchSubjectType_resourceType(ctx, field) + case "study": + return ec.fieldContext_ResearchSubjectType_study(ctx, field) case "implicitRules": return ec.fieldContext_ResearchSubjectType_implicitRules(ctx, field) - case "meta": - return ec.fieldContext_ResearchSubjectType_meta(ctx, field) case "status": return ec.fieldContext_ResearchSubjectType_status(ctx, field) - case "id": - return ec.fieldContext_ResearchSubjectType_id(ctx, field) - case "contained": - return ec.fieldContext_ResearchSubjectType_contained(ctx, field) - case "identifier": - return ec.fieldContext_ResearchSubjectType_identifier(ctx, field) - case "progress": - return ec.fieldContext_ResearchSubjectType_progress(ctx, field) - case "actualComparisonGroup": - return ec.fieldContext_ResearchSubjectType_actualComparisonGroup(ctx, field) - case "language": - return ec.fieldContext_ResearchSubjectType_language(ctx, field) + case "meta": + return ec.fieldContext_ResearchSubjectType_meta(ctx, field) case "modifierExtension": return ec.fieldContext_ResearchSubjectType_modifierExtension(ctx, field) - case "study": - return ec.fieldContext_ResearchSubjectType_study(ctx, field) + case "resourceType": + return ec.fieldContext_ResearchSubjectType_resourceType(ctx, field) + case "language": + return ec.fieldContext_ResearchSubjectType_language(ctx, field) + case "text": + return ec.fieldContext_ResearchSubjectType_text(ctx, field) + case "identifier": + return ec.fieldContext_ResearchSubjectType_identifier(ctx, field) + case "contained": + return ec.fieldContext_ResearchSubjectType_contained(ctx, field) case "extension": return ec.fieldContext_ResearchSubjectType_extension(ctx, field) - case "period": - return ec.fieldContext_ResearchSubjectType_period(ctx, field) + case "actualComparisonGroup": + return ec.fieldContext_ResearchSubjectType_actualComparisonGroup(ctx, field) case "assignedComparisonGroup": return ec.fieldContext_ResearchSubjectType_assignedComparisonGroup(ctx, field) + case "progress": + return ec.fieldContext_ResearchSubjectType_progress(ctx, field) + case "period": + return ec.fieldContext_ResearchSubjectType_period(ctx, field) + case "subject": + return ec.fieldContext_ResearchSubjectType_subject(ctx, field) + case "id": + return ec.fieldContext_ResearchSubjectType_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ResearchSubjectType", field.Name) }, @@ -131768,42 +132080,42 @@ func (ec *executionContext) fieldContext_Query_substance(ctx context.Context, fi IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_SubstanceType_id(ctx, field) - case "language": - return ec.fieldContext_SubstanceType_language(ctx, field) - case "ingredient": - return ec.fieldContext_SubstanceType_ingredient(ctx, field) - case "category": - return ec.fieldContext_SubstanceType_category(ctx, field) + case "status": + return ec.fieldContext_SubstanceType_status(ctx, field) + case "quantity": + return ec.fieldContext_SubstanceType_quantity(ctx, field) + case "text": + return ec.fieldContext_SubstanceType_text(ctx, field) case "identifier": return ec.fieldContext_SubstanceType_identifier(ctx, field) - case "contained": - return ec.fieldContext_SubstanceType_contained(ctx, field) + case "language": + return ec.fieldContext_SubstanceType_language(ctx, field) + case "implicitRules": + return ec.fieldContext_SubstanceType_implicitRules(ctx, field) case "resourceType": return ec.fieldContext_SubstanceType_resourceType(ctx, field) case "instance": return ec.fieldContext_SubstanceType_instance(ctx, field) - case "implicitRules": - return ec.fieldContext_SubstanceType_implicitRules(ctx, field) case "modifierExtension": return ec.fieldContext_SubstanceType_modifierExtension(ctx, field) + case "category": + return ec.fieldContext_SubstanceType_category(ctx, field) case "expiry": return ec.fieldContext_SubstanceType_expiry(ctx, field) - case "description": - return ec.fieldContext_SubstanceType_description(ctx, field) - case "status": - return ec.fieldContext_SubstanceType_status(ctx, field) + case "ingredient": + return ec.fieldContext_SubstanceType_ingredient(ctx, field) case "meta": return ec.fieldContext_SubstanceType_meta(ctx, field) case "code": return ec.fieldContext_SubstanceType_code(ctx, field) + case "description": + return ec.fieldContext_SubstanceType_description(ctx, field) case "extension": return ec.fieldContext_SubstanceType_extension(ctx, field) - case "quantity": - return ec.fieldContext_SubstanceType_quantity(ctx, field) - case "text": - return ec.fieldContext_SubstanceType_text(ctx, field) + case "contained": + return ec.fieldContext_SubstanceType_contained(ctx, field) + case "id": + return ec.fieldContext_SubstanceType_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type SubstanceType", field.Name) }, @@ -131861,62 +132173,62 @@ func (ec *executionContext) fieldContext_Query_substanceDefinition(ctx context.C IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_SubstanceDefinitionType_text(ctx, field) - case "moiety": - return ec.fieldContext_SubstanceDefinitionType_moiety(ctx, field) - case "implicitRules": - return ec.fieldContext_SubstanceDefinitionType_implicitRules(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionType_modifierExtension(ctx, field) - case "characterization": - return ec.fieldContext_SubstanceDefinitionType_characterization(ctx, field) - case "supplier": - return ec.fieldContext_SubstanceDefinitionType_supplier(ctx, field) - case "note": - return ec.fieldContext_SubstanceDefinitionType_note(ctx, field) - case "description": - return ec.fieldContext_SubstanceDefinitionType_description(ctx, field) - case "structure": - return ec.fieldContext_SubstanceDefinitionType_structure(ctx, field) - case "id": - return ec.fieldContext_SubstanceDefinitionType_id(ctx, field) - case "language": - return ec.fieldContext_SubstanceDefinitionType_language(ctx, field) - case "contained": - return ec.fieldContext_SubstanceDefinitionType_contained(ctx, field) - case "domain": - return ec.fieldContext_SubstanceDefinitionType_domain(ctx, field) - case "extension": - return ec.fieldContext_SubstanceDefinitionType_extension(ctx, field) - case "identifier": - return ec.fieldContext_SubstanceDefinitionType_identifier(ctx, field) case "version": return ec.fieldContext_SubstanceDefinitionType_version(ctx, field) - case "relationship": - return ec.fieldContext_SubstanceDefinitionType_relationship(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionType_extension(ctx, field) case "manufacturer": return ec.fieldContext_SubstanceDefinitionType_manufacturer(ctx, field) - case "grade": - return ec.fieldContext_SubstanceDefinitionType_grade(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionType_resourceType(ctx, field) - case "name": - return ec.fieldContext_SubstanceDefinitionType_name(ctx, field) - case "status": - return ec.fieldContext_SubstanceDefinitionType_status(ctx, field) + case "id": + return ec.fieldContext_SubstanceDefinitionType_id(ctx, field) case "meta": return ec.fieldContext_SubstanceDefinitionType_meta(ctx, field) - case "molecularWeight": - return ec.fieldContext_SubstanceDefinitionType_molecularWeight(ctx, field) - case "sourceMaterial": - return ec.fieldContext_SubstanceDefinitionType_sourceMaterial(ctx, field) case "classification": return ec.fieldContext_SubstanceDefinitionType_classification(ctx, field) case "code": return ec.fieldContext_SubstanceDefinitionType_code(ctx, field) + case "characterization": + return ec.fieldContext_SubstanceDefinitionType_characterization(ctx, field) + case "supplier": + return ec.fieldContext_SubstanceDefinitionType_supplier(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionType_resourceType(ctx, field) + case "sourceMaterial": + return ec.fieldContext_SubstanceDefinitionType_sourceMaterial(ctx, field) + case "contained": + return ec.fieldContext_SubstanceDefinitionType_contained(ctx, field) + case "status": + return ec.fieldContext_SubstanceDefinitionType_status(ctx, field) case "property": return ec.fieldContext_SubstanceDefinitionType_property(ctx, field) + case "language": + return ec.fieldContext_SubstanceDefinitionType_language(ctx, field) + case "name": + return ec.fieldContext_SubstanceDefinitionType_name(ctx, field) + case "structure": + return ec.fieldContext_SubstanceDefinitionType_structure(ctx, field) + case "description": + return ec.fieldContext_SubstanceDefinitionType_description(ctx, field) + case "text": + return ec.fieldContext_SubstanceDefinitionType_text(ctx, field) + case "molecularWeight": + return ec.fieldContext_SubstanceDefinitionType_molecularWeight(ctx, field) + case "implicitRules": + return ec.fieldContext_SubstanceDefinitionType_implicitRules(ctx, field) + case "identifier": + return ec.fieldContext_SubstanceDefinitionType_identifier(ctx, field) + case "relationship": + return ec.fieldContext_SubstanceDefinitionType_relationship(ctx, field) + case "domain": + return ec.fieldContext_SubstanceDefinitionType_domain(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionType_modifierExtension(ctx, field) + case "moiety": + return ec.fieldContext_SubstanceDefinitionType_moiety(ctx, field) + case "note": + return ec.fieldContext_SubstanceDefinitionType_note(ctx, field) + case "grade": + return ec.fieldContext_SubstanceDefinitionType_grade(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionType", field.Name) }, @@ -131974,54 +132286,54 @@ func (ec *executionContext) fieldContext_Query_specimen(ctx context.Context, fie IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "identifier": - return ec.fieldContext_SpecimenType_identifier(ctx, field) - case "text": - return ec.fieldContext_SpecimenType_text(ctx, field) - case "contained": - return ec.fieldContext_SpecimenType_contained(ctx, field) + case "resourceType": + return ec.fieldContext_SpecimenType_resourceType(ctx, field) + case "subject": + return ec.fieldContext_SpecimenType_subject(ctx, field) case "combined": return ec.fieldContext_SpecimenType_combined(ctx, field) - case "role": - return ec.fieldContext_SpecimenType_role(ctx, field) - case "extension": - return ec.fieldContext_SpecimenType_extension(ctx, field) + case "accessionIdentifier": + return ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) + case "modifierExtension": + return ec.fieldContext_SpecimenType_modifierExtension(ctx, field) case "type": return ec.fieldContext_SpecimenType_type(ctx, field) - case "resourceType": - return ec.fieldContext_SpecimenType_resourceType(ctx, field) - case "id": - return ec.fieldContext_SpecimenType_id(ctx, field) + case "text": + return ec.fieldContext_SpecimenType_text(ctx, field) + case "container": + return ec.fieldContext_SpecimenType_container(ctx, field) + case "implicitRules": + return ec.fieldContext_SpecimenType_implicitRules(ctx, field) case "parent": return ec.fieldContext_SpecimenType_parent(ctx, field) - case "modifierExtension": - return ec.fieldContext_SpecimenType_modifierExtension(ctx, field) - case "status": - return ec.fieldContext_SpecimenType_status(ctx, field) - case "condition": - return ec.fieldContext_SpecimenType_condition(ctx, field) case "meta": return ec.fieldContext_SpecimenType_meta(ctx, field) - case "receivedTime": - return ec.fieldContext_SpecimenType_receivedTime(ctx, field) + case "condition": + return ec.fieldContext_SpecimenType_condition(ctx, field) case "feature": return ec.fieldContext_SpecimenType_feature(ctx, field) - case "collection": - return ec.fieldContext_SpecimenType_collection(ctx, field) - case "subject": - return ec.fieldContext_SpecimenType_subject(ctx, field) - case "accessionIdentifier": - return ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) - case "container": - return ec.fieldContext_SpecimenType_container(ctx, field) - case "language": - return ec.fieldContext_SpecimenType_language(ctx, field) + case "contained": + return ec.fieldContext_SpecimenType_contained(ctx, field) + case "id": + return ec.fieldContext_SpecimenType_id(ctx, field) case "processing": return ec.fieldContext_SpecimenType_processing(ctx, field) - case "implicitRules": - return ec.fieldContext_SpecimenType_implicitRules(ctx, field) + case "extension": + return ec.fieldContext_SpecimenType_extension(ctx, field) + case "identifier": + return ec.fieldContext_SpecimenType_identifier(ctx, field) + case "collection": + return ec.fieldContext_SpecimenType_collection(ctx, field) + case "receivedTime": + return ec.fieldContext_SpecimenType_receivedTime(ctx, field) + case "role": + return ec.fieldContext_SpecimenType_role(ctx, field) + case "language": + return ec.fieldContext_SpecimenType_language(ctx, field) case "note": return ec.fieldContext_SpecimenType_note(ctx, field) + case "status": + return ec.fieldContext_SpecimenType_status(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type SpecimenType", field.Name) }, @@ -132079,102 +132391,102 @@ func (ec *executionContext) fieldContext_Query_observation(ctx context.Context, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "effectivePeriod": - return ec.fieldContext_ObservationType_effectivePeriod(ctx, field) - case "derivedFrom": - return ec.fieldContext_ObservationType_derivedFrom(ctx, field) + case "bodyStructure": + return ec.fieldContext_ObservationType_bodyStructure(ctx, field) + case "dataAbsentReason": + return ec.fieldContext_ObservationType_dataAbsentReason(ctx, field) case "effectiveInstant": return ec.fieldContext_ObservationType_effectiveInstant(ctx, field) - case "valuePeriod": - return ec.fieldContext_ObservationType_valuePeriod(ctx, field) - case "instantiatesCanonical": - return ec.fieldContext_ObservationType_instantiatesCanonical(ctx, field) - case "referenceRange": - return ec.fieldContext_ObservationType_referenceRange(ctx, field) - case "code": - return ec.fieldContext_ObservationType_code(ctx, field) - case "category": - return ec.fieldContext_ObservationType_category(ctx, field) - case "valueBoolean": - return ec.fieldContext_ObservationType_valueBoolean(ctx, field) - case "performer": - return ec.fieldContext_ObservationType_performer(ctx, field) - case "bodySite": - return ec.fieldContext_ObservationType_bodySite(ctx, field) - case "text": - return ec.fieldContext_ObservationType_text(ctx, field) - case "valueQuantity": - return ec.fieldContext_ObservationType_valueQuantity(ctx, field) - case "valueString": - return ec.fieldContext_ObservationType_valueString(ctx, field) - case "id": - return ec.fieldContext_ObservationType_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ObservationType_modifierExtension(ctx, field) - case "contained": - return ec.fieldContext_ObservationType_contained(ctx, field) - case "valueAttachment": - return ec.fieldContext_ObservationType_valueAttachment(ctx, field) - case "issued": - return ec.fieldContext_ObservationType_issued(ctx, field) - case "implicitRules": - return ec.fieldContext_ObservationType_implicitRules(ctx, field) + case "effectivePeriod": + return ec.fieldContext_ObservationType_effectivePeriod(ctx, field) + case "identifier": + return ec.fieldContext_ObservationType_identifier(ctx, field) case "meta": return ec.fieldContext_ObservationType_meta(ctx, field) + case "issued": + return ec.fieldContext_ObservationType_issued(ctx, field) case "method": return ec.fieldContext_ObservationType_method(ctx, field) - case "bodyStructure": - return ec.fieldContext_ObservationType_bodyStructure(ctx, field) - case "effectiveDateTime": - return ec.fieldContext_ObservationType_effectiveDateTime(ctx, field) - case "valueRatio": - return ec.fieldContext_ObservationType_valueRatio(ctx, field) - case "interpretation": - return ec.fieldContext_ObservationType_interpretation(ctx, field) - case "valueDateTime": - return ec.fieldContext_ObservationType_valueDateTime(ctx, field) case "valueTime": return ec.fieldContext_ObservationType_valueTime(ctx, field) - case "dataAbsentReason": - return ec.fieldContext_ObservationType_dataAbsentReason(ctx, field) - case "resourceType": - return ec.fieldContext_ObservationType_resourceType(ctx, field) + case "contained": + return ec.fieldContext_ObservationType_contained(ctx, field) + case "valueInteger": + return ec.fieldContext_ObservationType_valueInteger(ctx, field) + case "referenceRange": + return ec.fieldContext_ObservationType_referenceRange(ctx, field) case "note": return ec.fieldContext_ObservationType_note(ctx, field) - case "basedOn": - return ec.fieldContext_ObservationType_basedOn(ctx, field) - case "focus": - return ec.fieldContext_ObservationType_focus(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_ObservationType_valueCodeableConcept(ctx, field) + case "text": + return ec.fieldContext_ObservationType_text(ctx, field) + case "resourceType": + return ec.fieldContext_ObservationType_resourceType(ctx, field) + case "valueDateTime": + return ec.fieldContext_ObservationType_valueDateTime(ctx, field) + case "valueString": + return ec.fieldContext_ObservationType_valueString(ctx, field) + case "valueQuantity": + return ec.fieldContext_ObservationType_valueQuantity(ctx, field) + case "effectiveDateTime": + return ec.fieldContext_ObservationType_effectiveDateTime(ctx, field) case "hasMember": return ec.fieldContext_ObservationType_hasMember(ctx, field) - case "valueInteger": - return ec.fieldContext_ObservationType_valueInteger(ctx, field) - case "language": - return ec.fieldContext_ObservationType_language(ctx, field) - case "identifier": - return ec.fieldContext_ObservationType_identifier(ctx, field) + case "instantiatesCanonical": + return ec.fieldContext_ObservationType_instantiatesCanonical(ctx, field) + case "focus": + return ec.fieldContext_ObservationType_focus(ctx, field) + case "performer": + return ec.fieldContext_ObservationType_performer(ctx, field) case "valueSampledData": return ec.fieldContext_ObservationType_valueSampledData(ctx, field) - case "subject": - return ec.fieldContext_ObservationType_subject(ctx, field) - case "extension": - return ec.fieldContext_ObservationType_extension(ctx, field) - case "triggeredBy": - return ec.fieldContext_ObservationType_triggeredBy(ctx, field) - case "specimen": - return ec.fieldContext_ObservationType_specimen(ctx, field) + case "implicitRules": + return ec.fieldContext_ObservationType_implicitRules(ctx, field) + case "language": + return ec.fieldContext_ObservationType_language(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_ObservationType_valueCodeableConcept(ctx, field) + case "code": + return ec.fieldContext_ObservationType_code(ctx, field) case "partOf": return ec.fieldContext_ObservationType_partOf(ctx, field) + case "status": + return ec.fieldContext_ObservationType_status(ctx, field) + case "category": + return ec.fieldContext_ObservationType_category(ctx, field) + case "triggeredBy": + return ec.fieldContext_ObservationType_triggeredBy(ctx, field) + case "subject": + return ec.fieldContext_ObservationType_subject(ctx, field) + case "derivedFrom": + return ec.fieldContext_ObservationType_derivedFrom(ctx, field) + case "modifierExtension": + return ec.fieldContext_ObservationType_modifierExtension(ctx, field) + case "bodySite": + return ec.fieldContext_ObservationType_bodySite(ctx, field) + case "valueRatio": + return ec.fieldContext_ObservationType_valueRatio(ctx, field) + case "basedOn": + return ec.fieldContext_ObservationType_basedOn(ctx, field) case "component": return ec.fieldContext_ObservationType_component(ctx, field) - case "effectiveTiming": - return ec.fieldContext_ObservationType_effectiveTiming(ctx, field) + case "valueAttachment": + return ec.fieldContext_ObservationType_valueAttachment(ctx, field) case "valueRange": return ec.fieldContext_ObservationType_valueRange(ctx, field) - case "status": - return ec.fieldContext_ObservationType_status(ctx, field) + case "valuePeriod": + return ec.fieldContext_ObservationType_valuePeriod(ctx, field) + case "specimen": + return ec.fieldContext_ObservationType_specimen(ctx, field) + case "effectiveTiming": + return ec.fieldContext_ObservationType_effectiveTiming(ctx, field) + case "id": + return ec.fieldContext_ObservationType_id(ctx, field) + case "interpretation": + return ec.fieldContext_ObservationType_interpretation(ctx, field) + case "valueBoolean": + return ec.fieldContext_ObservationType_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_ObservationType_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ObservationType", field.Name) }, @@ -132232,64 +132544,64 @@ func (ec *executionContext) fieldContext_Query_diagnosticReport(ctx context.Cont IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "result": - return ec.fieldContext_DiagnosticReportType_result(ctx, field) - case "implicitRules": - return ec.fieldContext_DiagnosticReportType_implicitRules(ctx, field) - case "language": - return ec.fieldContext_DiagnosticReportType_language(ctx, field) - case "performer": - return ec.fieldContext_DiagnosticReportType_performer(ctx, field) - case "presentedForm": - return ec.fieldContext_DiagnosticReportType_presentedForm(ctx, field) - case "text": - return ec.fieldContext_DiagnosticReportType_text(ctx, field) - case "subject": - return ec.fieldContext_DiagnosticReportType_subject(ctx, field) + case "supportingInfo": + return ec.fieldContext_DiagnosticReportType_supportingInfo(ctx, field) case "specimen": return ec.fieldContext_DiagnosticReportType_specimen(ctx, field) - case "identifier": - return ec.fieldContext_DiagnosticReportType_identifier(ctx, field) - case "code": - return ec.fieldContext_DiagnosticReportType_code(ctx, field) - case "effectiveDateTime": - return ec.fieldContext_DiagnosticReportType_effectiveDateTime(ctx, field) - case "media": - return ec.fieldContext_DiagnosticReportType_media(ctx, field) - case "effectivePeriod": - return ec.fieldContext_DiagnosticReportType_effectivePeriod(ctx, field) - case "study": - return ec.fieldContext_DiagnosticReportType_study(ctx, field) - case "resourceType": - return ec.fieldContext_DiagnosticReportType_resourceType(ctx, field) - case "meta": - return ec.fieldContext_DiagnosticReportType_meta(ctx, field) case "contained": return ec.fieldContext_DiagnosticReportType_contained(ctx, field) + case "language": + return ec.fieldContext_DiagnosticReportType_language(ctx, field) + case "meta": + return ec.fieldContext_DiagnosticReportType_meta(ctx, field) + case "resultsInterpreter": + return ec.fieldContext_DiagnosticReportType_resultsInterpreter(ctx, field) case "id": return ec.fieldContext_DiagnosticReportType_id(ctx, field) + case "basedOn": + return ec.fieldContext_DiagnosticReportType_basedOn(ctx, field) case "note": return ec.fieldContext_DiagnosticReportType_note(ctx, field) case "modifierExtension": return ec.fieldContext_DiagnosticReportType_modifierExtension(ctx, field) - case "basedOn": - return ec.fieldContext_DiagnosticReportType_basedOn(ctx, field) - case "conclusionCode": - return ec.fieldContext_DiagnosticReportType_conclusionCode(ctx, field) - case "supportingInfo": - return ec.fieldContext_DiagnosticReportType_supportingInfo(ctx, field) - case "conclusion": - return ec.fieldContext_DiagnosticReportType_conclusion(ctx, field) - case "status": - return ec.fieldContext_DiagnosticReportType_status(ctx, field) - case "extension": - return ec.fieldContext_DiagnosticReportType_extension(ctx, field) + case "effectiveDateTime": + return ec.fieldContext_DiagnosticReportType_effectiveDateTime(ctx, field) case "category": return ec.fieldContext_DiagnosticReportType_category(ctx, field) + case "identifier": + return ec.fieldContext_DiagnosticReportType_identifier(ctx, field) + case "effectivePeriod": + return ec.fieldContext_DiagnosticReportType_effectivePeriod(ctx, field) + case "resourceType": + return ec.fieldContext_DiagnosticReportType_resourceType(ctx, field) + case "code": + return ec.fieldContext_DiagnosticReportType_code(ctx, field) + case "extension": + return ec.fieldContext_DiagnosticReportType_extension(ctx, field) + case "presentedForm": + return ec.fieldContext_DiagnosticReportType_presentedForm(ctx, field) + case "subject": + return ec.fieldContext_DiagnosticReportType_subject(ctx, field) + case "study": + return ec.fieldContext_DiagnosticReportType_study(ctx, field) + case "media": + return ec.fieldContext_DiagnosticReportType_media(ctx, field) + case "text": + return ec.fieldContext_DiagnosticReportType_text(ctx, field) + case "conclusionCode": + return ec.fieldContext_DiagnosticReportType_conclusionCode(ctx, field) + case "result": + return ec.fieldContext_DiagnosticReportType_result(ctx, field) + case "implicitRules": + return ec.fieldContext_DiagnosticReportType_implicitRules(ctx, field) case "issued": return ec.fieldContext_DiagnosticReportType_issued(ctx, field) - case "resultsInterpreter": - return ec.fieldContext_DiagnosticReportType_resultsInterpreter(ctx, field) + case "performer": + return ec.fieldContext_DiagnosticReportType_performer(ctx, field) + case "status": + return ec.fieldContext_DiagnosticReportType_status(ctx, field) + case "conclusion": + return ec.fieldContext_DiagnosticReportType_conclusion(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DiagnosticReportType", field.Name) }, @@ -132347,70 +132659,70 @@ func (ec *executionContext) fieldContext_Query_condition(ctx context.Context, fi IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "contained": - return ec.fieldContext_ConditionType_contained(ctx, field) - case "abatementAge": - return ec.fieldContext_ConditionType_abatementAge(ctx, field) - case "onsetDateTime": - return ec.fieldContext_ConditionType_onsetDateTime(ctx, field) + case "bodySite": + return ec.fieldContext_ConditionType_bodySite(ctx, field) case "verificationStatus": return ec.fieldContext_ConditionType_verificationStatus(ctx, field) - case "code": - return ec.fieldContext_ConditionType_code(ctx, field) + case "contained": + return ec.fieldContext_ConditionType_contained(ctx, field) + case "identifier": + return ec.fieldContext_ConditionType_identifier(ctx, field) + case "onsetRange": + return ec.fieldContext_ConditionType_onsetRange(ctx, field) + case "category": + return ec.fieldContext_ConditionType_category(ctx, field) case "language": return ec.fieldContext_ConditionType_language(ctx, field) - case "text": - return ec.fieldContext_ConditionType_text(ctx, field) - case "abatementString": - return ec.fieldContext_ConditionType_abatementString(ctx, field) + case "abatementAge": + return ec.fieldContext_ConditionType_abatementAge(ctx, field) + case "id": + return ec.fieldContext_ConditionType_id(ctx, field) + case "onsetAge": + return ec.fieldContext_ConditionType_onsetAge(ctx, field) case "clinicalStatus": return ec.fieldContext_ConditionType_clinicalStatus(ctx, field) case "modifierExtension": return ec.fieldContext_ConditionType_modifierExtension(ctx, field) - case "abatementRange": - return ec.fieldContext_ConditionType_abatementRange(ctx, field) - case "resourceType": - return ec.fieldContext_ConditionType_resourceType(ctx, field) - case "recordedDate": - return ec.fieldContext_ConditionType_recordedDate(ctx, field) - case "severity": - return ec.fieldContext_ConditionType_severity(ctx, field) + case "abatementPeriod": + return ec.fieldContext_ConditionType_abatementPeriod(ctx, field) case "implicitRules": return ec.fieldContext_ConditionType_implicitRules(ctx, field) - case "onsetAge": - return ec.fieldContext_ConditionType_onsetAge(ctx, field) - case "evidence": - return ec.fieldContext_ConditionType_evidence(ctx, field) - case "meta": - return ec.fieldContext_ConditionType_meta(ctx, field) + case "recordedDate": + return ec.fieldContext_ConditionType_recordedDate(ctx, field) case "stage": return ec.fieldContext_ConditionType_stage(ctx, field) - case "category": - return ec.fieldContext_ConditionType_category(ctx, field) - case "onsetRange": - return ec.fieldContext_ConditionType_onsetRange(ctx, field) - case "subject": - return ec.fieldContext_ConditionType_subject(ctx, field) - case "abatementPeriod": - return ec.fieldContext_ConditionType_abatementPeriod(ctx, field) - case "id": - return ec.fieldContext_ConditionType_id(ctx, field) - case "bodySite": - return ec.fieldContext_ConditionType_bodySite(ctx, field) + case "onsetDateTime": + return ec.fieldContext_ConditionType_onsetDateTime(ctx, field) case "onsetString": return ec.fieldContext_ConditionType_onsetString(ctx, field) - case "abatementDateTime": - return ec.fieldContext_ConditionType_abatementDateTime(ctx, field) - case "extension": - return ec.fieldContext_ConditionType_extension(ctx, field) - case "participant": - return ec.fieldContext_ConditionType_participant(ctx, field) + case "meta": + return ec.fieldContext_ConditionType_meta(ctx, field) + case "subject": + return ec.fieldContext_ConditionType_subject(ctx, field) + case "code": + return ec.fieldContext_ConditionType_code(ctx, field) + case "resourceType": + return ec.fieldContext_ConditionType_resourceType(ctx, field) case "note": return ec.fieldContext_ConditionType_note(ctx, field) - case "identifier": - return ec.fieldContext_ConditionType_identifier(ctx, field) + case "evidence": + return ec.fieldContext_ConditionType_evidence(ctx, field) case "onsetPeriod": return ec.fieldContext_ConditionType_onsetPeriod(ctx, field) + case "abatementString": + return ec.fieldContext_ConditionType_abatementString(ctx, field) + case "severity": + return ec.fieldContext_ConditionType_severity(ctx, field) + case "text": + return ec.fieldContext_ConditionType_text(ctx, field) + case "abatementDateTime": + return ec.fieldContext_ConditionType_abatementDateTime(ctx, field) + case "abatementRange": + return ec.fieldContext_ConditionType_abatementRange(ctx, field) + case "participant": + return ec.fieldContext_ConditionType_participant(ctx, field) + case "extension": + return ec.fieldContext_ConditionType_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ConditionType", field.Name) }, @@ -132468,40 +132780,40 @@ func (ec *executionContext) fieldContext_Query_medication(ctx context.Context, f IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "doseForm": - return ec.fieldContext_MedicationType_doseForm(ctx, field) - case "code": - return ec.fieldContext_MedicationType_code(ctx, field) - case "identifier": - return ec.fieldContext_MedicationType_identifier(ctx, field) - case "text": - return ec.fieldContext_MedicationType_text(ctx, field) case "meta": return ec.fieldContext_MedicationType_meta(ctx, field) - case "resourceType": - return ec.fieldContext_MedicationType_resourceType(ctx, field) - case "status": - return ec.fieldContext_MedicationType_status(ctx, field) - case "language": - return ec.fieldContext_MedicationType_language(ctx, field) + case "text": + return ec.fieldContext_MedicationType_text(ctx, field) + case "marketingAuthorizationHolder": + return ec.fieldContext_MedicationType_marketingAuthorizationHolder(ctx, field) case "modifierExtension": return ec.fieldContext_MedicationType_modifierExtension(ctx, field) - case "contained": - return ec.fieldContext_MedicationType_contained(ctx, field) - case "batch": - return ec.fieldContext_MedicationType_batch(ctx, field) - case "implicitRules": - return ec.fieldContext_MedicationType_implicitRules(ctx, field) case "totalVolume": return ec.fieldContext_MedicationType_totalVolume(ctx, field) - case "extension": - return ec.fieldContext_MedicationType_extension(ctx, field) + case "language": + return ec.fieldContext_MedicationType_language(ctx, field) + case "doseForm": + return ec.fieldContext_MedicationType_doseForm(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationType_resourceType(ctx, field) + case "implicitRules": + return ec.fieldContext_MedicationType_implicitRules(ctx, field) case "ingredient": return ec.fieldContext_MedicationType_ingredient(ctx, field) + case "contained": + return ec.fieldContext_MedicationType_contained(ctx, field) + case "extension": + return ec.fieldContext_MedicationType_extension(ctx, field) + case "identifier": + return ec.fieldContext_MedicationType_identifier(ctx, field) case "id": return ec.fieldContext_MedicationType_id(ctx, field) - case "marketingAuthorizationHolder": - return ec.fieldContext_MedicationType_marketingAuthorizationHolder(ctx, field) + case "status": + return ec.fieldContext_MedicationType_status(ctx, field) + case "batch": + return ec.fieldContext_MedicationType_batch(ctx, field) + case "code": + return ec.fieldContext_MedicationType_code(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type MedicationType", field.Name) }, @@ -132559,64 +132871,64 @@ func (ec *executionContext) fieldContext_Query_medicationAdministration(ctx cont IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "subPotentReason": - return ec.fieldContext_MedicationAdministrationType_subPotentReason(ctx, field) - case "device": - return ec.fieldContext_MedicationAdministrationType_device(ctx, field) - case "category": - return ec.fieldContext_MedicationAdministrationType_category(ctx, field) - case "occurenceDateTime": - return ec.fieldContext_MedicationAdministrationType_occurenceDateTime(ctx, field) - case "medication": - return ec.fieldContext_MedicationAdministrationType_medication(ctx, field) - case "occurencePeriod": - return ec.fieldContext_MedicationAdministrationType_occurencePeriod(ctx, field) - case "isSubPotent": - return ec.fieldContext_MedicationAdministrationType_isSubPotent(ctx, field) - case "identifier": - return ec.fieldContext_MedicationAdministrationType_identifier(ctx, field) - case "meta": - return ec.fieldContext_MedicationAdministrationType_meta(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationAdministrationType_modifierExtension(ctx, field) + case "note": + return ec.fieldContext_MedicationAdministrationType_note(ctx, field) case "dosage": return ec.fieldContext_MedicationAdministrationType_dosage(ctx, field) - case "performer": - return ec.fieldContext_MedicationAdministrationType_performer(ctx, field) - case "status": - return ec.fieldContext_MedicationAdministrationType_status(ctx, field) - case "recorded": - return ec.fieldContext_MedicationAdministrationType_recorded(ctx, field) - case "id": - return ec.fieldContext_MedicationAdministrationType_id(ctx, field) - case "occurenceTiming": - return ec.fieldContext_MedicationAdministrationType_occurenceTiming(ctx, field) - case "subject": - return ec.fieldContext_MedicationAdministrationType_subject(ctx, field) case "language": return ec.fieldContext_MedicationAdministrationType_language(ctx, field) case "request": return ec.fieldContext_MedicationAdministrationType_request(ctx, field) - case "note": - return ec.fieldContext_MedicationAdministrationType_note(ctx, field) - case "text": - return ec.fieldContext_MedicationAdministrationType_text(ctx, field) + case "reason": + return ec.fieldContext_MedicationAdministrationType_reason(ctx, field) + case "occurencePeriod": + return ec.fieldContext_MedicationAdministrationType_occurencePeriod(ctx, field) case "resourceType": return ec.fieldContext_MedicationAdministrationType_resourceType(ctx, field) - case "statusReason": - return ec.fieldContext_MedicationAdministrationType_statusReason(ctx, field) + case "text": + return ec.fieldContext_MedicationAdministrationType_text(ctx, field) + case "medication": + return ec.fieldContext_MedicationAdministrationType_medication(ctx, field) case "implicitRules": return ec.fieldContext_MedicationAdministrationType_implicitRules(ctx, field) + case "category": + return ec.fieldContext_MedicationAdministrationType_category(ctx, field) + case "meta": + return ec.fieldContext_MedicationAdministrationType_meta(ctx, field) + case "isSubPotent": + return ec.fieldContext_MedicationAdministrationType_isSubPotent(ctx, field) + case "recorded": + return ec.fieldContext_MedicationAdministrationType_recorded(ctx, field) + case "performer": + return ec.fieldContext_MedicationAdministrationType_performer(ctx, field) + case "statusReason": + return ec.fieldContext_MedicationAdministrationType_statusReason(ctx, field) + case "subject": + return ec.fieldContext_MedicationAdministrationType_subject(ctx, field) + case "contained": + return ec.fieldContext_MedicationAdministrationType_contained(ctx, field) + case "extension": + return ec.fieldContext_MedicationAdministrationType_extension(ctx, field) case "partOf": return ec.fieldContext_MedicationAdministrationType_partOf(ctx, field) - case "reason": - return ec.fieldContext_MedicationAdministrationType_reason(ctx, field) + case "occurenceTiming": + return ec.fieldContext_MedicationAdministrationType_occurenceTiming(ctx, field) + case "subPotentReason": + return ec.fieldContext_MedicationAdministrationType_subPotentReason(ctx, field) case "supportingInformation": return ec.fieldContext_MedicationAdministrationType_supportingInformation(ctx, field) - case "extension": - return ec.fieldContext_MedicationAdministrationType_extension(ctx, field) - case "contained": - return ec.fieldContext_MedicationAdministrationType_contained(ctx, field) + case "status": + return ec.fieldContext_MedicationAdministrationType_status(ctx, field) + case "id": + return ec.fieldContext_MedicationAdministrationType_id(ctx, field) + case "occurenceDateTime": + return ec.fieldContext_MedicationAdministrationType_occurenceDateTime(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationAdministrationType_modifierExtension(ctx, field) + case "device": + return ec.fieldContext_MedicationAdministrationType_device(ctx, field) + case "identifier": + return ec.fieldContext_MedicationAdministrationType_identifier(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type MedicationAdministrationType", field.Name) }, @@ -132674,60 +132986,60 @@ func (ec *executionContext) fieldContext_Query_medicationStatement(ctx context.C IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "relatedClinicalInformation": - return ec.fieldContext_MedicationStatementType_relatedClinicalInformation(ctx, field) - case "meta": - return ec.fieldContext_MedicationStatementType_meta(ctx, field) - case "effectivePeriod": - return ec.fieldContext_MedicationStatementType_effectivePeriod(ctx, field) - case "dosage": - return ec.fieldContext_MedicationStatementType_dosage(ctx, field) - case "category": - return ec.fieldContext_MedicationStatementType_category(ctx, field) - case "contained": - return ec.fieldContext_MedicationStatementType_contained(ctx, field) - case "effectiveDateTime": - return ec.fieldContext_MedicationStatementType_effectiveDateTime(ctx, field) + case "text": + return ec.fieldContext_MedicationStatementType_text(ctx, field) case "identifier": return ec.fieldContext_MedicationStatementType_identifier(ctx, field) - case "note": - return ec.fieldContext_MedicationStatementType_note(ctx, field) + case "reason": + return ec.fieldContext_MedicationStatementType_reason(ctx, field) case "implicitRules": return ec.fieldContext_MedicationStatementType_implicitRules(ctx, field) case "medication": return ec.fieldContext_MedicationStatementType_medication(ctx, field) - case "renderedDosageInstruction": - return ec.fieldContext_MedicationStatementType_renderedDosageInstruction(ctx, field) - case "derivedFrom": - return ec.fieldContext_MedicationStatementType_derivedFrom(ctx, field) + case "note": + return ec.fieldContext_MedicationStatementType_note(ctx, field) + case "category": + return ec.fieldContext_MedicationStatementType_category(ctx, field) + case "id": + return ec.fieldContext_MedicationStatementType_id(ctx, field) + case "informationSource": + return ec.fieldContext_MedicationStatementType_informationSource(ctx, field) + case "relatedClinicalInformation": + return ec.fieldContext_MedicationStatementType_relatedClinicalInformation(ctx, field) + case "effectiveTiming": + return ec.fieldContext_MedicationStatementType_effectiveTiming(ctx, field) + case "effectiveDateTime": + return ec.fieldContext_MedicationStatementType_effectiveDateTime(ctx, field) case "subject": return ec.fieldContext_MedicationStatementType_subject(ctx, field) + case "effectivePeriod": + return ec.fieldContext_MedicationStatementType_effectivePeriod(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationStatementType_modifierExtension(ctx, field) + case "derivedFrom": + return ec.fieldContext_MedicationStatementType_derivedFrom(ctx, field) case "adherence": return ec.fieldContext_MedicationStatementType_adherence(ctx, field) - case "reason": - return ec.fieldContext_MedicationStatementType_reason(ctx, field) - case "text": - return ec.fieldContext_MedicationStatementType_text(ctx, field) case "language": return ec.fieldContext_MedicationStatementType_language(ctx, field) - case "partOf": - return ec.fieldContext_MedicationStatementType_partOf(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationStatementType_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationStatementType_resourceType(ctx, field) + case "renderedDosageInstruction": + return ec.fieldContext_MedicationStatementType_renderedDosageInstruction(ctx, field) + case "contained": + return ec.fieldContext_MedicationStatementType_contained(ctx, field) + case "meta": + return ec.fieldContext_MedicationStatementType_meta(ctx, field) + case "dosage": + return ec.fieldContext_MedicationStatementType_dosage(ctx, field) + case "status": + return ec.fieldContext_MedicationStatementType_status(ctx, field) case "dateAsserted": return ec.fieldContext_MedicationStatementType_dateAsserted(ctx, field) case "extension": return ec.fieldContext_MedicationStatementType_extension(ctx, field) - case "id": - return ec.fieldContext_MedicationStatementType_id(ctx, field) - case "effectiveTiming": - return ec.fieldContext_MedicationStatementType_effectiveTiming(ctx, field) - case "informationSource": - return ec.fieldContext_MedicationStatementType_informationSource(ctx, field) - case "status": - return ec.fieldContext_MedicationStatementType_status(ctx, field) - case "resourceType": - return ec.fieldContext_MedicationStatementType_resourceType(ctx, field) + case "partOf": + return ec.fieldContext_MedicationStatementType_partOf(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type MedicationStatementType", field.Name) }, @@ -132785,84 +133097,84 @@ func (ec *executionContext) fieldContext_Query_medicationRequest(ctx context.Con IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "subject": + return ec.fieldContext_MedicationRequestType_subject(ctx, field) + case "dosageInstruction": + return ec.fieldContext_MedicationRequestType_dosageInstruction(ctx, field) + case "note": + return ec.fieldContext_MedicationRequestType_note(ctx, field) + case "category": + return ec.fieldContext_MedicationRequestType_category(ctx, field) case "medication": return ec.fieldContext_MedicationRequestType_medication(ctx, field) - case "resourceType": - return ec.fieldContext_MedicationRequestType_resourceType(ctx, field) - case "reason": - return ec.fieldContext_MedicationRequestType_reason(ctx, field) - case "statusChanged": - return ec.fieldContext_MedicationRequestType_statusChanged(ctx, field) + case "priority": + return ec.fieldContext_MedicationRequestType_priority(ctx, field) + case "contained": + return ec.fieldContext_MedicationRequestType_contained(ctx, field) + case "modifierExtension": + return ec.fieldContext_MedicationRequestType_modifierExtension(ctx, field) case "courseOfTherapyType": return ec.fieldContext_MedicationRequestType_courseOfTherapyType(ctx, field) + case "dispenseRequest": + return ec.fieldContext_MedicationRequestType_dispenseRequest(ctx, field) + case "text": + return ec.fieldContext_MedicationRequestType_text(ctx, field) case "effectiveDosePeriod": return ec.fieldContext_MedicationRequestType_effectiveDosePeriod(ctx, field) - case "device": - return ec.fieldContext_MedicationRequestType_device(ctx, field) + case "extension": + return ec.fieldContext_MedicationRequestType_extension(ctx, field) + case "performerType": + return ec.fieldContext_MedicationRequestType_performerType(ctx, field) + case "groupIdentifier": + return ec.fieldContext_MedicationRequestType_groupIdentifier(ctx, field) + case "substitution": + return ec.fieldContext_MedicationRequestType_substitution(ctx, field) + case "status": + return ec.fieldContext_MedicationRequestType_status(ctx, field) case "supportingInformation": return ec.fieldContext_MedicationRequestType_supportingInformation(ctx, field) + case "informationSource": + return ec.fieldContext_MedicationRequestType_informationSource(ctx, field) + case "doNotPerform": + return ec.fieldContext_MedicationRequestType_doNotPerform(ctx, field) + case "reported": + return ec.fieldContext_MedicationRequestType_reported(ctx, field) case "performer": return ec.fieldContext_MedicationRequestType_performer(ctx, field) + case "basedOn": + return ec.fieldContext_MedicationRequestType_basedOn(ctx, field) + case "identifier": + return ec.fieldContext_MedicationRequestType_identifier(ctx, field) + case "statusReason": + return ec.fieldContext_MedicationRequestType_statusReason(ctx, field) + case "renderedDosageInstruction": + return ec.fieldContext_MedicationRequestType_renderedDosageInstruction(ctx, field) + case "recorder": + return ec.fieldContext_MedicationRequestType_recorder(ctx, field) case "authoredOn": return ec.fieldContext_MedicationRequestType_authoredOn(ctx, field) - case "note": - return ec.fieldContext_MedicationRequestType_note(ctx, field) - case "text": - return ec.fieldContext_MedicationRequestType_text(ctx, field) - case "id": - return ec.fieldContext_MedicationRequestType_id(ctx, field) + case "intent": + return ec.fieldContext_MedicationRequestType_intent(ctx, field) case "language": return ec.fieldContext_MedicationRequestType_language(ctx, field) - case "status": - return ec.fieldContext_MedicationRequestType_status(ctx, field) - case "implicitRules": - return ec.fieldContext_MedicationRequestType_implicitRules(ctx, field) + case "reason": + return ec.fieldContext_MedicationRequestType_reason(ctx, field) + case "meta": + return ec.fieldContext_MedicationRequestType_meta(ctx, field) case "requester": return ec.fieldContext_MedicationRequestType_requester(ctx, field) - case "groupIdentifier": - return ec.fieldContext_MedicationRequestType_groupIdentifier(ctx, field) - case "statusReason": - return ec.fieldContext_MedicationRequestType_statusReason(ctx, field) - case "intent": - return ec.fieldContext_MedicationRequestType_intent(ctx, field) - case "dosageInstruction": - return ec.fieldContext_MedicationRequestType_dosageInstruction(ctx, field) - case "informationSource": - return ec.fieldContext_MedicationRequestType_informationSource(ctx, field) - case "performerType": - return ec.fieldContext_MedicationRequestType_performerType(ctx, field) - case "identifier": - return ec.fieldContext_MedicationRequestType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_MedicationRequestType_modifierExtension(ctx, field) - case "category": - return ec.fieldContext_MedicationRequestType_category(ctx, field) - case "recorder": - return ec.fieldContext_MedicationRequestType_recorder(ctx, field) case "priorPrescription": return ec.fieldContext_MedicationRequestType_priorPrescription(ctx, field) - case "meta": - return ec.fieldContext_MedicationRequestType_meta(ctx, field) - case "basedOn": - return ec.fieldContext_MedicationRequestType_basedOn(ctx, field) - case "extension": - return ec.fieldContext_MedicationRequestType_extension(ctx, field) - case "renderedDosageInstruction": - return ec.fieldContext_MedicationRequestType_renderedDosageInstruction(ctx, field) - case "reported": - return ec.fieldContext_MedicationRequestType_reported(ctx, field) - case "substitution": - return ec.fieldContext_MedicationRequestType_substitution(ctx, field) - case "doNotPerform": - return ec.fieldContext_MedicationRequestType_doNotPerform(ctx, field) - case "contained": - return ec.fieldContext_MedicationRequestType_contained(ctx, field) - case "subject": - return ec.fieldContext_MedicationRequestType_subject(ctx, field) - case "dispenseRequest": - return ec.fieldContext_MedicationRequestType_dispenseRequest(ctx, field) - case "priority": - return ec.fieldContext_MedicationRequestType_priority(ctx, field) + case "device": + return ec.fieldContext_MedicationRequestType_device(ctx, field) + case "resourceType": + return ec.fieldContext_MedicationRequestType_resourceType(ctx, field) + case "statusChanged": + return ec.fieldContext_MedicationRequestType_statusChanged(ctx, field) + case "implicitRules": + return ec.fieldContext_MedicationRequestType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_MedicationRequestType_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type MedicationRequestType", field.Name) }, @@ -132920,86 +133232,86 @@ func (ec *executionContext) fieldContext_Query_procedure(ctx context.Context, fi IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "resourceType": - return ec.fieldContext_ProcedureType_resourceType(ctx, field) case "recorder": return ec.fieldContext_ProcedureType_recorder(ctx, field) + case "report": + return ec.fieldContext_ProcedureType_report(ctx, field) + case "implicitRules": + return ec.fieldContext_ProcedureType_implicitRules(ctx, field) + case "meta": + return ec.fieldContext_ProcedureType_meta(ctx, field) + case "note": + return ec.fieldContext_ProcedureType_note(ctx, field) + case "bodySite": + return ec.fieldContext_ProcedureType_bodySite(ctx, field) + case "instantiatesUri": + return ec.fieldContext_ProcedureType_instantiatesUri(ctx, field) case "occurrenceTiming": return ec.fieldContext_ProcedureType_occurrenceTiming(ctx, field) - case "occurrenceString": - return ec.fieldContext_ProcedureType_occurrenceString(ctx, field) - case "outcome": - return ec.fieldContext_ProcedureType_outcome(ctx, field) - case "reason": - return ec.fieldContext_ProcedureType_reason(ctx, field) - case "reportedReference": - return ec.fieldContext_ProcedureType_reportedReference(ctx, field) - case "occurrencePeriod": - return ec.fieldContext_ProcedureType_occurrencePeriod(ctx, field) + case "occurrenceAge": + return ec.fieldContext_ProcedureType_occurrenceAge(ctx, field) + case "occurrenceDateTime": + return ec.fieldContext_ProcedureType_occurrenceDateTime(ctx, field) case "reportedBoolean": return ec.fieldContext_ProcedureType_reportedBoolean(ctx, field) - case "extension": - return ec.fieldContext_ProcedureType_extension(ctx, field) - case "report": - return ec.fieldContext_ProcedureType_report(ctx, field) - case "code": - return ec.fieldContext_ProcedureType_code(ctx, field) - case "category": - return ec.fieldContext_ProcedureType_category(ctx, field) - case "used": - return ec.fieldContext_ProcedureType_used(ctx, field) - case "recorded": - return ec.fieldContext_ProcedureType_recorded(ctx, field) - case "partOf": - return ec.fieldContext_ProcedureType_partOf(ctx, field) - case "statusReason": - return ec.fieldContext_ProcedureType_statusReason(ctx, field) - case "modifierExtension": - return ec.fieldContext_ProcedureType_modifierExtension(ctx, field) + case "subject": + return ec.fieldContext_ProcedureType_subject(ctx, field) case "occurrenceRange": return ec.fieldContext_ProcedureType_occurrenceRange(ctx, field) - case "followUp": - return ec.fieldContext_ProcedureType_followUp(ctx, field) - case "occurrenceAge": - return ec.fieldContext_ProcedureType_occurrenceAge(ctx, field) - case "bodySite": - return ec.fieldContext_ProcedureType_bodySite(ctx, field) - case "id": - return ec.fieldContext_ProcedureType_id(ctx, field) - case "focalDevice": - return ec.fieldContext_ProcedureType_focalDevice(ctx, field) + case "modifierExtension": + return ec.fieldContext_ProcedureType_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_ProcedureType_resourceType(ctx, field) + case "contained": + return ec.fieldContext_ProcedureType_contained(ctx, field) case "text": return ec.fieldContext_ProcedureType_text(ctx, field) - case "meta": - return ec.fieldContext_ProcedureType_meta(ctx, field) + case "status": + return ec.fieldContext_ProcedureType_status(ctx, field) + case "reportedReference": + return ec.fieldContext_ProcedureType_reportedReference(ctx, field) + case "reason": + return ec.fieldContext_ProcedureType_reason(ctx, field) + case "outcome": + return ec.fieldContext_ProcedureType_outcome(ctx, field) + case "partOf": + return ec.fieldContext_ProcedureType_partOf(ctx, field) + case "used": + return ec.fieldContext_ProcedureType_used(ctx, field) + case "code": + return ec.fieldContext_ProcedureType_code(ctx, field) + case "identifier": + return ec.fieldContext_ProcedureType_identifier(ctx, field) + case "category": + return ec.fieldContext_ProcedureType_category(ctx, field) case "supportingInfo": return ec.fieldContext_ProcedureType_supportingInfo(ctx, field) case "language": return ec.fieldContext_ProcedureType_language(ctx, field) - case "note": - return ec.fieldContext_ProcedureType_note(ctx, field) - case "status": - return ec.fieldContext_ProcedureType_status(ctx, field) - case "implicitRules": - return ec.fieldContext_ProcedureType_implicitRules(ctx, field) - case "contained": - return ec.fieldContext_ProcedureType_contained(ctx, field) + case "focalDevice": + return ec.fieldContext_ProcedureType_focalDevice(ctx, field) + case "id": + return ec.fieldContext_ProcedureType_id(ctx, field) + case "occurrenceString": + return ec.fieldContext_ProcedureType_occurrenceString(ctx, field) + case "recorded": + return ec.fieldContext_ProcedureType_recorded(ctx, field) case "performer": return ec.fieldContext_ProcedureType_performer(ctx, field) - case "instantiatesCanonical": - return ec.fieldContext_ProcedureType_instantiatesCanonical(ctx, field) + case "statusReason": + return ec.fieldContext_ProcedureType_statusReason(ctx, field) + case "followUp": + return ec.fieldContext_ProcedureType_followUp(ctx, field) case "complication": return ec.fieldContext_ProcedureType_complication(ctx, field) - case "occurrenceDateTime": - return ec.fieldContext_ProcedureType_occurrenceDateTime(ctx, field) - case "identifier": - return ec.fieldContext_ProcedureType_identifier(ctx, field) - case "instantiatesUri": - return ec.fieldContext_ProcedureType_instantiatesUri(ctx, field) - case "subject": - return ec.fieldContext_ProcedureType_subject(ctx, field) + case "extension": + return ec.fieldContext_ProcedureType_extension(ctx, field) case "focus": return ec.fieldContext_ProcedureType_focus(ctx, field) + case "occurrencePeriod": + return ec.fieldContext_ProcedureType_occurrencePeriod(ctx, field) + case "instantiatesCanonical": + return ec.fieldContext_ProcedureType_instantiatesCanonical(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ProcedureType", field.Name) }, @@ -133057,68 +133369,68 @@ func (ec *executionContext) fieldContext_Query_documentReference(ctx context.Con IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "version": - return ec.fieldContext_DocumentReferenceType_version(ctx, field) - case "language": - return ec.fieldContext_DocumentReferenceType_language(ctx, field) - case "implicitRules": - return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) - case "bodySite": - return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "modality": + return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "securityLabel": + return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) + case "meta": + return ec.fieldContext_DocumentReferenceType_meta(ctx, field) + case "subject": + return ec.fieldContext_DocumentReferenceType_subject(ctx, field) + case "id": + return ec.fieldContext_DocumentReferenceType_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) + case "contained": + return ec.fieldContext_DocumentReferenceType_contained(ctx, field) + case "event": + return ec.fieldContext_DocumentReferenceType_event(ctx, field) case "practiceSetting": return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) + case "bodySite": + return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "identifier": + return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) + case "date": + return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "language": + return ec.fieldContext_DocumentReferenceType_language(ctx, field) case "author": return ec.fieldContext_DocumentReferenceType_author(ctx, field) - case "basedOn": - return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) - case "resourceType": - return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) - case "status": - return ec.fieldContext_DocumentReferenceType_status(ctx, field) case "type": return ec.fieldContext_DocumentReferenceType_type(ctx, field) - case "modality": - return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "category": + return ec.fieldContext_DocumentReferenceType_category(ctx, field) case "period": return ec.fieldContext_DocumentReferenceType_period(ctx, field) + case "facilityType": + return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) case "attester": return ec.fieldContext_DocumentReferenceType_attester(ctx, field) + case "implicitRules": + return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) case "docStatus": return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) - case "meta": - return ec.fieldContext_DocumentReferenceType_meta(ctx, field) case "custodian": return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) - case "event": - return ec.fieldContext_DocumentReferenceType_event(ctx, field) - case "relatesTo": - return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) - case "facilityType": - return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) - case "id": - return ec.fieldContext_DocumentReferenceType_id(ctx, field) - case "securityLabel": - return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) - case "identifier": - return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) case "description": return ec.fieldContext_DocumentReferenceType_description(ctx, field) - case "extension": - return ec.fieldContext_DocumentReferenceType_extension(ctx, field) - case "category": - return ec.fieldContext_DocumentReferenceType_category(ctx, field) + case "basedOn": + return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) + case "relatesTo": + return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) + case "resourceType": + return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) + case "status": + return ec.fieldContext_DocumentReferenceType_status(ctx, field) case "text": return ec.fieldContext_DocumentReferenceType_text(ctx, field) - case "contained": - return ec.fieldContext_DocumentReferenceType_contained(ctx, field) - case "subject": - return ec.fieldContext_DocumentReferenceType_subject(ctx, field) case "content": return ec.fieldContext_DocumentReferenceType_content(ctx, field) - case "date": - return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "version": + return ec.fieldContext_DocumentReferenceType_version(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceType_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) }, @@ -133158,11 +133470,14 @@ func (ec *executionContext) _Query_task(ctx context.Context, field graphql.Colle return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.TaskType) + res := resTmp.([]model.TaskType) fc.Result = res - return ec.marshalOTaskType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx, field.Selections, res) + return ec.marshalNTaskType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskTypeᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_task(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -133173,80 +133488,80 @@ func (ec *executionContext) fieldContext_Query_task(ctx context.Context, field g IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "input": - return ec.fieldContext_TaskType_input(ctx, field) - case "basedOn": - return ec.fieldContext_TaskType_basedOn(ctx, field) - case "output": - return ec.fieldContext_TaskType_output(ctx, field) - case "lastModified": - return ec.fieldContext_TaskType_lastModified(ctx, field) - case "authoredOn": - return ec.fieldContext_TaskType_authoredOn(ctx, field) - case "modifierExtension": - return ec.fieldContext_TaskType_modifierExtension(ctx, field) - case "requester": - return ec.fieldContext_TaskType_requester(ctx, field) + case "instantiatesUri": + return ec.fieldContext_TaskType_instantiatesUri(ctx, field) + case "owner": + return ec.fieldContext_TaskType_owner(ctx, field) + case "id": + return ec.fieldContext_TaskType_id(ctx, field) case "intent": return ec.fieldContext_TaskType_intent(ctx, field) - case "partOf": - return ec.fieldContext_TaskType_partOf(ctx, field) - case "businessStatus": - return ec.fieldContext_TaskType_businessStatus(ctx, field) - case "resourceType": - return ec.fieldContext_TaskType_resourceType(ctx, field) case "code": return ec.fieldContext_TaskType_code(ctx, field) - case "instantiatesUri": - return ec.fieldContext_TaskType_instantiatesUri(ctx, field) - case "instantiatesCanonical": - return ec.fieldContext_TaskType_instantiatesCanonical(ctx, field) - case "reason": - return ec.fieldContext_TaskType_reason(ctx, field) - case "contained": - return ec.fieldContext_TaskType_contained(ctx, field) case "requestedPeriod": return ec.fieldContext_TaskType_requestedPeriod(ctx, field) - case "groupIdentifier": - return ec.fieldContext_TaskType_groupIdentifier(ctx, field) - case "priority": - return ec.fieldContext_TaskType_priority(ctx, field) - case "text": - return ec.fieldContext_TaskType_text(ctx, field) - case "identifier": - return ec.fieldContext_TaskType_identifier(ctx, field) - case "description": - return ec.fieldContext_TaskType_description(ctx, field) - case "performer": - return ec.fieldContext_TaskType_performer(ctx, field) - case "id": - return ec.fieldContext_TaskType_id(ctx, field) - case "implicitRules": - return ec.fieldContext_TaskType_implicitRules(ctx, field) - case "meta": - return ec.fieldContext_TaskType_meta(ctx, field) case "restriction": return ec.fieldContext_TaskType_restriction(ctx, field) + case "authoredOn": + return ec.fieldContext_TaskType_authoredOn(ctx, field) + case "modifierExtension": + return ec.fieldContext_TaskType_modifierExtension(ctx, field) case "note": return ec.fieldContext_TaskType_note(ctx, field) - case "executionPeriod": - return ec.fieldContext_TaskType_executionPeriod(ctx, field) + case "doNotPerform": + return ec.fieldContext_TaskType_doNotPerform(ctx, field) + case "text": + return ec.fieldContext_TaskType_text(ctx, field) + case "identifier": + return ec.fieldContext_TaskType_identifier(ctx, field) case "language": return ec.fieldContext_TaskType_language(ctx, field) - case "requestedPerformer": - return ec.fieldContext_TaskType_requestedPerformer(ctx, field) - case "status": - return ec.fieldContext_TaskType_status(ctx, field) + case "output": + return ec.fieldContext_TaskType_output(ctx, field) case "extension": return ec.fieldContext_TaskType_extension(ctx, field) - case "focus": - return ec.fieldContext_TaskType_focus(ctx, field) - case "owner": - return ec.fieldContext_TaskType_owner(ctx, field) + case "instantiatesCanonical": + return ec.fieldContext_TaskType_instantiatesCanonical(ctx, field) + case "status": + return ec.fieldContext_TaskType_status(ctx, field) + case "businessStatus": + return ec.fieldContext_TaskType_businessStatus(ctx, field) + case "executionPeriod": + return ec.fieldContext_TaskType_executionPeriod(ctx, field) + case "meta": + return ec.fieldContext_TaskType_meta(ctx, field) + case "implicitRules": + return ec.fieldContext_TaskType_implicitRules(ctx, field) + case "basedOn": + return ec.fieldContext_TaskType_basedOn(ctx, field) + case "partOf": + return ec.fieldContext_TaskType_partOf(ctx, field) case "statusReason": return ec.fieldContext_TaskType_statusReason(ctx, field) - case "doNotPerform": - return ec.fieldContext_TaskType_doNotPerform(ctx, field) + case "contained": + return ec.fieldContext_TaskType_contained(ctx, field) + case "performer": + return ec.fieldContext_TaskType_performer(ctx, field) + case "input": + return ec.fieldContext_TaskType_input(ctx, field) + case "requester": + return ec.fieldContext_TaskType_requester(ctx, field) + case "description": + return ec.fieldContext_TaskType_description(ctx, field) + case "groupIdentifier": + return ec.fieldContext_TaskType_groupIdentifier(ctx, field) + case "focus": + return ec.fieldContext_TaskType_focus(ctx, field) + case "priority": + return ec.fieldContext_TaskType_priority(ctx, field) + case "lastModified": + return ec.fieldContext_TaskType_lastModified(ctx, field) + case "resourceType": + return ec.fieldContext_TaskType_resourceType(ctx, field) + case "requestedPerformer": + return ec.fieldContext_TaskType_requestedPerformer(ctx, field) + case "reason": + return ec.fieldContext_TaskType_reason(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type TaskType", field.Name) }, @@ -133304,54 +133619,54 @@ func (ec *executionContext) fieldContext_Query_imagingStudy(ctx context.Context, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "partOf": - return ec.fieldContext_ImagingStudyType_partOf(ctx, field) - case "text": - return ec.fieldContext_ImagingStudyType_text(ctx, field) - case "meta": - return ec.fieldContext_ImagingStudyType_meta(ctx, field) - case "extension": - return ec.fieldContext_ImagingStudyType_extension(ctx, field) - case "language": - return ec.fieldContext_ImagingStudyType_language(ctx, field) - case "basedOn": - return ec.fieldContext_ImagingStudyType_basedOn(ctx, field) - case "numberOfInstances": - return ec.fieldContext_ImagingStudyType_numberOfInstances(ctx, field) - case "procedure": - return ec.fieldContext_ImagingStudyType_procedure(ctx, field) + case "description": + return ec.fieldContext_ImagingStudyType_description(ctx, field) case "identifier": return ec.fieldContext_ImagingStudyType_identifier(ctx, field) + case "contained": + return ec.fieldContext_ImagingStudyType_contained(ctx, field) + case "id": + return ec.fieldContext_ImagingStudyType_id(ctx, field) + case "subject": + return ec.fieldContext_ImagingStudyType_subject(ctx, field) + case "status": + return ec.fieldContext_ImagingStudyType_status(ctx, field) + case "text": + return ec.fieldContext_ImagingStudyType_text(ctx, field) + case "meta": + return ec.fieldContext_ImagingStudyType_meta(ctx, field) + case "series": + return ec.fieldContext_ImagingStudyType_series(ctx, field) + case "extension": + return ec.fieldContext_ImagingStudyType_extension(ctx, field) case "implicitRules": return ec.fieldContext_ImagingStudyType_implicitRules(ctx, field) - case "referrer": - return ec.fieldContext_ImagingStudyType_referrer(ctx, field) + case "reason": + return ec.fieldContext_ImagingStudyType_reason(ctx, field) case "modality": return ec.fieldContext_ImagingStudyType_modality(ctx, field) case "resourceType": return ec.fieldContext_ImagingStudyType_resourceType(ctx, field) - case "note": - return ec.fieldContext_ImagingStudyType_note(ctx, field) - case "contained": - return ec.fieldContext_ImagingStudyType_contained(ctx, field) + case "partOf": + return ec.fieldContext_ImagingStudyType_partOf(ctx, field) case "modifierExtension": return ec.fieldContext_ImagingStudyType_modifierExtension(ctx, field) - case "series": - return ec.fieldContext_ImagingStudyType_series(ctx, field) - case "reason": - return ec.fieldContext_ImagingStudyType_reason(ctx, field) + case "referrer": + return ec.fieldContext_ImagingStudyType_referrer(ctx, field) + case "procedure": + return ec.fieldContext_ImagingStudyType_procedure(ctx, field) case "started": return ec.fieldContext_ImagingStudyType_started(ctx, field) - case "status": - return ec.fieldContext_ImagingStudyType_status(ctx, field) - case "subject": - return ec.fieldContext_ImagingStudyType_subject(ctx, field) - case "description": - return ec.fieldContext_ImagingStudyType_description(ctx, field) - case "id": - return ec.fieldContext_ImagingStudyType_id(ctx, field) case "numberOfSeries": return ec.fieldContext_ImagingStudyType_numberOfSeries(ctx, field) + case "note": + return ec.fieldContext_ImagingStudyType_note(ctx, field) + case "basedOn": + return ec.fieldContext_ImagingStudyType_basedOn(ctx, field) + case "language": + return ec.fieldContext_ImagingStudyType_language(ctx, field) + case "numberOfInstances": + return ec.fieldContext_ImagingStudyType_numberOfInstances(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ImagingStudyType", field.Name) }, @@ -133409,78 +133724,78 @@ func (ec *executionContext) fieldContext_Query_familyMemberHistory(ctx context.C IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "condition": - return ec.fieldContext_FamilyMemberHistoryType_condition(ctx, field) - case "ageAge": - return ec.fieldContext_FamilyMemberHistoryType_ageAge(ctx, field) - case "deceasedRange": - return ec.fieldContext_FamilyMemberHistoryType_deceasedRange(ctx, field) + case "ageRange": + return ec.fieldContext_FamilyMemberHistoryType_ageRange(ctx, field) + case "patient": + return ec.fieldContext_FamilyMemberHistoryType_patient(ctx, field) + case "name": + return ec.fieldContext_FamilyMemberHistoryType_name(ctx, field) + case "deceasedBoolean": + return ec.fieldContext_FamilyMemberHistoryType_deceasedBoolean(ctx, field) + case "instantiatesUri": + return ec.fieldContext_FamilyMemberHistoryType_instantiatesUri(ctx, field) + case "modifierExtension": + return ec.fieldContext_FamilyMemberHistoryType_modifierExtension(ctx, field) + case "instantiatesCanonical": + return ec.fieldContext_FamilyMemberHistoryType_instantiatesCanonical(ctx, field) + case "text": + return ec.fieldContext_FamilyMemberHistoryType_text(ctx, field) + case "id": + return ec.fieldContext_FamilyMemberHistoryType_id(ctx, field) + case "bornString": + return ec.fieldContext_FamilyMemberHistoryType_bornString(ctx, field) case "deceasedAge": return ec.fieldContext_FamilyMemberHistoryType_deceasedAge(ctx, field) - case "status": - return ec.fieldContext_FamilyMemberHistoryType_status(ctx, field) - case "language": - return ec.fieldContext_FamilyMemberHistoryType_language(ctx, field) - case "identifier": - return ec.fieldContext_FamilyMemberHistoryType_identifier(ctx, field) + case "ageAge": + return ec.fieldContext_FamilyMemberHistoryType_ageAge(ctx, field) + case "date": + return ec.fieldContext_FamilyMemberHistoryType_date(ctx, field) case "sex": return ec.fieldContext_FamilyMemberHistoryType_sex(ctx, field) - case "note": - return ec.fieldContext_FamilyMemberHistoryType_note(ctx, field) + case "language": + return ec.fieldContext_FamilyMemberHistoryType_language(ctx, field) case "contained": return ec.fieldContext_FamilyMemberHistoryType_contained(ctx, field) - case "id": - return ec.fieldContext_FamilyMemberHistoryType_id(ctx, field) - case "resourceType": - return ec.fieldContext_FamilyMemberHistoryType_resourceType(ctx, field) - case "deceasedString": - return ec.fieldContext_FamilyMemberHistoryType_deceasedString(ctx, field) + case "note": + return ec.fieldContext_FamilyMemberHistoryType_note(ctx, field) + case "reason": + return ec.fieldContext_FamilyMemberHistoryType_reason(ctx, field) case "relationship": return ec.fieldContext_FamilyMemberHistoryType_relationship(ctx, field) - case "bornDate": - return ec.fieldContext_FamilyMemberHistoryType_bornDate(ctx, field) - case "dataAbsentReason": - return ec.fieldContext_FamilyMemberHistoryType_dataAbsentReason(ctx, field) - case "estimatedAge": - return ec.fieldContext_FamilyMemberHistoryType_estimatedAge(ctx, field) - case "modifierExtension": - return ec.fieldContext_FamilyMemberHistoryType_modifierExtension(ctx, field) - case "date": - return ec.fieldContext_FamilyMemberHistoryType_date(ctx, field) - case "patient": - return ec.fieldContext_FamilyMemberHistoryType_patient(ctx, field) + case "condition": + return ec.fieldContext_FamilyMemberHistoryType_condition(ctx, field) case "extension": return ec.fieldContext_FamilyMemberHistoryType_extension(ctx, field) - case "procedure": - return ec.fieldContext_FamilyMemberHistoryType_procedure(ctx, field) case "meta": return ec.fieldContext_FamilyMemberHistoryType_meta(ctx, field) - case "ageRange": - return ec.fieldContext_FamilyMemberHistoryType_ageRange(ctx, field) - case "name": - return ec.fieldContext_FamilyMemberHistoryType_name(ctx, field) - case "deceasedDate": - return ec.fieldContext_FamilyMemberHistoryType_deceasedDate(ctx, field) - case "deceasedBoolean": - return ec.fieldContext_FamilyMemberHistoryType_deceasedBoolean(ctx, field) - case "instantiatesCanonical": - return ec.fieldContext_FamilyMemberHistoryType_instantiatesCanonical(ctx, field) + case "deceasedString": + return ec.fieldContext_FamilyMemberHistoryType_deceasedString(ctx, field) + case "status": + return ec.fieldContext_FamilyMemberHistoryType_status(ctx, field) case "ageString": return ec.fieldContext_FamilyMemberHistoryType_ageString(ctx, field) - case "text": - return ec.fieldContext_FamilyMemberHistoryType_text(ctx, field) - case "implicitRules": - return ec.fieldContext_FamilyMemberHistoryType_implicitRules(ctx, field) - case "reason": - return ec.fieldContext_FamilyMemberHistoryType_reason(ctx, field) - case "instantiatesUri": - return ec.fieldContext_FamilyMemberHistoryType_instantiatesUri(ctx, field) - case "bornString": - return ec.fieldContext_FamilyMemberHistoryType_bornString(ctx, field) + case "identifier": + return ec.fieldContext_FamilyMemberHistoryType_identifier(ctx, field) case "participant": return ec.fieldContext_FamilyMemberHistoryType_participant(ctx, field) + case "deceasedDate": + return ec.fieldContext_FamilyMemberHistoryType_deceasedDate(ctx, field) + case "estimatedAge": + return ec.fieldContext_FamilyMemberHistoryType_estimatedAge(ctx, field) + case "dataAbsentReason": + return ec.fieldContext_FamilyMemberHistoryType_dataAbsentReason(ctx, field) + case "procedure": + return ec.fieldContext_FamilyMemberHistoryType_procedure(ctx, field) case "bornPeriod": return ec.fieldContext_FamilyMemberHistoryType_bornPeriod(ctx, field) + case "implicitRules": + return ec.fieldContext_FamilyMemberHistoryType_implicitRules(ctx, field) + case "deceasedRange": + return ec.fieldContext_FamilyMemberHistoryType_deceasedRange(ctx, field) + case "resourceType": + return ec.fieldContext_FamilyMemberHistoryType_resourceType(ctx, field) + case "bornDate": + return ec.fieldContext_FamilyMemberHistoryType_bornDate(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type FamilyMemberHistoryType", field.Name) }, @@ -133538,40 +133853,40 @@ func (ec *executionContext) fieldContext_Query_bodyStructure(ctx context.Context IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "description": + return ec.fieldContext_BodyStructureType_description(ctx, field) + case "implicitRules": + return ec.fieldContext_BodyStructureType_implicitRules(ctx, field) case "patient": return ec.fieldContext_BodyStructureType_patient(ctx, field) - case "contained": - return ec.fieldContext_BodyStructureType_contained(ctx, field) + case "language": + return ec.fieldContext_BodyStructureType_language(ctx, field) + case "meta": + return ec.fieldContext_BodyStructureType_meta(ctx, field) case "modifierExtension": return ec.fieldContext_BodyStructureType_modifierExtension(ctx, field) - case "active": - return ec.fieldContext_BodyStructureType_active(ctx, field) - case "identifier": - return ec.fieldContext_BodyStructureType_identifier(ctx, field) - case "image": - return ec.fieldContext_BodyStructureType_image(ctx, field) - case "extension": - return ec.fieldContext_BodyStructureType_extension(ctx, field) + case "includedStructure": + return ec.fieldContext_BodyStructureType_includedStructure(ctx, field) + case "text": + return ec.fieldContext_BodyStructureType_text(ctx, field) + case "contained": + return ec.fieldContext_BodyStructureType_contained(ctx, field) case "excludedStructure": return ec.fieldContext_BodyStructureType_excludedStructure(ctx, field) - case "resourceType": - return ec.fieldContext_BodyStructureType_resourceType(ctx, field) + case "identifier": + return ec.fieldContext_BodyStructureType_identifier(ctx, field) case "id": return ec.fieldContext_BodyStructureType_id(ctx, field) - case "meta": - return ec.fieldContext_BodyStructureType_meta(ctx, field) - case "includedStructure": - return ec.fieldContext_BodyStructureType_includedStructure(ctx, field) - case "implicitRules": - return ec.fieldContext_BodyStructureType_implicitRules(ctx, field) + case "active": + return ec.fieldContext_BodyStructureType_active(ctx, field) case "morphology": return ec.fieldContext_BodyStructureType_morphology(ctx, field) - case "text": - return ec.fieldContext_BodyStructureType_text(ctx, field) - case "description": - return ec.fieldContext_BodyStructureType_description(ctx, field) - case "language": - return ec.fieldContext_BodyStructureType_language(ctx, field) + case "extension": + return ec.fieldContext_BodyStructureType_extension(ctx, field) + case "resourceType": + return ec.fieldContext_BodyStructureType_resourceType(ctx, field) + case "image": + return ec.fieldContext_BodyStructureType_image(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type BodyStructureType", field.Name) }, @@ -133719,6 +134034,106 @@ func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field return fc, nil } +func (ec *executionContext) _Range_id(ctx context.Context, field graphql.CollectedField, obj *model.Range) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Range_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Range_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Range", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Range_low(ctx context.Context, field graphql.CollectedField, obj *model.Range) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Range_low(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Low, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Quantity) + fc.Result = res + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Range_low(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Range", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _Range_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Range) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Range_resourceType(ctx, field) if err != nil { @@ -133796,120 +134211,120 @@ func (ec *executionContext) fieldContext_Range_extension(_ context.Context, fiel IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -133976,49 +134391,8 @@ func (ec *executionContext) fieldContext_Range_high(_ context.Context, field gra return fc, nil } -func (ec *executionContext) _Range_id(ctx context.Context, field graphql.CollectedField, obj *model.Range) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Range_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Range_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Range", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Range_low(ctx context.Context, field graphql.CollectedField, obj *model.Range) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Range_low(ctx, field) +func (ec *executionContext) _Ratio_denominator(ctx context.Context, field graphql.CollectedField, obj *model.Ratio) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Ratio_denominator(ctx, field) if err != nil { return graphql.Null } @@ -134031,7 +134405,7 @@ func (ec *executionContext) _Range_low(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Low, nil + return obj.Denominator, nil }) if err != nil { ec.Error(ctx, err) @@ -134045,9 +134419,9 @@ func (ec *executionContext) _Range_low(ctx context.Context, field graphql.Collec return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Range_low(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Ratio_denominator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Range", + Object: "Ratio", Field: field, IsMethod: false, IsResolver: false, @@ -134112,120 +134486,120 @@ func (ec *executionContext) fieldContext_Ratio_extension(_ context.Context, fiel IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -134374,65 +134748,6 @@ func (ec *executionContext) fieldContext_Ratio_resourceType(_ context.Context, f return fc, nil } -func (ec *executionContext) _Ratio_denominator(ctx context.Context, field graphql.CollectedField, obj *model.Ratio) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Ratio_denominator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Denominator, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Quantity) - fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Ratio_denominator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Ratio", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) - }, - } - return fc, nil -} - func (ec *executionContext) _RatioRange_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.RatioRange) (ret graphql.Marshaler) { fc, err := ec.fieldContext_RatioRange_resourceType(ctx, field) if err != nil { @@ -134569,120 +134884,120 @@ func (ec *executionContext) fieldContext_RatioRange_extension(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -134849,8 +135164,8 @@ func (ec *executionContext) fieldContext_RatioRange_lowNumerator(_ context.Conte return fc, nil } -func (ec *executionContext) _Reference_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Reference_resourceType(ctx, field) +func (ec *executionContext) _Reference_identifier(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Reference_identifier(ctx, field) if err != nil { return graphql.Null } @@ -134863,7 +135178,7 @@ func (ec *executionContext) _Reference_resourceType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -134872,26 +135187,46 @@ func (ec *executionContext) _Reference_resourceType(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Identifier) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Reference_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Reference_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Reference", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _Reference_type(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Reference_type(ctx, field) +func (ec *executionContext) _Reference_reference(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Reference_reference(ctx, field) if err != nil { return graphql.Null } @@ -134904,7 +135239,7 @@ func (ec *executionContext) _Reference_type(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Reference, nil }) if err != nil { ec.Error(ctx, err) @@ -134918,7 +135253,7 @@ func (ec *executionContext) _Reference_type(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Reference_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Reference_reference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Reference", Field: field, @@ -134931,8 +135266,8 @@ func (ec *executionContext) fieldContext_Reference_type(_ context.Context, field return fc, nil } -func (ec *executionContext) _Reference_display(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Reference_display(ctx, field) +func (ec *executionContext) _Reference_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Reference_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -134945,7 +135280,7 @@ func (ec *executionContext) _Reference_display(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Display, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -134959,7 +135294,7 @@ func (ec *executionContext) _Reference_display(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Reference_display(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Reference_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Reference", Field: field, @@ -134972,8 +135307,8 @@ func (ec *executionContext) fieldContext_Reference_display(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Reference_extension(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Reference_extension(ctx, field) +func (ec *executionContext) _Reference_type(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Reference_type(ctx, field) if err != nil { return graphql.Null } @@ -134986,7 +135321,7 @@ func (ec *executionContext) _Reference_extension(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -134995,12 +135330,94 @@ func (ec *executionContext) _Reference_extension(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Reference_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Reference_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Reference", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Reference_display(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Reference_display(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Display, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Reference_display(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Reference", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Reference_extension(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Reference_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Reference_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Reference", Field: field, @@ -135008,120 +135425,120 @@ func (ec *executionContext) fieldContext_Reference_extension(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -135170,8 +135587,8 @@ func (ec *executionContext) fieldContext_Reference_id(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Reference_identifier(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Reference_identifier(ctx, field) +func (ec *executionContext) _RelatedArtifact_type(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_type(ctx, field) if err != nil { return graphql.Null } @@ -135184,7 +135601,7 @@ func (ec *executionContext) _Reference_identifier(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -135193,46 +135610,26 @@ func (ec *executionContext) _Reference_identifier(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Reference_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Reference", + Object: "RelatedArtifact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Reference_reference(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Reference_reference(ctx, field) +func (ec *executionContext) _RelatedArtifact_resource(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_resource(ctx, field) if err != nil { return graphql.Null } @@ -135245,7 +135642,7 @@ func (ec *executionContext) _Reference_reference(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reference, nil + return obj.Resource, nil }) if err != nil { ec.Error(ctx, err) @@ -135259,9 +135656,9 @@ func (ec *executionContext) _Reference_reference(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Reference_reference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_resource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Reference", + Object: "RelatedArtifact", Field: field, IsMethod: false, IsResolver: false, @@ -135272,8 +135669,8 @@ func (ec *executionContext) fieldContext_Reference_reference(_ context.Context, return fc, nil } -func (ec *executionContext) _RelatedArtifact_display(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_display(ctx, field) +func (ec *executionContext) _RelatedArtifact_resourceReference(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) if err != nil { return graphql.Null } @@ -135286,35 +135683,49 @@ func (ec *executionContext) _RelatedArtifact_display(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Display, nil + return obj.ResourceReference, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_display(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_resourceReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "RelatedArtifact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_RelatedArtifact_resourceReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RelatedArtifact_publicationDate(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) +func (ec *executionContext) _RelatedArtifact_extension(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_extension(ctx, field) if err != nil { return graphql.Null } @@ -135327,7 +135738,7 @@ func (ec *executionContext) _RelatedArtifact_publicationDate(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PublicationDate, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -135336,26 +135747,142 @@ func (ec *executionContext) _RelatedArtifact_publicationDate(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_publicationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "RelatedArtifact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _RelatedArtifact_publicationStatus(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) +func (ec *executionContext) _RelatedArtifact_id(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_id(ctx, field) if err != nil { return graphql.Null } @@ -135368,7 +135895,7 @@ func (ec *executionContext) _RelatedArtifact_publicationStatus(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PublicationStatus, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -135382,7 +135909,7 @@ func (ec *executionContext) _RelatedArtifact_publicationStatus(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_publicationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "RelatedArtifact", Field: field, @@ -135395,8 +135922,8 @@ func (ec *executionContext) fieldContext_RelatedArtifact_publicationStatus(_ con return fc, nil } -func (ec *executionContext) _RelatedArtifact_classifier(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_classifier(ctx, field) +func (ec *executionContext) _RelatedArtifact_label(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_label(ctx, field) if err != nil { return graphql.Null } @@ -135409,7 +135936,7 @@ func (ec *executionContext) _RelatedArtifact_classifier(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Classifier, nil + return obj.Label, nil }) if err != nil { ec.Error(ctx, err) @@ -135418,31 +135945,19 @@ func (ec *executionContext) _RelatedArtifact_classifier(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_classifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "RelatedArtifact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -135484,38 +135999,38 @@ func (ec *executionContext) fieldContext_RelatedArtifact_document(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) - case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) case "size": return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) case "title": return ec.fieldContext_Attachment_title(ctx, field) case "creation": return ec.fieldContext_Attachment_creation(ctx, field) case "height": return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) case "hash": return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) case "resourceType": return ec.fieldContext_Attachment_resourceType(ctx, field) - case "id": - return ec.fieldContext_Attachment_id(ctx, field) + case "extension": + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) case "contentType": return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) + case "id": + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, @@ -135523,8 +136038,8 @@ func (ec *executionContext) fieldContext_RelatedArtifact_document(_ context.Cont return fc, nil } -func (ec *executionContext) _RelatedArtifact_resourceReference(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) +func (ec *executionContext) _RelatedArtifact_publicationStatus(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) if err != nil { return graphql.Null } @@ -135537,7 +136052,7 @@ func (ec *executionContext) _RelatedArtifact_resourceReference(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceReference, nil + return obj.PublicationStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -135546,37 +136061,26 @@ func (ec *executionContext) _RelatedArtifact_resourceReference(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_resourceReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_publicationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "RelatedArtifact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_RelatedArtifact_resourceReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _RelatedArtifact_extension(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_extension(ctx, field) +func (ec *executionContext) _RelatedArtifact_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -135589,7 +136093,7 @@ func (ec *executionContext) _RelatedArtifact_extension(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -135598,142 +136102,26 @@ func (ec *executionContext) _RelatedArtifact_extension(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "RelatedArtifact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _RelatedArtifact_id(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_id(ctx, field) +func (ec *executionContext) _RelatedArtifact_classifier(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_classifier(ctx, field) if err != nil { return graphql.Null } @@ -135746,7 +136134,7 @@ func (ec *executionContext) _RelatedArtifact_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Classifier, nil }) if err != nil { ec.Error(ctx, err) @@ -135755,26 +136143,38 @@ func (ec *executionContext) _RelatedArtifact_id(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_classifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "RelatedArtifact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _RelatedArtifact_label(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_label(ctx, field) +func (ec *executionContext) _RelatedArtifact_publicationDate(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) if err != nil { return graphql.Null } @@ -135787,7 +136187,7 @@ func (ec *executionContext) _RelatedArtifact_label(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Label, nil + return obj.PublicationDate, nil }) if err != nil { ec.Error(ctx, err) @@ -135801,7 +136201,7 @@ func (ec *executionContext) _RelatedArtifact_label(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_publicationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "RelatedArtifact", Field: field, @@ -135855,8 +136255,8 @@ func (ec *executionContext) fieldContext_RelatedArtifact_citation(_ context.Cont return fc, nil } -func (ec *executionContext) _RelatedArtifact_resource(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_resource(ctx, field) +func (ec *executionContext) _RelatedArtifact_display(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_display(ctx, field) if err != nil { return graphql.Null } @@ -135869,7 +136269,7 @@ func (ec *executionContext) _RelatedArtifact_resource(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Resource, nil + return obj.Display, nil }) if err != nil { ec.Error(ctx, err) @@ -135883,7 +136283,7 @@ func (ec *executionContext) _RelatedArtifact_resource(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_resource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RelatedArtifact_display(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "RelatedArtifact", Field: field, @@ -135896,8 +136296,8 @@ func (ec *executionContext) fieldContext_RelatedArtifact_resource(_ context.Cont return fc, nil } -func (ec *executionContext) _RelatedArtifact_type(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_type(ctx, field) +func (ec *executionContext) _ResearchStudyAssociatedParty_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyAssociatedParty_extension(ctx, field) if err != nil { return graphql.Null } @@ -135910,7 +136310,7 @@ func (ec *executionContext) _RelatedArtifact_type(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -135919,26 +136319,142 @@ func (ec *executionContext) _RelatedArtifact_type(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RelatedArtifact", + Object: "ResearchStudyAssociatedParty", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _RelatedArtifact_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RelatedArtifact_resourceType(ctx, field) +func (ec *executionContext) _ResearchStudyAssociatedParty_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyAssociatedParty_id(ctx, field) if err != nil { return graphql.Null } @@ -135951,7 +136467,7 @@ func (ec *executionContext) _RelatedArtifact_resourceType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -135965,9 +136481,9 @@ func (ec *executionContext) _RelatedArtifact_resourceType(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RelatedArtifact_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RelatedArtifact", + Object: "ResearchStudyAssociatedParty", Field: field, IsMethod: false, IsResolver: false, @@ -135999,11 +136515,14 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_party(ctx context.Cont return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ResearchStudyAssociatedPartyPartyUnion) + res := resTmp.(model.ResearchStudyAssociatedPartyPartyUnion) fc.Result = res - return ec.marshalOResearchStudyAssociatedPartyPartyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyPartyUnion(ctx, field.Selections, res) + return ec.marshalNResearchStudyAssociatedPartyPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyPartyUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_party(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -136030,8 +136549,8 @@ func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_party(ctx return fc, nil } -func (ec *executionContext) _ResearchStudyAssociatedParty_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyAssociatedParty_extension(ctx, field) +func (ec *executionContext) _ResearchStudyAssociatedParty_role(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyAssociatedParty_role(ctx, field) if err != nil { return graphql.Null } @@ -136044,7 +136563,7 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_extension(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -136053,12 +136572,12 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_extension(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyAssociatedParty", Field: field, @@ -136066,122 +136585,18 @@ func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_extension( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -136223,120 +136638,120 @@ func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_modifierEx IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -136344,8 +136759,8 @@ func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_modifierEx return fc, nil } -func (ec *executionContext) _ResearchStudyAssociatedParty_name(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyAssociatedParty_name(ctx, field) +func (ec *executionContext) _ResearchStudyAssociatedParty_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyAssociatedParty_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -136358,7 +136773,7 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_name(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -136372,7 +136787,7 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_name(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyAssociatedParty", Field: field, @@ -136385,8 +136800,8 @@ func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_name(_ con return fc, nil } -func (ec *executionContext) _ResearchStudyAssociatedParty_role(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyAssociatedParty_role(ctx, field) +func (ec *executionContext) _ResearchStudyAssociatedParty_period(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyAssociatedParty_period(ctx, field) if err != nil { return graphql.Null } @@ -136399,7 +136814,7 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_role(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -136408,12 +136823,12 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_role(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Period) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyAssociatedParty", Field: field, @@ -136421,25 +136836,25 @@ func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_role(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Period_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyAssociatedParty_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyAssociatedParty_id(ctx, field) +func (ec *executionContext) _ResearchStudyAssociatedParty_name(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyAssociatedParty_name(ctx, field) if err != nil { return graphql.Null } @@ -136452,7 +136867,7 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_id(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -136466,7 +136881,7 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_id(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyAssociatedParty", Field: field, @@ -136479,8 +136894,8 @@ func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_id(_ conte return fc, nil } -func (ec *executionContext) _ResearchStudyAssociatedParty_period(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyAssociatedParty_period(ctx, field) +func (ec *executionContext) _ResearchStudyAssociatedParty_classifier(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyAssociatedParty_classifier(ctx, field) if err != nil { return graphql.Null } @@ -136493,7 +136908,7 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_period(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Period, nil + return obj.Classifier, nil }) if err != nil { ec.Error(ctx, err) @@ -136502,12 +136917,12 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_period(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Period) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOPeriod2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_classifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyAssociatedParty", Field: field, @@ -136515,25 +136930,25 @@ func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_period(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Period_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyAssociatedParty_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyAssociatedParty_resourceType(ctx, field) +func (ec *executionContext) _ResearchStudyComparisonGroup_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyComparisonGroup_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -136560,9 +136975,9 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_resourceType(ctx conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyAssociatedParty", + Object: "ResearchStudyComparisonGroup", Field: field, IsMethod: false, IsResolver: false, @@ -136573,8 +136988,8 @@ func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_resourceTy return fc, nil } -func (ec *executionContext) _ResearchStudyAssociatedParty_classifier(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyAssociatedParty_classifier(ctx, field) +func (ec *executionContext) _ResearchStudyComparisonGroup_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyComparisonGroup_extension(ctx, field) if err != nil { return graphql.Null } @@ -136587,7 +137002,7 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_classifier(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Classifier, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -136596,31 +137011,176 @@ func (ec *executionContext) _ResearchStudyAssociatedParty_classifier(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_classifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyAssociatedParty", + Object: "ResearchStudyComparisonGroup", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyComparisonGroup_linkId(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyComparisonGroup_linkId(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LinkID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_linkId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyComparisonGroup", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -136662,120 +137222,120 @@ func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_modifierEx IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -136783,8 +137343,8 @@ func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_modifierEx return fc, nil } -func (ec *executionContext) _ResearchStudyComparisonGroup_observedGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyComparisonGroup_observedGroup(ctx, field) +func (ec *executionContext) _ResearchStudyComparisonGroup_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyComparisonGroup_id(ctx, field) if err != nil { return graphql.Null } @@ -136797,7 +137357,7 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_observedGroup(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ObservedGroup, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -136806,74 +137366,21 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_observedGroup(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GroupType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOGroupType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_observedGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyComparisonGroup", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "member": - return ec.fieldContext_GroupType_member(ctx, field) - case "extension": - return ec.fieldContext_GroupType_extension(ctx, field) - case "meta": - return ec.fieldContext_GroupType_meta(ctx, field) - case "contained": - return ec.fieldContext_GroupType_contained(ctx, field) - case "membership": - return ec.fieldContext_GroupType_membership(ctx, field) - case "resourceType": - return ec.fieldContext_GroupType_resourceType(ctx, field) - case "characteristic": - return ec.fieldContext_GroupType_characteristic(ctx, field) - case "quantity": - return ec.fieldContext_GroupType_quantity(ctx, field) - case "type": - return ec.fieldContext_GroupType_type(ctx, field) - case "active": - return ec.fieldContext_GroupType_active(ctx, field) - case "description": - return ec.fieldContext_GroupType_description(ctx, field) - case "code": - return ec.fieldContext_GroupType_code(ctx, field) - case "id": - return ec.fieldContext_GroupType_id(ctx, field) - case "language": - return ec.fieldContext_GroupType_language(ctx, field) - case "modifierExtension": - return ec.fieldContext_GroupType_modifierExtension(ctx, field) - case "name": - return ec.fieldContext_GroupType_name(ctx, field) - case "implicitRules": - return ec.fieldContext_GroupType_implicitRules(ctx, field) - case "text": - return ec.fieldContext_GroupType_text(ctx, field) - case "managingEntity": - return ec.fieldContext_GroupType_managingEntity(ctx, field) - case "identifier": - return ec.fieldContext_GroupType_identifier(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchStudyComparisonGroup_observedGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } @@ -136918,8 +137425,8 @@ func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_name(_ con return fc, nil } -func (ec *executionContext) _ResearchStudyComparisonGroup_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyComparisonGroup_resourceType(ctx, field) +func (ec *executionContext) _ResearchStudyComparisonGroup_observedGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyComparisonGroup_observedGroup(ctx, field) if err != nil { return graphql.Null } @@ -136932,35 +137439,91 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_resourceType(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ObservedGroup, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.GroupType) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNGroupType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_observedGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyComparisonGroup", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "language": + return ec.fieldContext_GroupType_language(ctx, field) + case "extension": + return ec.fieldContext_GroupType_extension(ctx, field) + case "implicitRules": + return ec.fieldContext_GroupType_implicitRules(ctx, field) + case "identifier": + return ec.fieldContext_GroupType_identifier(ctx, field) + case "member": + return ec.fieldContext_GroupType_member(ctx, field) + case "id": + return ec.fieldContext_GroupType_id(ctx, field) + case "quantity": + return ec.fieldContext_GroupType_quantity(ctx, field) + case "name": + return ec.fieldContext_GroupType_name(ctx, field) + case "text": + return ec.fieldContext_GroupType_text(ctx, field) + case "contained": + return ec.fieldContext_GroupType_contained(ctx, field) + case "code": + return ec.fieldContext_GroupType_code(ctx, field) + case "description": + return ec.fieldContext_GroupType_description(ctx, field) + case "modifierExtension": + return ec.fieldContext_GroupType_modifierExtension(ctx, field) + case "active": + return ec.fieldContext_GroupType_active(ctx, field) + case "resourceType": + return ec.fieldContext_GroupType_resourceType(ctx, field) + case "membership": + return ec.fieldContext_GroupType_membership(ctx, field) + case "type": + return ec.fieldContext_GroupType_type(ctx, field) + case "characteristic": + return ec.fieldContext_GroupType_characteristic(ctx, field) + case "managingEntity": + return ec.fieldContext_GroupType_managingEntity(ctx, field) + case "meta": + return ec.fieldContext_GroupType_meta(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ResearchStudyComparisonGroup_observedGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ResearchStudyComparisonGroup_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyComparisonGroup_id(ctx, field) +func (ec *executionContext) _ResearchStudyComparisonGroup_type(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyComparisonGroup_type(ctx, field) if err != nil { return graphql.Null } @@ -136973,7 +137536,7 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_id(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -136982,19 +137545,31 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_id(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyComparisonGroup", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -137041,8 +137616,8 @@ func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_descriptio return fc, nil } -func (ec *executionContext) _ResearchStudyComparisonGroup_linkId(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyComparisonGroup_linkId(ctx, field) +func (ec *executionContext) _ResearchStudyLabel_type(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyLabel_type(ctx, field) if err != nil { return graphql.Null } @@ -137055,7 +137630,7 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_linkId(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LinkID, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -137064,26 +137639,38 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_linkId(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_linkId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyLabel_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyComparisonGroup", + Object: "ResearchStudyLabel", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyComparisonGroup_type(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyComparisonGroup_type(ctx, field) +func (ec *executionContext) _ResearchStudyLabel_value(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyLabel_value(ctx, field) if err != nil { return graphql.Null } @@ -137096,7 +137683,7 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_type(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -137105,38 +137692,26 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_type(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyLabel_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyComparisonGroup", + Object: "ResearchStudyLabel", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchStudyComparisonGroup_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyComparisonGroup_extension(ctx, field) +func (ec *executionContext) _ResearchStudyLabel_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyLabel_extension(ctx, field) if err != nil { return graphql.Null } @@ -137163,128 +137738,128 @@ func (ec *executionContext) _ResearchStudyComparisonGroup_extension(ctx context. return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyLabel_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyComparisonGroup", + Object: "ResearchStudyLabel", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -137292,8 +137867,8 @@ func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_extension( return fc, nil } -func (ec *executionContext) _ResearchStudyLabel_value(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyLabel_value(ctx, field) +func (ec *executionContext) _ResearchStudyLabel_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyLabel_id(ctx, field) if err != nil { return graphql.Null } @@ -137306,7 +137881,7 @@ func (ec *executionContext) _ResearchStudyLabel_value(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Value, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -137320,7 +137895,7 @@ func (ec *executionContext) _ResearchStudyLabel_value(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyLabel_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyLabel_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyLabel", Field: field, @@ -137333,8 +137908,8 @@ func (ec *executionContext) fieldContext_ResearchStudyLabel_value(_ context.Cont return fc, nil } -func (ec *executionContext) _ResearchStudyLabel_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyLabel_extension(ctx, field) +func (ec *executionContext) _ResearchStudyLabel_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyLabel_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -137347,7 +137922,7 @@ func (ec *executionContext) _ResearchStudyLabel_extension(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -137361,7 +137936,7 @@ func (ec *executionContext) _ResearchStudyLabel_extension(ctx context.Context, f return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyLabel_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyLabel_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyLabel", Field: field, @@ -137369,318 +137944,120 @@ func (ec *executionContext) fieldContext_ResearchStudyLabel_extension(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) case "valueId": return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) case "valueUsageContext": return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ResearchStudyLabel_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyLabel_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ResearchStudyLabel_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResearchStudyLabel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ResearchStudyLabel_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyLabel_modifierExtension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ResearchStudyLabel_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResearchStudyLabel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) case "valueInteger": return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) case "valueUuid": return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -137729,100 +138106,6 @@ func (ec *executionContext) fieldContext_ResearchStudyLabel_resourceType(_ conte return fc, nil } -func (ec *executionContext) _ResearchStudyLabel_type(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyLabel_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.CodeableConcept) - fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ResearchStudyLabel_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResearchStudyLabel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ResearchStudyObjective_description(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyObjective_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ResearchStudyObjective_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResearchStudyObjective", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - func (ec *executionContext) _ResearchStudyObjective_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyObjective) (ret graphql.Marshaler) { fc, err := ec.fieldContext_ResearchStudyObjective_extension(ctx, field) if err != nil { @@ -137859,120 +138142,120 @@ func (ec *executionContext) fieldContext_ResearchStudyObjective_extension(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -138057,120 +138340,120 @@ func (ec *executionContext) fieldContext_ResearchStudyObjective_modifierExtensio IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -138296,6 +138579,8 @@ func (ec *executionContext) fieldContext_ResearchStudyObjective_type(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -138304,8 +138589,6 @@ func (ec *executionContext) fieldContext_ResearchStudyObjective_type(_ context.C return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -138313,8 +138596,8 @@ func (ec *executionContext) fieldContext_ResearchStudyObjective_type(_ context.C return fc, nil } -func (ec *executionContext) _ResearchStudyOutcomeMeasure_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyOutcomeMeasure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyOutcomeMeasure_id(ctx, field) +func (ec *executionContext) _ResearchStudyObjective_description(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyObjective_description(ctx, field) if err != nil { return graphql.Null } @@ -138327,7 +138610,7 @@ func (ec *executionContext) _ResearchStudyOutcomeMeasure_id(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -138341,9 +138624,9 @@ func (ec *executionContext) _ResearchStudyOutcomeMeasure_id(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyObjective_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyOutcomeMeasure", + Object: "ResearchStudyObjective", Field: field, IsMethod: false, IsResolver: false, @@ -138354,163 +138637,6 @@ func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_id(_ contex return fc, nil } -func (ec *executionContext) _ResearchStudyOutcomeMeasure_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyOutcomeMeasure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyOutcomeMeasure_modifierExtension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResearchStudyOutcomeMeasure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - func (ec *executionContext) _ResearchStudyOutcomeMeasure_name(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyOutcomeMeasure) (ret graphql.Marshaler) { fc, err := ec.fieldContext_ResearchStudyOutcomeMeasure_name(ctx, field) if err != nil { @@ -138629,6 +138755,8 @@ func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_type(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -138637,8 +138765,6 @@ func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_type(_ cont return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -138723,120 +138849,120 @@ func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_extension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -138844,8 +138970,8 @@ func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_extension(_ return fc, nil } -func (ec *executionContext) _ResearchStudyProgressStatus_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyProgressStatus_resourceType(ctx, field) +func (ec *executionContext) _ResearchStudyOutcomeMeasure_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyOutcomeMeasure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyOutcomeMeasure_id(ctx, field) if err != nil { return graphql.Null } @@ -138858,7 +138984,7 @@ func (ec *executionContext) _ResearchStudyProgressStatus_resourceType(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -138872,9 +138998,9 @@ func (ec *executionContext) _ResearchStudyProgressStatus_resourceType(ctx contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyProgressStatus", + Object: "ResearchStudyOutcomeMeasure", Field: field, IsMethod: false, IsResolver: false, @@ -138885,8 +139011,8 @@ func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_resourceTyp return fc, nil } -func (ec *executionContext) _ResearchStudyProgressStatus_state(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyProgressStatus_state(ctx, field) +func (ec *executionContext) _ResearchStudyOutcomeMeasure_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyOutcomeMeasure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyOutcomeMeasure_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -138899,7 +139025,7 @@ func (ec *executionContext) _ResearchStudyProgressStatus_state(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.State, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -138908,72 +139034,135 @@ func (ec *executionContext) _ResearchStudyProgressStatus_state(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyProgressStatus", + Object: "ResearchStudyOutcomeMeasure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ResearchStudyProgressStatus_actual(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyProgressStatus_actual(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Actual, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_actual(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResearchStudyProgressStatus", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil @@ -139015,120 +139204,120 @@ func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_extension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -139213,120 +139402,120 @@ func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_modifierExt IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -139370,16 +139559,16 @@ func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_period(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -139387,8 +139576,8 @@ func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_period(_ co return fc, nil } -func (ec *executionContext) _ResearchStudyRecruitment_targetNumber(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyRecruitment_targetNumber(ctx, field) +func (ec *executionContext) _ResearchStudyProgressStatus_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyProgressStatus_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -139401,7 +139590,7 @@ func (ec *executionContext) _ResearchStudyRecruitment_targetNumber(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TargetNumber, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -139415,9 +139604,9 @@ func (ec *executionContext) _ResearchStudyRecruitment_targetNumber(ctx context.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyRecruitment_targetNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyRecruitment", + Object: "ResearchStudyProgressStatus", Field: field, IsMethod: false, IsResolver: false, @@ -139428,8 +139617,8 @@ func (ec *executionContext) fieldContext_ResearchStudyRecruitment_targetNumber(_ return fc, nil } -func (ec *executionContext) _ResearchStudyRecruitment_actualGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyRecruitment_actualGroup(ctx, field) +func (ec *executionContext) _ResearchStudyProgressStatus_state(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyProgressStatus_state(ctx, field) if err != nil { return graphql.Null } @@ -139442,7 +139631,7 @@ func (ec *executionContext) _ResearchStudyRecruitment_actualGroup(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ActualGroup, nil + return obj.State, nil }) if err != nil { ec.Error(ctx, err) @@ -139451,73 +139640,73 @@ func (ec *executionContext) _ResearchStudyRecruitment_actualGroup(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.GroupType) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOGroupType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyRecruitment_actualGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyRecruitment", + Object: "ResearchStudyProgressStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "member": - return ec.fieldContext_GroupType_member(ctx, field) - case "extension": - return ec.fieldContext_GroupType_extension(ctx, field) - case "meta": - return ec.fieldContext_GroupType_meta(ctx, field) - case "contained": - return ec.fieldContext_GroupType_contained(ctx, field) - case "membership": - return ec.fieldContext_GroupType_membership(ctx, field) case "resourceType": - return ec.fieldContext_GroupType_resourceType(ctx, field) - case "characteristic": - return ec.fieldContext_GroupType_characteristic(ctx, field) - case "quantity": - return ec.fieldContext_GroupType_quantity(ctx, field) - case "type": - return ec.fieldContext_GroupType_type(ctx, field) - case "active": - return ec.fieldContext_GroupType_active(ctx, field) - case "description": - return ec.fieldContext_GroupType_description(ctx, field) - case "code": - return ec.fieldContext_GroupType_code(ctx, field) - case "id": - return ec.fieldContext_GroupType_id(ctx, field) - case "language": - return ec.fieldContext_GroupType_language(ctx, field) - case "modifierExtension": - return ec.fieldContext_GroupType_modifierExtension(ctx, field) - case "name": - return ec.fieldContext_GroupType_name(ctx, field) - case "implicitRules": - return ec.fieldContext_GroupType_implicitRules(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": - return ec.fieldContext_GroupType_text(ctx, field) - case "managingEntity": - return ec.fieldContext_GroupType_managingEntity(ctx, field) - case "identifier": - return ec.fieldContext_GroupType_identifier(ctx, field) + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyProgressStatus_actual(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyProgressStatus_actual(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchStudyRecruitment_actualGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Actual, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyProgressStatus_actual(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyProgressStatus", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } @@ -139584,11 +139773,14 @@ func (ec *executionContext) _ResearchStudyRecruitment_eligibility(ctx context.Co return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ResearchStudyRecruitmentEligibilityUnion) + res := resTmp.(model.ResearchStudyRecruitmentEligibilityUnion) fc.Result = res - return ec.marshalOResearchStudyRecruitmentEligibilityUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentEligibilityUnion(ctx, field.Selections, res) + return ec.marshalNResearchStudyRecruitmentEligibilityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentEligibilityUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_ResearchStudyRecruitment_eligibility(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -139651,120 +139843,120 @@ func (ec *executionContext) fieldContext_ResearchStudyRecruitment_extension(_ co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -139849,120 +140041,120 @@ func (ec *executionContext) fieldContext_ResearchStudyRecruitment_modifierExtens IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -140011,61 +140203,8 @@ func (ec *executionContext) fieldContext_ResearchStudyRecruitment_resourceType(_ return fc, nil } -func (ec *executionContext) _ResearchStudyType_region(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_region(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Region, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.CodeableConcept) - fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ResearchStudyType_region(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResearchStudyType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ResearchStudyType_title(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_title(ctx, field) +func (ec *executionContext) _ResearchStudyRecruitment_targetNumber(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyRecruitment_targetNumber(ctx, field) if err != nil { return graphql.Null } @@ -140078,7 +140217,7 @@ func (ec *executionContext) _ResearchStudyType_title(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Title, nil + return obj.TargetNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -140092,9 +140231,9 @@ func (ec *executionContext) _ResearchStudyType_title(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyRecruitment_targetNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyType", + Object: "ResearchStudyRecruitment", Field: field, IsMethod: false, IsResolver: false, @@ -140105,8 +140244,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_title(_ context.Conte return fc, nil } -func (ec *executionContext) _ResearchStudyType_condition(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_condition(ctx, field) +func (ec *executionContext) _ResearchStudyRecruitment_actualGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyRecruitment_actualGroup(ctx, field) if err != nil { return graphql.Null } @@ -140119,141 +140258,91 @@ func (ec *executionContext) _ResearchStudyType_condition(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Condition, nil + return obj.ActualGroup, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.GroupType) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNGroupType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyRecruitment_actualGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchStudyType", + Object: "ResearchStudyRecruitment", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "language": + return ec.fieldContext_GroupType_language(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_GroupType_extension(ctx, field) + case "implicitRules": + return ec.fieldContext_GroupType_implicitRules(ctx, field) + case "identifier": + return ec.fieldContext_GroupType_identifier(ctx, field) + case "member": + return ec.fieldContext_GroupType_member(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_GroupType_id(ctx, field) + case "quantity": + return ec.fieldContext_GroupType_quantity(ctx, field) + case "name": + return ec.fieldContext_GroupType_name(ctx, field) + case "text": + return ec.fieldContext_GroupType_text(ctx, field) + case "contained": + return ec.fieldContext_GroupType_contained(ctx, field) + case "code": + return ec.fieldContext_GroupType_code(ctx, field) + case "description": + return ec.fieldContext_GroupType_description(ctx, field) + case "modifierExtension": + return ec.fieldContext_GroupType_modifierExtension(ctx, field) + case "active": + return ec.fieldContext_GroupType_active(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_GroupType_resourceType(ctx, field) + case "membership": + return ec.fieldContext_GroupType_membership(ctx, field) + case "type": + return ec.fieldContext_GroupType_type(ctx, field) + case "characteristic": + return ec.fieldContext_GroupType_characteristic(ctx, field) + case "managingEntity": + return ec.fieldContext_GroupType_managingEntity(ctx, field) + case "meta": + return ec.fieldContext_GroupType_meta(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupType", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _ResearchStudyType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_contained(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contained, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.ResourceUnion) - fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ResearchStudyType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResearchStudyType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ResearchStudyType_period(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_period(ctx, field) - if err != nil { - return graphql.Null - } ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Period, nil - }) - if err != nil { + if fc.Args, err = ec.field_ResearchStudyRecruitment_actualGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Period) - fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ResearchStudyType_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResearchStudyType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) - }, + return fc, err } return fc, nil } -func (ec *executionContext) _ResearchStudyType_descriptionSummary(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_descriptionSummary(ctx, field) +func (ec *executionContext) _ResearchStudyType_language(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_language(ctx, field) if err != nil { return graphql.Null } @@ -140266,7 +140355,7 @@ func (ec *executionContext) _ResearchStudyType_descriptionSummary(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DescriptionSummary, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -140280,7 +140369,7 @@ func (ec *executionContext) _ResearchStudyType_descriptionSummary(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_descriptionSummary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -140293,8 +140382,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_descriptionSummary(_ return fc, nil } -func (ec *executionContext) _ResearchStudyType_primaryPurposeType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_primaryPurposeType(ctx, field) +func (ec *executionContext) _ResearchStudyType_region(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_region(ctx, field) if err != nil { return graphql.Null } @@ -140307,7 +140396,7 @@ func (ec *executionContext) _ResearchStudyType_primaryPurposeType(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PrimaryPurposeType, nil + return obj.Region, nil }) if err != nil { ec.Error(ctx, err) @@ -140316,12 +140405,12 @@ func (ec *executionContext) _ResearchStudyType_primaryPurposeType(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_primaryPurposeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_region(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -140329,6 +140418,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_primaryPurposeType(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -140337,8 +140428,6 @@ func (ec *executionContext) fieldContext_ResearchStudyType_primaryPurposeType(_ return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -140346,8 +140435,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_primaryPurposeType(_ return fc, nil } -func (ec *executionContext) _ResearchStudyType_comparisonGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_comparisonGroup(ctx, field) +func (ec *executionContext) _ResearchStudyType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -140360,7 +140449,7 @@ func (ec *executionContext) _ResearchStudyType_comparisonGroup(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ComparisonGroup, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -140369,12 +140458,12 @@ func (ec *executionContext) _ResearchStudyType_comparisonGroup(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ResearchStudyComparisonGroup) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOResearchStudyComparisonGroup2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_comparisonGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -140382,33 +140471,33 @@ func (ec *executionContext) fieldContext_ResearchStudyType_comparisonGroup(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "modifierExtension": - return ec.fieldContext_ResearchStudyComparisonGroup_modifierExtension(ctx, field) - case "observedGroup": - return ec.fieldContext_ResearchStudyComparisonGroup_observedGroup(ctx, field) - case "name": - return ec.fieldContext_ResearchStudyComparisonGroup_name(ctx, field) + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_ResearchStudyComparisonGroup_resourceType(ctx, field) - case "id": - return ec.fieldContext_ResearchStudyComparisonGroup_id(ctx, field) - case "description": - return ec.fieldContext_ResearchStudyComparisonGroup_description(ctx, field) - case "linkId": - return ec.fieldContext_ResearchStudyComparisonGroup_linkId(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) case "type": - return ec.fieldContext_ResearchStudyComparisonGroup_type(ctx, field) - case "extension": - return ec.fieldContext_ResearchStudyComparisonGroup_extension(ctx, field) + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ResearchStudyComparisonGroup", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_whyStopped(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_whyStopped(ctx, field) +func (ec *executionContext) _ResearchStudyType_note(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_note(ctx, field) if err != nil { return graphql.Null } @@ -140421,47 +140510,49 @@ func (ec *executionContext) _ResearchStudyType_whyStopped(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.WhyStopped, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(model.ResearchStudyNoteUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNResearchStudyNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_whyStopped(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type ResearchStudyNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ResearchStudyType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ResearchStudyType_date(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_date(ctx, field) +func (ec *executionContext) _ResearchStudyType_focus(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_focus(ctx, field) if err != nil { return graphql.Null } @@ -140474,7 +140565,7 @@ func (ec *executionContext) _ResearchStudyType_date(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Date, nil + return obj.Focus, nil }) if err != nil { ec.Error(ctx, err) @@ -140483,26 +140574,36 @@ func (ec *executionContext) _ResearchStudyType_date(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_focus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_recruitment(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_recruitment(ctx, field) +func (ec *executionContext) _ResearchStudyType_primaryPurposeType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_primaryPurposeType(ctx, field) if err != nil { return graphql.Null } @@ -140515,7 +140616,7 @@ func (ec *executionContext) _ResearchStudyType_recruitment(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Recruitment, nil + return obj.PrimaryPurposeType, nil }) if err != nil { ec.Error(ctx, err) @@ -140524,37 +140625,38 @@ func (ec *executionContext) _ResearchStudyType_recruitment(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResearchStudyRecruitmentUnion) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOResearchStudyRecruitmentUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentUnion(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_recruitment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_primaryPurposeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResearchStudyRecruitmentUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchStudyType_recruitment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ResearchStudyType_classifier(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_classifier(ctx, field) +func (ec *executionContext) _ResearchStudyType_progressStatus(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_progressStatus(ctx, field) if err != nil { return graphql.Null } @@ -140567,7 +140669,7 @@ func (ec *executionContext) _ResearchStudyType_classifier(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Classifier, nil + return obj.ProgressStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -140576,12 +140678,12 @@ func (ec *executionContext) _ResearchStudyType_classifier(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.ResearchStudyProgressStatus) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOResearchStudyProgressStatus2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_classifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_progressStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -140589,25 +140691,29 @@ func (ec *executionContext) fieldContext_ResearchStudyType_classifier(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_ResearchStudyProgressStatus_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_ResearchStudyProgressStatus_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ResearchStudyProgressStatus_modifierExtension(ctx, field) + case "period": + return ec.fieldContext_ResearchStudyProgressStatus_period(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_ResearchStudyProgressStatus_resourceType(ctx, field) + case "state": + return ec.fieldContext_ResearchStudyProgressStatus_state(ctx, field) + case "actual": + return ec.fieldContext_ResearchStudyProgressStatus_actual(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ResearchStudyProgressStatus", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_phase(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_phase(ctx, field) +func (ec *executionContext) _ResearchStudyType_whyStopped(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_whyStopped(ctx, field) if err != nil { return graphql.Null } @@ -140620,7 +140726,7 @@ func (ec *executionContext) _ResearchStudyType_phase(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Phase, nil + return obj.WhyStopped, nil }) if err != nil { ec.Error(ctx, err) @@ -140634,7 +140740,7 @@ func (ec *executionContext) _ResearchStudyType_phase(ctx context.Context, field return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_whyStopped(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -140642,6 +140748,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_phase(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -140650,8 +140758,6 @@ func (ec *executionContext) fieldContext_ResearchStudyType_phase(_ context.Conte return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -140659,8 +140765,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_phase(_ context.Conte return fc, nil } -func (ec *executionContext) _ResearchStudyType_language(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_language(ctx, field) +func (ec *executionContext) _ResearchStudyType_result(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_result(ctx, field) if err != nil { return graphql.Null } @@ -140673,35 +140779,49 @@ func (ec *executionContext) _ResearchStudyType_language(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Result, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ResearchStudyResultUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNResearchStudyResultUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyResultUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_result(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResearchStudyResultUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ResearchStudyType_result_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ResearchStudyType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_meta(ctx, field) +func (ec *executionContext) _ResearchStudyType_version(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_version(ctx, field) if err != nil { return graphql.Null } @@ -140714,7 +140834,7 @@ func (ec *executionContext) _ResearchStudyType_meta(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -140723,46 +140843,26 @@ func (ec *executionContext) _ResearchStudyType_meta(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) - case "id": - return ec.fieldContext_Meta_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_name(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_name(ctx, field) +func (ec *executionContext) _ResearchStudyType_url(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_url(ctx, field) if err != nil { return graphql.Null } @@ -140775,7 +140875,7 @@ func (ec *executionContext) _ResearchStudyType_name(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.URL, nil }) if err != nil { ec.Error(ctx, err) @@ -140789,7 +140889,7 @@ func (ec *executionContext) _ResearchStudyType_name(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -140802,8 +140902,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_name(_ context.Contex return fc, nil } -func (ec *executionContext) _ResearchStudyType_text(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_text(ctx, field) +func (ec *executionContext) _ResearchStudyType_relatedArtifact(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_relatedArtifact(ctx, field) if err != nil { return graphql.Null } @@ -140816,7 +140916,7 @@ func (ec *executionContext) _ResearchStudyType_text(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.RelatedArtifact, nil }) if err != nil { ec.Error(ctx, err) @@ -140825,12 +140925,12 @@ func (ec *executionContext) _ResearchStudyType_text(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.([]*model.RelatedArtifact) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalORelatedArtifact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_relatedArtifact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -140838,25 +140938,41 @@ func (ec *executionContext) fieldContext_ResearchStudyType_text(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) + case "type": + return ec.fieldContext_RelatedArtifact_type(ctx, field) + case "resource": + return ec.fieldContext_RelatedArtifact_resource(ctx, field) + case "resourceReference": + return ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) + return ec.fieldContext_RelatedArtifact_extension(ctx, field) case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_RelatedArtifact_id(ctx, field) + case "label": + return ec.fieldContext_RelatedArtifact_label(ctx, field) + case "document": + return ec.fieldContext_RelatedArtifact_document(ctx, field) + case "publicationStatus": + return ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_RelatedArtifact_resourceType(ctx, field) + case "classifier": + return ec.fieldContext_RelatedArtifact_classifier(ctx, field) + case "publicationDate": + return ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) + case "citation": + return ec.fieldContext_RelatedArtifact_citation(ctx, field) + case "display": + return ec.fieldContext_RelatedArtifact_display(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RelatedArtifact", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_result(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_result(ctx, field) +func (ec *executionContext) _ResearchStudyType_name(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_name(ctx, field) if err != nil { return graphql.Null } @@ -140869,7 +140985,7 @@ func (ec *executionContext) _ResearchStudyType_result(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Result, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -140878,37 +140994,26 @@ func (ec *executionContext) _ResearchStudyType_result(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResearchStudyResultUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResearchStudyResultUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyResultUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_result(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResearchStudyResultUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchStudyType_result_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ResearchStudyType_progressStatus(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_progressStatus(ctx, field) +func (ec *executionContext) _ResearchStudyType_studyDesign(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_studyDesign(ctx, field) if err != nil { return graphql.Null } @@ -140921,7 +141026,7 @@ func (ec *executionContext) _ResearchStudyType_progressStatus(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgressStatus, nil + return obj.StudyDesign, nil }) if err != nil { ec.Error(ctx, err) @@ -140930,12 +141035,12 @@ func (ec *executionContext) _ResearchStudyType_progressStatus(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ResearchStudyProgressStatus) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOResearchStudyProgressStatus2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_progressStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_studyDesign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -140944,28 +141049,24 @@ func (ec *executionContext) fieldContext_ResearchStudyType_progressStatus(_ cont Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "resourceType": - return ec.fieldContext_ResearchStudyProgressStatus_resourceType(ctx, field) - case "state": - return ec.fieldContext_ResearchStudyProgressStatus_state(ctx, field) - case "actual": - return ec.fieldContext_ResearchStudyProgressStatus_actual(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_ResearchStudyProgressStatus_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_ResearchStudyProgressStatus_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ResearchStudyProgressStatus_modifierExtension(ctx, field) - case "period": - return ec.fieldContext_ResearchStudyProgressStatus_period(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ResearchStudyProgressStatus", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_modifierExtension(ctx, field) +func (ec *executionContext) _ResearchStudyType_objective(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_objective(ctx, field) if err != nil { return graphql.Null } @@ -140978,7 +141079,7 @@ func (ec *executionContext) _ResearchStudyType_modifierExtension(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Objective, nil }) if err != nil { ec.Error(ctx, err) @@ -140987,12 +141088,12 @@ func (ec *executionContext) _ResearchStudyType_modifierExtension(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.ResearchStudyObjective) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOResearchStudyObjective2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_objective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -141000,129 +141101,29 @@ func (ec *executionContext) fieldContext_ResearchStudyType_modifierExtension(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "extension": + return ec.fieldContext_ResearchStudyObjective_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_ResearchStudyObjective_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ResearchStudyObjective_modifierExtension(ctx, field) + case "name": + return ec.fieldContext_ResearchStudyObjective_name(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_ResearchStudyObjective_resourceType(ctx, field) + case "type": + return ec.fieldContext_ResearchStudyObjective_type(ctx, field) + case "description": + return ec.fieldContext_ResearchStudyObjective_description(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ResearchStudyObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_associatedParty(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_associatedParty(ctx, field) +func (ec *executionContext) _ResearchStudyType_recruitment(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_recruitment(ctx, field) if err != nil { return graphql.Null } @@ -141135,28 +141136,31 @@ func (ec *executionContext) _ResearchStudyType_associatedParty(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AssociatedParty, nil + return obj.Recruitment, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ResearchStudyAssociatedPartyUnion) + res := resTmp.(model.ResearchStudyRecruitmentUnion) fc.Result = res - return ec.marshalOResearchStudyAssociatedPartyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyUnion(ctx, field.Selections, res) + return ec.marshalNResearchStudyRecruitmentUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_associatedParty(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_recruitment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResearchStudyAssociatedPartyUnion does not have child fields") + return nil, errors.New("field of type ResearchStudyRecruitmentUnion does not have child fields") }, } defer func() { @@ -141166,15 +141170,15 @@ func (ec *executionContext) fieldContext_ResearchStudyType_associatedParty(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchStudyType_associatedParty_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ResearchStudyType_recruitment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ResearchStudyType_description(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_description(ctx, field) +func (ec *executionContext) _ResearchStudyType_title(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_title(ctx, field) if err != nil { return graphql.Null } @@ -141187,7 +141191,7 @@ func (ec *executionContext) _ResearchStudyType_description(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Title, nil }) if err != nil { ec.Error(ctx, err) @@ -141201,7 +141205,7 @@ func (ec *executionContext) _ResearchStudyType_description(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -141214,8 +141218,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_description(_ context return fc, nil } -func (ec *executionContext) _ResearchStudyType_site(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_site(ctx, field) +func (ec *executionContext) _ResearchStudyType_associatedParty(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_associatedParty(ctx, field) if err != nil { return graphql.Null } @@ -141228,28 +141232,31 @@ func (ec *executionContext) _ResearchStudyType_site(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Site, nil + return obj.AssociatedParty, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.ResearchStudySiteUnion) + res := resTmp.(model.ResearchStudyAssociatedPartyUnion) fc.Result = res - return ec.marshalOResearchStudySiteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudySiteUnion(ctx, field.Selections, res) + return ec.marshalNResearchStudyAssociatedPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_site(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_associatedParty(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResearchStudySiteUnion does not have child fields") + return nil, errors.New("field of type ResearchStudyAssociatedPartyUnion does not have child fields") }, } defer func() { @@ -141259,15 +141266,15 @@ func (ec *executionContext) fieldContext_ResearchStudyType_site(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchStudyType_site_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ResearchStudyType_associatedParty_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ResearchStudyType_url(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_url(ctx, field) +func (ec *executionContext) _ResearchStudyType_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_id(ctx, field) if err != nil { return graphql.Null } @@ -141280,7 +141287,7 @@ func (ec *executionContext) _ResearchStudyType_url(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.URL, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -141294,7 +141301,7 @@ func (ec *executionContext) _ResearchStudyType_url(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -141307,8 +141314,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_url(_ context.Context return fc, nil } -func (ec *executionContext) _ResearchStudyType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_implicitRules(ctx, field) +func (ec *executionContext) _ResearchStudyType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_contained(ctx, field) if err != nil { return graphql.Null } @@ -141321,7 +141328,7 @@ func (ec *executionContext) _ResearchStudyType_implicitRules(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -141330,26 +141337,26 @@ func (ec *executionContext) _ResearchStudyType_implicitRules(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_version(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_version(ctx, field) +func (ec *executionContext) _ResearchStudyType_description(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_description(ctx, field) if err != nil { return graphql.Null } @@ -141362,7 +141369,7 @@ func (ec *executionContext) _ResearchStudyType_version(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -141376,7 +141383,7 @@ func (ec *executionContext) _ResearchStudyType_version(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -141389,8 +141396,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_version(_ context.Con return fc, nil } -func (ec *executionContext) _ResearchStudyType_outcomeMeasure(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_outcomeMeasure(ctx, field) +func (ec *executionContext) _ResearchStudyType_comparisonGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_comparisonGroup(ctx, field) if err != nil { return graphql.Null } @@ -141403,7 +141410,7 @@ func (ec *executionContext) _ResearchStudyType_outcomeMeasure(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OutcomeMeasure, nil + return obj.ComparisonGroup, nil }) if err != nil { ec.Error(ctx, err) @@ -141412,12 +141419,12 @@ func (ec *executionContext) _ResearchStudyType_outcomeMeasure(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ResearchStudyOutcomeMeasure) + res := resTmp.([]*model.ResearchStudyComparisonGroup) fc.Result = res - return ec.marshalOResearchStudyOutcomeMeasure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx, field.Selections, res) + return ec.marshalOResearchStudyComparisonGroup2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_outcomeMeasure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_comparisonGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -141425,29 +141432,33 @@ func (ec *executionContext) fieldContext_ResearchStudyType_outcomeMeasure(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_ResearchStudyOutcomeMeasure_id(ctx, field) + case "resourceType": + return ec.fieldContext_ResearchStudyComparisonGroup_resourceType(ctx, field) + case "extension": + return ec.fieldContext_ResearchStudyComparisonGroup_extension(ctx, field) + case "linkId": + return ec.fieldContext_ResearchStudyComparisonGroup_linkId(ctx, field) case "modifierExtension": - return ec.fieldContext_ResearchStudyOutcomeMeasure_modifierExtension(ctx, field) + return ec.fieldContext_ResearchStudyComparisonGroup_modifierExtension(ctx, field) + case "id": + return ec.fieldContext_ResearchStudyComparisonGroup_id(ctx, field) case "name": - return ec.fieldContext_ResearchStudyOutcomeMeasure_name(ctx, field) - case "resourceType": - return ec.fieldContext_ResearchStudyOutcomeMeasure_resourceType(ctx, field) + return ec.fieldContext_ResearchStudyComparisonGroup_name(ctx, field) + case "observedGroup": + return ec.fieldContext_ResearchStudyComparisonGroup_observedGroup(ctx, field) case "type": - return ec.fieldContext_ResearchStudyOutcomeMeasure_type(ctx, field) + return ec.fieldContext_ResearchStudyComparisonGroup_type(ctx, field) case "description": - return ec.fieldContext_ResearchStudyOutcomeMeasure_description(ctx, field) - case "extension": - return ec.fieldContext_ResearchStudyOutcomeMeasure_extension(ctx, field) + return ec.fieldContext_ResearchStudyComparisonGroup_description(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ResearchStudyOutcomeMeasure", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ResearchStudyComparisonGroup", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_id(ctx, field) +func (ec *executionContext) _ResearchStudyType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -141460,7 +141471,7 @@ func (ec *executionContext) _ResearchStudyType_id(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -141474,7 +141485,7 @@ func (ec *executionContext) _ResearchStudyType_id(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -141487,8 +141498,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_id(_ context.Context, return fc, nil } -func (ec *executionContext) _ResearchStudyType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_identifier(ctx, field) +func (ec *executionContext) _ResearchStudyType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_partOf(ctx, field) if err != nil { return graphql.Null } @@ -141501,21 +141512,24 @@ func (ec *executionContext) _ResearchStudyType_identifier(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.PartOf, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*model.ResearchStudyType) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalNResearchStudyType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -141523,33 +141537,106 @@ func (ec *executionContext) fieldContext_ResearchStudyType_identifier(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) - }, - } + case "language": + return ec.fieldContext_ResearchStudyType_language(ctx, field) + case "region": + return ec.fieldContext_ResearchStudyType_region(ctx, field) + case "identifier": + return ec.fieldContext_ResearchStudyType_identifier(ctx, field) + case "note": + return ec.fieldContext_ResearchStudyType_note(ctx, field) + case "focus": + return ec.fieldContext_ResearchStudyType_focus(ctx, field) + case "primaryPurposeType": + return ec.fieldContext_ResearchStudyType_primaryPurposeType(ctx, field) + case "progressStatus": + return ec.fieldContext_ResearchStudyType_progressStatus(ctx, field) + case "whyStopped": + return ec.fieldContext_ResearchStudyType_whyStopped(ctx, field) + case "result": + return ec.fieldContext_ResearchStudyType_result(ctx, field) + case "version": + return ec.fieldContext_ResearchStudyType_version(ctx, field) + case "url": + return ec.fieldContext_ResearchStudyType_url(ctx, field) + case "relatedArtifact": + return ec.fieldContext_ResearchStudyType_relatedArtifact(ctx, field) + case "name": + return ec.fieldContext_ResearchStudyType_name(ctx, field) + case "studyDesign": + return ec.fieldContext_ResearchStudyType_studyDesign(ctx, field) + case "objective": + return ec.fieldContext_ResearchStudyType_objective(ctx, field) + case "recruitment": + return ec.fieldContext_ResearchStudyType_recruitment(ctx, field) + case "title": + return ec.fieldContext_ResearchStudyType_title(ctx, field) + case "associatedParty": + return ec.fieldContext_ResearchStudyType_associatedParty(ctx, field) + case "id": + return ec.fieldContext_ResearchStudyType_id(ctx, field) + case "contained": + return ec.fieldContext_ResearchStudyType_contained(ctx, field) + case "description": + return ec.fieldContext_ResearchStudyType_description(ctx, field) + case "comparisonGroup": + return ec.fieldContext_ResearchStudyType_comparisonGroup(ctx, field) + case "implicitRules": + return ec.fieldContext_ResearchStudyType_implicitRules(ctx, field) + case "partOf": + return ec.fieldContext_ResearchStudyType_partOf(ctx, field) + case "classifier": + return ec.fieldContext_ResearchStudyType_classifier(ctx, field) + case "label": + return ec.fieldContext_ResearchStudyType_label(ctx, field) + case "keyword": + return ec.fieldContext_ResearchStudyType_keyword(ctx, field) + case "modifierExtension": + return ec.fieldContext_ResearchStudyType_modifierExtension(ctx, field) + case "period": + return ec.fieldContext_ResearchStudyType_period(ctx, field) + case "resourceType": + return ec.fieldContext_ResearchStudyType_resourceType(ctx, field) + case "date": + return ec.fieldContext_ResearchStudyType_date(ctx, field) + case "descriptionSummary": + return ec.fieldContext_ResearchStudyType_descriptionSummary(ctx, field) + case "extension": + return ec.fieldContext_ResearchStudyType_extension(ctx, field) + case "text": + return ec.fieldContext_ResearchStudyType_text(ctx, field) + case "meta": + return ec.fieldContext_ResearchStudyType_meta(ctx, field) + case "phase": + return ec.fieldContext_ResearchStudyType_phase(ctx, field) + case "condition": + return ec.fieldContext_ResearchStudyType_condition(ctx, field) + case "status": + return ec.fieldContext_ResearchStudyType_status(ctx, field) + case "outcomeMeasure": + return ec.fieldContext_ResearchStudyType_outcomeMeasure(ctx, field) + case "site": + return ec.fieldContext_ResearchStudyType_site(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ResearchStudyType", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ResearchStudyType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ResearchStudyType_objective(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_objective(ctx, field) +func (ec *executionContext) _ResearchStudyType_classifier(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_classifier(ctx, field) if err != nil { return graphql.Null } @@ -141562,7 +141649,7 @@ func (ec *executionContext) _ResearchStudyType_objective(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Objective, nil + return obj.Classifier, nil }) if err != nil { ec.Error(ctx, err) @@ -141571,12 +141658,12 @@ func (ec *executionContext) _ResearchStudyType_objective(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ResearchStudyObjective) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOResearchStudyObjective2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_objective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_classifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -141584,29 +141671,25 @@ func (ec *executionContext) fieldContext_ResearchStudyType_objective(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "description": - return ec.fieldContext_ResearchStudyObjective_description(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_ResearchStudyObjective_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_ResearchStudyObjective_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ResearchStudyObjective_modifierExtension(ctx, field) - case "name": - return ec.fieldContext_ResearchStudyObjective_name(ctx, field) - case "resourceType": - return ec.fieldContext_ResearchStudyObjective_resourceType(ctx, field) - case "type": - return ec.fieldContext_ResearchStudyObjective_type(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ResearchStudyObjective", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_resourceType(ctx, field) +func (ec *executionContext) _ResearchStudyType_label(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_label(ctx, field) if err != nil { return graphql.Null } @@ -141619,7 +141702,7 @@ func (ec *executionContext) _ResearchStudyType_resourceType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Label, nil }) if err != nil { ec.Error(ctx, err) @@ -141628,19 +141711,33 @@ func (ec *executionContext) _ResearchStudyType_resourceType(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.ResearchStudyLabel) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResearchStudyLabel2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "type": + return ec.fieldContext_ResearchStudyLabel_type(ctx, field) + case "value": + return ec.fieldContext_ResearchStudyLabel_value(ctx, field) + case "extension": + return ec.fieldContext_ResearchStudyLabel_extension(ctx, field) + case "id": + return ec.fieldContext_ResearchStudyLabel_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ResearchStudyLabel_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_ResearchStudyLabel_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ResearchStudyLabel", field.Name) }, } return fc, nil @@ -141682,6 +141779,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_keyword(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -141690,8 +141789,6 @@ func (ec *executionContext) fieldContext_ResearchStudyType_keyword(_ context.Con return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -141699,8 +141796,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_keyword(_ context.Con return fc, nil } -func (ec *executionContext) _ResearchStudyType_note(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_note(ctx, field) +func (ec *executionContext) _ResearchStudyType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -141713,7 +141810,7 @@ func (ec *executionContext) _ResearchStudyType_note(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -141722,37 +141819,142 @@ func (ec *executionContext) _ResearchStudyType_note(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResearchStudyNoteUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOResearchStudyNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyNoteUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResearchStudyNoteUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchStudyType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _ResearchStudyType_status(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_status(ctx, field) +func (ec *executionContext) _ResearchStudyType_period(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_period(ctx, field) if err != nil { return graphql.Null } @@ -141765,7 +141967,7 @@ func (ec *executionContext) _ResearchStudyType_status(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -141774,26 +141976,38 @@ func (ec *executionContext) _ResearchStudyType_status(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_label(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_label(ctx, field) +func (ec *executionContext) _ResearchStudyType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -141806,7 +142020,7 @@ func (ec *executionContext) _ResearchStudyType_label(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Label, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -141815,40 +142029,26 @@ func (ec *executionContext) _ResearchStudyType_label(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ResearchStudyLabel) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResearchStudyLabel2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "value": - return ec.fieldContext_ResearchStudyLabel_value(ctx, field) - case "extension": - return ec.fieldContext_ResearchStudyLabel_extension(ctx, field) - case "id": - return ec.fieldContext_ResearchStudyLabel_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_ResearchStudyLabel_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_ResearchStudyLabel_resourceType(ctx, field) - case "type": - return ec.fieldContext_ResearchStudyLabel_type(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ResearchStudyLabel", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_relatedArtifact(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_relatedArtifact(ctx, field) +func (ec *executionContext) _ResearchStudyType_date(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_date(ctx, field) if err != nil { return graphql.Null } @@ -141861,7 +142061,7 @@ func (ec *executionContext) _ResearchStudyType_relatedArtifact(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RelatedArtifact, nil + return obj.Date, nil }) if err != nil { ec.Error(ctx, err) @@ -141870,54 +142070,26 @@ func (ec *executionContext) _ResearchStudyType_relatedArtifact(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.RelatedArtifact) + res := resTmp.(*string) fc.Result = res - return ec.marshalORelatedArtifact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_relatedArtifact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "display": - return ec.fieldContext_RelatedArtifact_display(ctx, field) - case "publicationDate": - return ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) - case "publicationStatus": - return ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) - case "classifier": - return ec.fieldContext_RelatedArtifact_classifier(ctx, field) - case "document": - return ec.fieldContext_RelatedArtifact_document(ctx, field) - case "resourceReference": - return ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) - case "extension": - return ec.fieldContext_RelatedArtifact_extension(ctx, field) - case "id": - return ec.fieldContext_RelatedArtifact_id(ctx, field) - case "label": - return ec.fieldContext_RelatedArtifact_label(ctx, field) - case "citation": - return ec.fieldContext_RelatedArtifact_citation(ctx, field) - case "resource": - return ec.fieldContext_RelatedArtifact_resource(ctx, field) - case "type": - return ec.fieldContext_RelatedArtifact_type(ctx, field) - case "resourceType": - return ec.fieldContext_RelatedArtifact_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RelatedArtifact", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_studyDesign(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_studyDesign(ctx, field) +func (ec *executionContext) _ResearchStudyType_descriptionSummary(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_descriptionSummary(ctx, field) if err != nil { return graphql.Null } @@ -141930,7 +142102,7 @@ func (ec *executionContext) _ResearchStudyType_studyDesign(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StudyDesign, nil + return obj.DescriptionSummary, nil }) if err != nil { ec.Error(ctx, err) @@ -141939,31 +142111,19 @@ func (ec *executionContext) _ResearchStudyType_studyDesign(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_studyDesign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_descriptionSummary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -142005,120 +142165,120 @@ func (ec *executionContext) fieldContext_ResearchStudyType_extension(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -142126,8 +142286,8 @@ func (ec *executionContext) fieldContext_ResearchStudyType_extension(_ context.C return fc, nil } -func (ec *executionContext) _ResearchStudyType_focus(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_focus(ctx, field) +func (ec *executionContext) _ResearchStudyType_text(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_text(ctx, field) if err != nil { return graphql.Null } @@ -142140,7 +142300,7 @@ func (ec *executionContext) _ResearchStudyType_focus(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Focus, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -142149,12 +142309,12 @@ func (ec *executionContext) _ResearchStudyType_focus(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_focus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -142163,22 +142323,24 @@ func (ec *executionContext) fieldContext_ResearchStudyType_focus(_ context.Conte Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchStudyType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchStudyType_partOf(ctx, field) +func (ec *executionContext) _ResearchStudyType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_meta(ctx, field) if err != nil { return graphql.Null } @@ -142191,7 +142353,7 @@ func (ec *executionContext) _ResearchStudyType_partOf(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PartOf, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -142200,12 +142362,12 @@ func (ec *executionContext) _ResearchStudyType_partOf(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ResearchStudyType) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOResearchStudyType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchStudyType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchStudyType", Field: field, @@ -142213,106 +142375,86 @@ func (ec *executionContext) fieldContext_ResearchStudyType_partOf(ctx context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "region": - return ec.fieldContext_ResearchStudyType_region(ctx, field) - case "title": - return ec.fieldContext_ResearchStudyType_title(ctx, field) - case "condition": - return ec.fieldContext_ResearchStudyType_condition(ctx, field) - case "contained": - return ec.fieldContext_ResearchStudyType_contained(ctx, field) - case "period": - return ec.fieldContext_ResearchStudyType_period(ctx, field) - case "descriptionSummary": - return ec.fieldContext_ResearchStudyType_descriptionSummary(ctx, field) - case "primaryPurposeType": - return ec.fieldContext_ResearchStudyType_primaryPurposeType(ctx, field) - case "comparisonGroup": - return ec.fieldContext_ResearchStudyType_comparisonGroup(ctx, field) - case "whyStopped": - return ec.fieldContext_ResearchStudyType_whyStopped(ctx, field) - case "date": - return ec.fieldContext_ResearchStudyType_date(ctx, field) - case "recruitment": - return ec.fieldContext_ResearchStudyType_recruitment(ctx, field) - case "classifier": - return ec.fieldContext_ResearchStudyType_classifier(ctx, field) - case "phase": - return ec.fieldContext_ResearchStudyType_phase(ctx, field) - case "language": - return ec.fieldContext_ResearchStudyType_language(ctx, field) - case "meta": - return ec.fieldContext_ResearchStudyType_meta(ctx, field) - case "name": - return ec.fieldContext_ResearchStudyType_name(ctx, field) - case "text": - return ec.fieldContext_ResearchStudyType_text(ctx, field) - case "result": - return ec.fieldContext_ResearchStudyType_result(ctx, field) - case "progressStatus": - return ec.fieldContext_ResearchStudyType_progressStatus(ctx, field) - case "modifierExtension": - return ec.fieldContext_ResearchStudyType_modifierExtension(ctx, field) - case "associatedParty": - return ec.fieldContext_ResearchStudyType_associatedParty(ctx, field) - case "description": - return ec.fieldContext_ResearchStudyType_description(ctx, field) - case "site": - return ec.fieldContext_ResearchStudyType_site(ctx, field) - case "url": - return ec.fieldContext_ResearchStudyType_url(ctx, field) - case "implicitRules": - return ec.fieldContext_ResearchStudyType_implicitRules(ctx, field) - case "version": - return ec.fieldContext_ResearchStudyType_version(ctx, field) - case "outcomeMeasure": - return ec.fieldContext_ResearchStudyType_outcomeMeasure(ctx, field) - case "id": - return ec.fieldContext_ResearchStudyType_id(ctx, field) - case "identifier": - return ec.fieldContext_ResearchStudyType_identifier(ctx, field) - case "objective": - return ec.fieldContext_ResearchStudyType_objective(ctx, field) - case "resourceType": - return ec.fieldContext_ResearchStudyType_resourceType(ctx, field) - case "keyword": - return ec.fieldContext_ResearchStudyType_keyword(ctx, field) - case "note": - return ec.fieldContext_ResearchStudyType_note(ctx, field) - case "status": - return ec.fieldContext_ResearchStudyType_status(ctx, field) - case "label": - return ec.fieldContext_ResearchStudyType_label(ctx, field) - case "relatedArtifact": - return ec.fieldContext_ResearchStudyType_relatedArtifact(ctx, field) - case "studyDesign": - return ec.fieldContext_ResearchStudyType_studyDesign(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_ResearchStudyType_extension(ctx, field) - case "focus": - return ec.fieldContext_ResearchStudyType_focus(ctx, field) - case "partOf": - return ec.fieldContext_ResearchStudyType_partOf(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ResearchStudyType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyType_phase(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_phase(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchStudyType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Phase, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyType_phase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectProgress_endDate(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectProgress_endDate(ctx, field) +func (ec *executionContext) _ResearchStudyType_condition(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_condition(ctx, field) if err != nil { return graphql.Null } @@ -142325,7 +142467,7 @@ func (ec *executionContext) _ResearchSubjectProgress_endDate(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EndDate, nil + return obj.Condition, nil }) if err != nil { ec.Error(ctx, err) @@ -142334,26 +142476,38 @@ func (ec *executionContext) _ResearchSubjectProgress_endDate(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectProgress_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchSubjectProgress", + Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectProgress_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectProgress_modifierExtension(ctx, field) +func (ec *executionContext) _ResearchStudyType_status(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_status(ctx, field) if err != nil { return graphql.Null } @@ -142366,7 +142520,7 @@ func (ec *executionContext) _ResearchSubjectProgress_modifierExtension(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -142375,142 +142529,26 @@ func (ec *executionContext) _ResearchSubjectProgress_modifierExtension(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectProgress_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchSubjectProgress", + Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectProgress_type(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectProgress_type(ctx, field) +func (ec *executionContext) _ResearchStudyType_outcomeMeasure(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_outcomeMeasure(ctx, field) if err != nil { return graphql.Null } @@ -142523,7 +142561,7 @@ func (ec *executionContext) _ResearchSubjectProgress_type(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.OutcomeMeasure, nil }) if err != nil { ec.Error(ctx, err) @@ -142532,38 +142570,42 @@ func (ec *executionContext) _ResearchSubjectProgress_type(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.ResearchStudyOutcomeMeasure) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOResearchStudyOutcomeMeasure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectProgress_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_outcomeMeasure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchSubjectProgress", + Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "name": + return ec.fieldContext_ResearchStudyOutcomeMeasure_name(ctx, field) + case "resourceType": + return ec.fieldContext_ResearchStudyOutcomeMeasure_resourceType(ctx, field) + case "type": + return ec.fieldContext_ResearchStudyOutcomeMeasure_type(ctx, field) + case "description": + return ec.fieldContext_ResearchStudyOutcomeMeasure_description(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_ResearchStudyOutcomeMeasure_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_ResearchStudyOutcomeMeasure_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ResearchStudyOutcomeMeasure_modifierExtension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ResearchStudyOutcomeMeasure", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectProgress_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectProgress_extension(ctx, field) +func (ec *executionContext) _ResearchStudyType_site(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_site(ctx, field) if err != nil { return graphql.Null } @@ -142576,151 +142618,49 @@ func (ec *executionContext) _ResearchSubjectProgress_extension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Site, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(model.ResearchStudySiteUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNResearchStudySiteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudySiteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectProgress_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchStudyType_site(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchSubjectProgress", + Object: "ResearchStudyType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type ResearchStudySiteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ResearchStudyType_site_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ResearchSubjectProgress_milestone(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectProgress_milestone(ctx, field) +func (ec *executionContext) _ResearchSubjectProgress_subjectState(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectProgress_subjectState(ctx, field) if err != nil { return graphql.Null } @@ -142733,7 +142673,7 @@ func (ec *executionContext) _ResearchSubjectProgress_milestone(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Milestone, nil + return obj.SubjectState, nil }) if err != nil { ec.Error(ctx, err) @@ -142747,7 +142687,7 @@ func (ec *executionContext) _ResearchSubjectProgress_milestone(ctx context.Conte return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectProgress_milestone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectProgress_subjectState(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectProgress", Field: field, @@ -142755,6 +142695,8 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_milestone(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -142763,8 +142705,6 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_milestone(_ con return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -142772,8 +142712,8 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_milestone(_ con return fc, nil } -func (ec *executionContext) _ResearchSubjectProgress_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectProgress_resourceType(ctx, field) +func (ec *executionContext) _ResearchSubjectProgress_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectProgress_id(ctx, field) if err != nil { return graphql.Null } @@ -142786,7 +142726,7 @@ func (ec *executionContext) _ResearchSubjectProgress_resourceType(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -142800,7 +142740,7 @@ func (ec *executionContext) _ResearchSubjectProgress_resourceType(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectProgress_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectProgress_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectProgress", Field: field, @@ -142813,6 +142753,59 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_resourceType(_ return fc, nil } +func (ec *executionContext) _ResearchSubjectProgress_milestone(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectProgress_milestone(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Milestone, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchSubjectProgress_milestone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchSubjectProgress", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _ResearchSubjectProgress_reason(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { fc, err := ec.fieldContext_ResearchSubjectProgress_reason(ctx, field) if err != nil { @@ -142849,6 +142842,8 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_reason(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -142857,8 +142852,6 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_reason(_ contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -142907,8 +142900,8 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_startDate(_ con return fc, nil } -func (ec *executionContext) _ResearchSubjectProgress_subjectState(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectProgress_subjectState(ctx, field) +func (ec *executionContext) _ResearchSubjectProgress_type(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectProgress_type(ctx, field) if err != nil { return graphql.Null } @@ -142921,7 +142914,7 @@ func (ec *executionContext) _ResearchSubjectProgress_subjectState(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubjectState, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -142935,7 +142928,7 @@ func (ec *executionContext) _ResearchSubjectProgress_subjectState(ctx context.Co return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectProgress_subjectState(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectProgress_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectProgress", Field: field, @@ -142943,6 +142936,8 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_subjectState(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -142951,8 +142946,6 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_subjectState(_ return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -142960,8 +142953,8 @@ func (ec *executionContext) fieldContext_ResearchSubjectProgress_subjectState(_ return fc, nil } -func (ec *executionContext) _ResearchSubjectProgress_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectProgress_id(ctx, field) +func (ec *executionContext) _ResearchSubjectProgress_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectProgress_extension(ctx, field) if err != nil { return graphql.Null } @@ -142974,7 +142967,7 @@ func (ec *executionContext) _ResearchSubjectProgress_id(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -142983,26 +142976,142 @@ func (ec *executionContext) _ResearchSubjectProgress_id(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectProgress_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectProgress_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectProgress", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_subject(ctx, field) +func (ec *executionContext) _ResearchSubjectProgress_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectProgress_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -143015,7 +143124,7 @@ func (ec *executionContext) _ResearchSubjectType_subject(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -143024,37 +143133,183 @@ func (ec *executionContext) _ResearchSubjectType_subject(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResearchSubjectSubjectUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOResearchSubjectSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectSubjectUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectProgress_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchSubjectType", + Object: "ResearchSubjectProgress", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResearchSubjectSubjectUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _ResearchSubjectProgress_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectProgress_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchSubjectType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchSubjectProgress_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchSubjectProgress", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_text(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_text(ctx, field) +func (ec *executionContext) _ResearchSubjectProgress_endDate(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectProgress_endDate(ctx, field) if err != nil { return graphql.Null } @@ -143067,7 +143322,7 @@ func (ec *executionContext) _ResearchSubjectType_text(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.EndDate, nil }) if err != nil { ec.Error(ctx, err) @@ -143076,38 +143331,26 @@ func (ec *executionContext) _ResearchSubjectType_text(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectProgress_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ResearchSubjectType", + Object: "ResearchSubjectProgress", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_resourceType(ctx, field) +func (ec *executionContext) _ResearchSubjectType_study(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_study(ctx, field) if err != nil { return graphql.Null } @@ -143120,30 +143363,126 @@ func (ec *executionContext) _ResearchSubjectType_resourceType(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Study, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ResearchStudyType) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNResearchStudyType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_study(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "language": + return ec.fieldContext_ResearchStudyType_language(ctx, field) + case "region": + return ec.fieldContext_ResearchStudyType_region(ctx, field) + case "identifier": + return ec.fieldContext_ResearchStudyType_identifier(ctx, field) + case "note": + return ec.fieldContext_ResearchStudyType_note(ctx, field) + case "focus": + return ec.fieldContext_ResearchStudyType_focus(ctx, field) + case "primaryPurposeType": + return ec.fieldContext_ResearchStudyType_primaryPurposeType(ctx, field) + case "progressStatus": + return ec.fieldContext_ResearchStudyType_progressStatus(ctx, field) + case "whyStopped": + return ec.fieldContext_ResearchStudyType_whyStopped(ctx, field) + case "result": + return ec.fieldContext_ResearchStudyType_result(ctx, field) + case "version": + return ec.fieldContext_ResearchStudyType_version(ctx, field) + case "url": + return ec.fieldContext_ResearchStudyType_url(ctx, field) + case "relatedArtifact": + return ec.fieldContext_ResearchStudyType_relatedArtifact(ctx, field) + case "name": + return ec.fieldContext_ResearchStudyType_name(ctx, field) + case "studyDesign": + return ec.fieldContext_ResearchStudyType_studyDesign(ctx, field) + case "objective": + return ec.fieldContext_ResearchStudyType_objective(ctx, field) + case "recruitment": + return ec.fieldContext_ResearchStudyType_recruitment(ctx, field) + case "title": + return ec.fieldContext_ResearchStudyType_title(ctx, field) + case "associatedParty": + return ec.fieldContext_ResearchStudyType_associatedParty(ctx, field) + case "id": + return ec.fieldContext_ResearchStudyType_id(ctx, field) + case "contained": + return ec.fieldContext_ResearchStudyType_contained(ctx, field) + case "description": + return ec.fieldContext_ResearchStudyType_description(ctx, field) + case "comparisonGroup": + return ec.fieldContext_ResearchStudyType_comparisonGroup(ctx, field) + case "implicitRules": + return ec.fieldContext_ResearchStudyType_implicitRules(ctx, field) + case "partOf": + return ec.fieldContext_ResearchStudyType_partOf(ctx, field) + case "classifier": + return ec.fieldContext_ResearchStudyType_classifier(ctx, field) + case "label": + return ec.fieldContext_ResearchStudyType_label(ctx, field) + case "keyword": + return ec.fieldContext_ResearchStudyType_keyword(ctx, field) + case "modifierExtension": + return ec.fieldContext_ResearchStudyType_modifierExtension(ctx, field) + case "period": + return ec.fieldContext_ResearchStudyType_period(ctx, field) + case "resourceType": + return ec.fieldContext_ResearchStudyType_resourceType(ctx, field) + case "date": + return ec.fieldContext_ResearchStudyType_date(ctx, field) + case "descriptionSummary": + return ec.fieldContext_ResearchStudyType_descriptionSummary(ctx, field) + case "extension": + return ec.fieldContext_ResearchStudyType_extension(ctx, field) + case "text": + return ec.fieldContext_ResearchStudyType_text(ctx, field) + case "meta": + return ec.fieldContext_ResearchStudyType_meta(ctx, field) + case "phase": + return ec.fieldContext_ResearchStudyType_phase(ctx, field) + case "condition": + return ec.fieldContext_ResearchStudyType_condition(ctx, field) + case "status": + return ec.fieldContext_ResearchStudyType_status(ctx, field) + case "outcomeMeasure": + return ec.fieldContext_ResearchStudyType_outcomeMeasure(ctx, field) + case "site": + return ec.fieldContext_ResearchStudyType_site(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ResearchStudyType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ResearchSubjectType_study_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } @@ -143188,8 +143527,8 @@ func (ec *executionContext) fieldContext_ResearchSubjectType_implicitRules(_ con return fc, nil } -func (ec *executionContext) _ResearchSubjectType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_meta(ctx, field) +func (ec *executionContext) _ResearchSubjectType_status(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_status(ctx, field) if err != nil { return graphql.Null } @@ -143202,7 +143541,7 @@ func (ec *executionContext) _ResearchSubjectType_meta(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -143211,46 +143550,26 @@ func (ec *executionContext) _ResearchSubjectType_meta(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) - case "id": - return ec.fieldContext_Meta_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_status(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_status(ctx, field) +func (ec *executionContext) _ResearchSubjectType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_meta(ctx, field) if err != nil { return graphql.Null } @@ -143263,7 +143582,7 @@ func (ec *executionContext) _ResearchSubjectType_status(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -143272,26 +143591,46 @@ func (ec *executionContext) _ResearchSubjectType_status(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_id(ctx, field) +func (ec *executionContext) _ResearchSubjectType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -143304,7 +143643,7 @@ func (ec *executionContext) _ResearchSubjectType_id(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -143313,26 +143652,142 @@ func (ec *executionContext) _ResearchSubjectType_id(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_contained(ctx, field) +func (ec *executionContext) _ResearchSubjectType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -143345,7 +143800,7 @@ func (ec *executionContext) _ResearchSubjectType_contained(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -143354,26 +143809,26 @@ func (ec *executionContext) _ResearchSubjectType_contained(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_identifier(ctx, field) +func (ec *executionContext) _ResearchSubjectType_language(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_language(ctx, field) if err != nil { return graphql.Null } @@ -143386,7 +143841,7 @@ func (ec *executionContext) _ResearchSubjectType_identifier(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -143395,46 +143850,26 @@ func (ec *executionContext) _ResearchSubjectType_identifier(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_progress(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_progress(ctx, field) +func (ec *executionContext) _ResearchSubjectType_text(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_text(ctx, field) if err != nil { return graphql.Null } @@ -143447,7 +143882,7 @@ func (ec *executionContext) _ResearchSubjectType_progress(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Progress, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -143456,12 +143891,12 @@ func (ec *executionContext) _ResearchSubjectType_progress(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ResearchSubjectProgress) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOResearchSubjectProgress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_progress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, @@ -143469,35 +143904,25 @@ func (ec *executionContext) fieldContext_ResearchSubjectType_progress(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "endDate": - return ec.fieldContext_ResearchSubjectProgress_endDate(ctx, field) - case "modifierExtension": - return ec.fieldContext_ResearchSubjectProgress_modifierExtension(ctx, field) - case "type": - return ec.fieldContext_ResearchSubjectProgress_type(ctx, field) case "extension": - return ec.fieldContext_ResearchSubjectProgress_extension(ctx, field) - case "milestone": - return ec.fieldContext_ResearchSubjectProgress_milestone(ctx, field) - case "resourceType": - return ec.fieldContext_ResearchSubjectProgress_resourceType(ctx, field) - case "reason": - return ec.fieldContext_ResearchSubjectProgress_reason(ctx, field) - case "startDate": - return ec.fieldContext_ResearchSubjectProgress_startDate(ctx, field) - case "subjectState": - return ec.fieldContext_ResearchSubjectProgress_subjectState(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_ResearchSubjectProgress_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ResearchSubjectProgress", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_actualComparisonGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_actualComparisonGroup(ctx, field) +func (ec *executionContext) _ResearchSubjectType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -143510,7 +143935,7 @@ func (ec *executionContext) _ResearchSubjectType_actualComparisonGroup(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ActualComparisonGroup, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -143519,26 +143944,46 @@ func (ec *executionContext) _ResearchSubjectType_actualComparisonGroup(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_actualComparisonGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_language(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_language(ctx, field) +func (ec *executionContext) _ResearchSubjectType_contained(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_contained(ctx, field) if err != nil { return graphql.Null } @@ -143551,7 +143996,7 @@ func (ec *executionContext) _ResearchSubjectType_language(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -143560,26 +144005,26 @@ func (ec *executionContext) _ResearchSubjectType_language(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_modifierExtension(ctx, field) +func (ec *executionContext) _ResearchSubjectType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_extension(ctx, field) if err != nil { return graphql.Null } @@ -143592,7 +144037,7 @@ func (ec *executionContext) _ResearchSubjectType_modifierExtension(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -143606,7 +144051,7 @@ func (ec *executionContext) _ResearchSubjectType_modifierExtension(ctx context.C return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, @@ -143614,120 +144059,120 @@ func (ec *executionContext) fieldContext_ResearchSubjectType_modifierExtension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) case "valueDate": return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -143735,8 +144180,8 @@ func (ec *executionContext) fieldContext_ResearchSubjectType_modifierExtension(_ return fc, nil } -func (ec *executionContext) _ResearchSubjectType_study(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_study(ctx, field) +func (ec *executionContext) _ResearchSubjectType_actualComparisonGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_actualComparisonGroup(ctx, field) if err != nil { return graphql.Null } @@ -143749,7 +144194,7 @@ func (ec *executionContext) _ResearchSubjectType_study(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Study, nil + return obj.ActualComparisonGroup, nil }) if err != nil { ec.Error(ctx, err) @@ -143758,119 +144203,67 @@ func (ec *executionContext) _ResearchSubjectType_study(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ResearchStudyType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResearchStudyType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_study(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_actualComparisonGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "region": - return ec.fieldContext_ResearchStudyType_region(ctx, field) - case "title": - return ec.fieldContext_ResearchStudyType_title(ctx, field) - case "condition": - return ec.fieldContext_ResearchStudyType_condition(ctx, field) - case "contained": - return ec.fieldContext_ResearchStudyType_contained(ctx, field) - case "period": - return ec.fieldContext_ResearchStudyType_period(ctx, field) - case "descriptionSummary": - return ec.fieldContext_ResearchStudyType_descriptionSummary(ctx, field) - case "primaryPurposeType": - return ec.fieldContext_ResearchStudyType_primaryPurposeType(ctx, field) - case "comparisonGroup": - return ec.fieldContext_ResearchStudyType_comparisonGroup(ctx, field) - case "whyStopped": - return ec.fieldContext_ResearchStudyType_whyStopped(ctx, field) - case "date": - return ec.fieldContext_ResearchStudyType_date(ctx, field) - case "recruitment": - return ec.fieldContext_ResearchStudyType_recruitment(ctx, field) - case "classifier": - return ec.fieldContext_ResearchStudyType_classifier(ctx, field) - case "phase": - return ec.fieldContext_ResearchStudyType_phase(ctx, field) - case "language": - return ec.fieldContext_ResearchStudyType_language(ctx, field) - case "meta": - return ec.fieldContext_ResearchStudyType_meta(ctx, field) - case "name": - return ec.fieldContext_ResearchStudyType_name(ctx, field) - case "text": - return ec.fieldContext_ResearchStudyType_text(ctx, field) - case "result": - return ec.fieldContext_ResearchStudyType_result(ctx, field) - case "progressStatus": - return ec.fieldContext_ResearchStudyType_progressStatus(ctx, field) - case "modifierExtension": - return ec.fieldContext_ResearchStudyType_modifierExtension(ctx, field) - case "associatedParty": - return ec.fieldContext_ResearchStudyType_associatedParty(ctx, field) - case "description": - return ec.fieldContext_ResearchStudyType_description(ctx, field) - case "site": - return ec.fieldContext_ResearchStudyType_site(ctx, field) - case "url": - return ec.fieldContext_ResearchStudyType_url(ctx, field) - case "implicitRules": - return ec.fieldContext_ResearchStudyType_implicitRules(ctx, field) - case "version": - return ec.fieldContext_ResearchStudyType_version(ctx, field) - case "outcomeMeasure": - return ec.fieldContext_ResearchStudyType_outcomeMeasure(ctx, field) - case "id": - return ec.fieldContext_ResearchStudyType_id(ctx, field) - case "identifier": - return ec.fieldContext_ResearchStudyType_identifier(ctx, field) - case "objective": - return ec.fieldContext_ResearchStudyType_objective(ctx, field) - case "resourceType": - return ec.fieldContext_ResearchStudyType_resourceType(ctx, field) - case "keyword": - return ec.fieldContext_ResearchStudyType_keyword(ctx, field) - case "note": - return ec.fieldContext_ResearchStudyType_note(ctx, field) - case "status": - return ec.fieldContext_ResearchStudyType_status(ctx, field) - case "label": - return ec.fieldContext_ResearchStudyType_label(ctx, field) - case "relatedArtifact": - return ec.fieldContext_ResearchStudyType_relatedArtifact(ctx, field) - case "studyDesign": - return ec.fieldContext_ResearchStudyType_studyDesign(ctx, field) - case "extension": - return ec.fieldContext_ResearchStudyType_extension(ctx, field) - case "focus": - return ec.fieldContext_ResearchStudyType_focus(ctx, field) - case "partOf": - return ec.fieldContext_ResearchStudyType_partOf(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ResearchStudyType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _ResearchSubjectType_assignedComparisonGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_assignedComparisonGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ResearchSubjectType_study_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AssignedComparisonGroup, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchSubjectType_assignedComparisonGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchSubjectType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } -func (ec *executionContext) _ResearchSubjectType_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_extension(ctx, field) +func (ec *executionContext) _ResearchSubjectType_progress(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_progress(ctx, field) if err != nil { return graphql.Null } @@ -143883,7 +144276,7 @@ func (ec *executionContext) _ResearchSubjectType_extension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Progress, nil }) if err != nil { ec.Error(ctx, err) @@ -143892,12 +144285,12 @@ func (ec *executionContext) _ResearchSubjectType_extension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.ResearchSubjectProgress) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOResearchSubjectProgress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_progress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, @@ -143905,122 +144298,28 @@ func (ec *executionContext) fieldContext_ResearchSubjectType_extension(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "subjectState": + return ec.fieldContext_ResearchSubjectProgress_subjectState(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_ResearchSubjectProgress_id(ctx, field) + case "milestone": + return ec.fieldContext_ResearchSubjectProgress_milestone(ctx, field) + case "reason": + return ec.fieldContext_ResearchSubjectProgress_reason(ctx, field) + case "startDate": + return ec.fieldContext_ResearchSubjectProgress_startDate(ctx, field) + case "type": + return ec.fieldContext_ResearchSubjectProgress_type(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_ResearchSubjectProgress_extension(ctx, field) + case "modifierExtension": + return ec.fieldContext_ResearchSubjectProgress_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_ResearchSubjectProgress_resourceType(ctx, field) + case "endDate": + return ec.fieldContext_ResearchSubjectProgress_endDate(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ResearchSubjectProgress", field.Name) }, } return fc, nil @@ -144062,16 +144361,16 @@ func (ec *executionContext) fieldContext_ResearchSubjectType_period(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -144079,8 +144378,8 @@ func (ec *executionContext) fieldContext_ResearchSubjectType_period(_ context.Co return fc, nil } -func (ec *executionContext) _ResearchSubjectType_assignedComparisonGroup(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ResearchSubjectType_assignedComparisonGroup(ctx, field) +func (ec *executionContext) _ResearchSubjectType_subject(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_subject(ctx, field) if err != nil { return graphql.Null } @@ -144093,35 +144392,49 @@ func (ec *executionContext) _ResearchSubjectType_assignedComparisonGroup(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AssignedComparisonGroup, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.ResearchSubjectSubjectUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNResearchSubjectSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectSubjectUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ResearchSubjectType_assignedComparisonGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ResearchSubjectSubjectUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ResearchSubjectType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SampledData_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SampledData_resourceType(ctx, field) +func (ec *executionContext) _ResearchSubjectType_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_id(ctx, field) if err != nil { return graphql.Null } @@ -144134,7 +144447,7 @@ func (ec *executionContext) _SampledData_resourceType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -144148,9 +144461,9 @@ func (ec *executionContext) _SampledData_resourceType(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SampledData_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ResearchSubjectType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SampledData", + Object: "ResearchSubjectType", Field: field, IsMethod: false, IsResolver: false, @@ -144161,8 +144474,8 @@ func (ec *executionContext) fieldContext_SampledData_resourceType(_ context.Cont return fc, nil } -func (ec *executionContext) _SampledData_origin(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SampledData_origin(ctx, field) +func (ec *executionContext) _SampledData_intervalUnit(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_intervalUnit(ctx, field) if err != nil { return graphql.Null } @@ -144175,7 +144488,7 @@ func (ec *executionContext) _SampledData_origin(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Origin, nil + return obj.IntervalUnit, nil }) if err != nil { ec.Error(ctx, err) @@ -144184,44 +144497,26 @@ func (ec *executionContext) _SampledData_origin(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*string) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SampledData_origin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SampledData_intervalUnit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SampledData", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SampledData_codeMap(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SampledData_codeMap(ctx, field) +func (ec *executionContext) _SampledData_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -144234,7 +144529,7 @@ func (ec *executionContext) _SampledData_codeMap(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CodeMap, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -144248,7 +144543,7 @@ func (ec *executionContext) _SampledData_codeMap(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SampledData_codeMap(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SampledData_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SampledData", Field: field, @@ -144261,8 +144556,8 @@ func (ec *executionContext) fieldContext_SampledData_codeMap(_ context.Context, return fc, nil } -func (ec *executionContext) _SampledData_intervalUnit(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SampledData_intervalUnit(ctx, field) +func (ec *executionContext) _SampledData_lowerLimit(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_lowerLimit(ctx, field) if err != nil { return graphql.Null } @@ -144275,7 +144570,7 @@ func (ec *executionContext) _SampledData_intervalUnit(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IntervalUnit, nil + return obj.LowerLimit, nil }) if err != nil { ec.Error(ctx, err) @@ -144289,7 +144584,7 @@ func (ec *executionContext) _SampledData_intervalUnit(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SampledData_intervalUnit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SampledData_lowerLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SampledData", Field: field, @@ -144302,8 +144597,8 @@ func (ec *executionContext) fieldContext_SampledData_intervalUnit(_ context.Cont return fc, nil } -func (ec *executionContext) _SampledData_lowerLimit(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SampledData_lowerLimit(ctx, field) +func (ec *executionContext) _SampledData_factor(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_factor(ctx, field) if err != nil { return graphql.Null } @@ -144316,7 +144611,7 @@ func (ec *executionContext) _SampledData_lowerLimit(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LowerLimit, nil + return obj.Factor, nil }) if err != nil { ec.Error(ctx, err) @@ -144330,7 +144625,7 @@ func (ec *executionContext) _SampledData_lowerLimit(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SampledData_lowerLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SampledData_factor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SampledData", Field: field, @@ -144343,8 +144638,8 @@ func (ec *executionContext) fieldContext_SampledData_lowerLimit(_ context.Contex return fc, nil } -func (ec *executionContext) _SampledData_upperLimit(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SampledData_upperLimit(ctx, field) +func (ec *executionContext) _SampledData_id(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_id(ctx, field) if err != nil { return graphql.Null } @@ -144357,7 +144652,7 @@ func (ec *executionContext) _SampledData_upperLimit(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpperLimit, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -144371,7 +144666,7 @@ func (ec *executionContext) _SampledData_upperLimit(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SampledData_upperLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SampledData_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SampledData", Field: field, @@ -144420,120 +144715,120 @@ func (ec *executionContext) fieldContext_SampledData_extension(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -144541,8 +144836,8 @@ func (ec *executionContext) fieldContext_SampledData_extension(_ context.Context return fc, nil } -func (ec *executionContext) _SampledData_id(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SampledData_id(ctx, field) +func (ec *executionContext) _SampledData_upperLimit(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_upperLimit(ctx, field) if err != nil { return graphql.Null } @@ -144555,7 +144850,7 @@ func (ec *executionContext) _SampledData_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.UpperLimit, nil }) if err != nil { ec.Error(ctx, err) @@ -144569,7 +144864,7 @@ func (ec *executionContext) _SampledData_id(ctx context.Context, field graphql.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SampledData_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SampledData_upperLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SampledData", Field: field, @@ -144623,47 +144918,6 @@ func (ec *executionContext) fieldContext_SampledData_dimensions(_ context.Contex return fc, nil } -func (ec *executionContext) _SampledData_factor(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SampledData_factor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Factor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SampledData_factor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SampledData", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - func (ec *executionContext) _SampledData_interval(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { fc, err := ec.fieldContext_SampledData_interval(ctx, field) if err != nil { @@ -144746,8 +145000,8 @@ func (ec *executionContext) fieldContext_SampledData_offsets(_ context.Context, return fc, nil } -func (ec *executionContext) _SampledData_data(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SampledData_data(ctx, field) +func (ec *executionContext) _SampledData_origin(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_origin(ctx, field) if err != nil { return graphql.Null } @@ -144760,7 +145014,7 @@ func (ec *executionContext) _SampledData_data(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Data, nil + return obj.Origin, nil }) if err != nil { ec.Error(ctx, err) @@ -144769,119 +145023,44 @@ func (ec *executionContext) _SampledData_data(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SampledData_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SampledData_origin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SampledData", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Signature_who(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Signature_who(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Who, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.SignatureWhoUnion) - fc.Result = res - return ec.marshalOSignatureWhoUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureWhoUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Signature_who(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Signature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SignatureWhoUnion does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Signature_who_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Signature_data(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Signature_data(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Data, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Signature_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Signature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _Signature_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Signature_resourceType(ctx, field) +func (ec *executionContext) _SampledData_codeMap(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_codeMap(ctx, field) if err != nil { return graphql.Null } @@ -144894,7 +145073,7 @@ func (ec *executionContext) _Signature_resourceType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.CodeMap, nil }) if err != nil { ec.Error(ctx, err) @@ -144908,9 +145087,9 @@ func (ec *executionContext) _Signature_resourceType(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Signature_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SampledData_codeMap(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Signature", + Object: "SampledData", Field: field, IsMethod: false, IsResolver: false, @@ -144921,8 +145100,8 @@ func (ec *executionContext) fieldContext_Signature_resourceType(_ context.Contex return fc, nil } -func (ec *executionContext) _Signature_sigFormat(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Signature_sigFormat(ctx, field) +func (ec *executionContext) _SampledData_data(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_data(ctx, field) if err != nil { return graphql.Null } @@ -144935,7 +145114,7 @@ func (ec *executionContext) _Signature_sigFormat(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SigFormat, nil + return obj.Data, nil }) if err != nil { ec.Error(ctx, err) @@ -144949,9 +145128,9 @@ func (ec *executionContext) _Signature_sigFormat(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Signature_sigFormat(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SampledData_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Signature", + Object: "SampledData", Field: field, IsMethod: false, IsResolver: false, @@ -144962,8 +145141,8 @@ func (ec *executionContext) fieldContext_Signature_sigFormat(_ context.Context, return fc, nil } -func (ec *executionContext) _Signature_id(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Signature_id(ctx, field) +func (ec *executionContext) _Signature_targetFormat(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_targetFormat(ctx, field) if err != nil { return graphql.Null } @@ -144976,7 +145155,7 @@ func (ec *executionContext) _Signature_id(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.TargetFormat, nil }) if err != nil { ec.Error(ctx, err) @@ -144990,7 +145169,7 @@ func (ec *executionContext) _Signature_id(ctx context.Context, field graphql.Col return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Signature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Signature_targetFormat(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Signature", Field: field, @@ -145065,11 +145244,14 @@ func (ec *executionContext) _Signature_onBehalfOf(ctx context.Context, field gra return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.SignatureOnBehalfOfUnion) + res := resTmp.(model.SignatureOnBehalfOfUnion) fc.Result = res - return ec.marshalOSignatureOnBehalfOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureOnBehalfOfUnion(ctx, field.Selections, res) + return ec.marshalNSignatureOnBehalfOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureOnBehalfOfUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Signature_onBehalfOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -145132,14 +145314,6 @@ func (ec *executionContext) fieldContext_Signature_type(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) case "userSelected": return ec.fieldContext_Coding_userSelected(ctx, field) case "version": @@ -145148,6 +145322,14 @@ func (ec *executionContext) fieldContext_Signature_type(_ context.Context, field return ec.fieldContext_Coding_code(ctx, field) case "display": return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, @@ -145191,120 +145373,120 @@ func (ec *executionContext) fieldContext_Signature_extension(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) case "valueUnsignedInt": return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) case "valueUrl": return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -145312,8 +145494,8 @@ func (ec *executionContext) fieldContext_Signature_extension(_ context.Context, return fc, nil } -func (ec *executionContext) _Signature_targetFormat(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Signature_targetFormat(ctx, field) +func (ec *executionContext) _Signature_sigFormat(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_sigFormat(ctx, field) if err != nil { return graphql.Null } @@ -145326,7 +145508,7 @@ func (ec *executionContext) _Signature_targetFormat(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TargetFormat, nil + return obj.SigFormat, nil }) if err != nil { ec.Error(ctx, err) @@ -145340,7 +145522,7 @@ func (ec *executionContext) _Signature_targetFormat(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Signature_targetFormat(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Signature_sigFormat(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Signature", Field: field, @@ -145353,8 +145535,8 @@ func (ec *executionContext) fieldContext_Signature_targetFormat(_ context.Contex return fc, nil } -func (ec *executionContext) _SpecimenCollection_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_extension(ctx, field) +func (ec *executionContext) _Signature_data(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_data(ctx, field) if err != nil { return graphql.Null } @@ -145367,7 +145549,7 @@ func (ec *executionContext) _SpecimenCollection_extension(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Data, nil }) if err != nil { ec.Error(ctx, err) @@ -145376,142 +145558,26 @@ func (ec *executionContext) _SpecimenCollection_extension(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Signature_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenCollection", + Object: "Signature", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SpecimenCollection_method(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_method(ctx, field) +func (ec *executionContext) _Signature_id(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_id(ctx, field) if err != nil { return graphql.Null } @@ -145524,7 +145590,7 @@ func (ec *executionContext) _SpecimenCollection_method(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Method, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -145533,38 +145599,26 @@ func (ec *executionContext) _SpecimenCollection_method(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Signature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenCollection", + Object: "Signature", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SpecimenCollection_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_modifierExtension(ctx, field) +func (ec *executionContext) _Signature_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -145577,7 +145631,7 @@ func (ec *executionContext) _SpecimenCollection_modifierExtension(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -145586,142 +145640,26 @@ func (ec *executionContext) _SpecimenCollection_modifierExtension(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Signature_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenCollection", + Object: "Signature", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SpecimenCollection_quantity(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_quantity(ctx, field) +func (ec *executionContext) _Signature_who(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_who(ctx, field) if err != nil { return graphql.Null } @@ -145734,104 +145672,49 @@ func (ec *executionContext) _SpecimenCollection_quantity(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Quantity, nil + return obj.Who, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(model.SignatureWhoUnion) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalNSignatureWhoUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureWhoUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_quantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Signature_who(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenCollection", + Object: "Signature", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, errors.New("field of type SignatureWhoUnion does not have child fields") }, } - return fc, nil -} - -func (ec *executionContext) _SpecimenCollection_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_bodySite(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BodySite, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Signature_who_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.CodeableReference) - fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SpecimenCollection_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SpecimenCollection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) - }, + return fc, err } return fc, nil } -func (ec *executionContext) _SpecimenCollection_collector(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_collector(ctx, field) +func (ec *executionContext) _SpecimenCollection_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_extension(ctx, field) if err != nil { return graphql.Null } @@ -145844,7 +145727,7 @@ func (ec *executionContext) _SpecimenCollection_collector(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Collector, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -145853,37 +145736,142 @@ func (ec *executionContext) _SpecimenCollection_collector(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]model.SpecimenCollectionCollectorUnion) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOSpecimenCollectionCollectorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionCollectorUnion(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_collector(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenCollection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SpecimenCollectionCollectorUnion does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SpecimenCollection_collector_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _SpecimenCollection_fastingStatusCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_fastingStatusCodeableConcept(ctx, field) +func (ec *executionContext) _SpecimenCollection_fastingStatusDuration(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_fastingStatusDuration(ctx, field) if err != nil { return graphql.Null } @@ -145896,7 +145884,7 @@ func (ec *executionContext) _SpecimenCollection_fastingStatusCodeableConcept(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FastingStatusCodeableConcept, nil + return obj.FastingStatusDuration, nil }) if err != nil { ec.Error(ctx, err) @@ -145905,12 +145893,12 @@ func (ec *executionContext) _SpecimenCollection_fastingStatusCodeableConcept(ctx if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Duration) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_fastingStatusCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_fastingStatusDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenCollection", Field: field, @@ -145918,25 +145906,31 @@ func (ec *executionContext) fieldContext_SpecimenCollection_fastingStatusCodeabl IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Duration_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Duration_resourceType(ctx, field) + case "system": + return ec.fieldContext_Duration_system(ctx, field) + case "unit": + return ec.fieldContext_Duration_unit(ctx, field) + case "value": + return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) + case "extension": + return ec.fieldContext_Duration_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenCollection_collectedPeriod(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_collectedPeriod(ctx, field) +func (ec *executionContext) _SpecimenCollection_collector(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_collector(ctx, field) if err != nil { return graphql.Null } @@ -145949,47 +145943,49 @@ func (ec *executionContext) _SpecimenCollection_collectedPeriod(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CollectedPeriod, nil + return obj.Collector, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(model.SpecimenCollectionCollectorUnion) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalNSpecimenCollectionCollectorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionCollectorUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_collectedPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_collector(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenCollection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type SpecimenCollectionCollectorUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SpecimenCollection_collector_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SpecimenCollection_fastingStatusDuration(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_fastingStatusDuration(ctx, field) +func (ec *executionContext) _SpecimenCollection_fastingStatusCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_fastingStatusCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -146002,7 +145998,7 @@ func (ec *executionContext) _SpecimenCollection_fastingStatusDuration(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FastingStatusDuration, nil + return obj.FastingStatusCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -146011,12 +146007,12 @@ func (ec *executionContext) _SpecimenCollection_fastingStatusDuration(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Duration) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_fastingStatusDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_fastingStatusCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenCollection", Field: field, @@ -146024,24 +146020,18 @@ func (ec *executionContext) fieldContext_SpecimenCollection_fastingStatusDuratio IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Duration_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Duration_id(ctx, field) - case "resourceType": - return ec.fieldContext_Duration_resourceType(ctx, field) - case "system": - return ec.fieldContext_Duration_system(ctx, field) - case "unit": - return ec.fieldContext_Duration_unit(ctx, field) - case "value": - return ec.fieldContext_Duration_value(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -146068,11 +146058,14 @@ func (ec *executionContext) _SpecimenCollection_procedure(ctx context.Context, f return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.ProcedureType) + res := resTmp.(*model.ProcedureType) fc.Result = res - return ec.marshalOProcedureType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx, field.Selections, res) + return ec.marshalNProcedureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_SpecimenCollection_procedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -146083,86 +146076,86 @@ func (ec *executionContext) fieldContext_SpecimenCollection_procedure(ctx contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "resourceType": - return ec.fieldContext_ProcedureType_resourceType(ctx, field) case "recorder": return ec.fieldContext_ProcedureType_recorder(ctx, field) + case "report": + return ec.fieldContext_ProcedureType_report(ctx, field) + case "implicitRules": + return ec.fieldContext_ProcedureType_implicitRules(ctx, field) + case "meta": + return ec.fieldContext_ProcedureType_meta(ctx, field) + case "note": + return ec.fieldContext_ProcedureType_note(ctx, field) + case "bodySite": + return ec.fieldContext_ProcedureType_bodySite(ctx, field) + case "instantiatesUri": + return ec.fieldContext_ProcedureType_instantiatesUri(ctx, field) case "occurrenceTiming": return ec.fieldContext_ProcedureType_occurrenceTiming(ctx, field) - case "occurrenceString": - return ec.fieldContext_ProcedureType_occurrenceString(ctx, field) - case "outcome": - return ec.fieldContext_ProcedureType_outcome(ctx, field) - case "reason": - return ec.fieldContext_ProcedureType_reason(ctx, field) - case "reportedReference": - return ec.fieldContext_ProcedureType_reportedReference(ctx, field) - case "occurrencePeriod": - return ec.fieldContext_ProcedureType_occurrencePeriod(ctx, field) + case "occurrenceAge": + return ec.fieldContext_ProcedureType_occurrenceAge(ctx, field) + case "occurrenceDateTime": + return ec.fieldContext_ProcedureType_occurrenceDateTime(ctx, field) case "reportedBoolean": return ec.fieldContext_ProcedureType_reportedBoolean(ctx, field) - case "extension": - return ec.fieldContext_ProcedureType_extension(ctx, field) - case "report": - return ec.fieldContext_ProcedureType_report(ctx, field) - case "code": - return ec.fieldContext_ProcedureType_code(ctx, field) - case "category": - return ec.fieldContext_ProcedureType_category(ctx, field) - case "used": - return ec.fieldContext_ProcedureType_used(ctx, field) - case "recorded": - return ec.fieldContext_ProcedureType_recorded(ctx, field) - case "partOf": - return ec.fieldContext_ProcedureType_partOf(ctx, field) - case "statusReason": - return ec.fieldContext_ProcedureType_statusReason(ctx, field) - case "modifierExtension": - return ec.fieldContext_ProcedureType_modifierExtension(ctx, field) + case "subject": + return ec.fieldContext_ProcedureType_subject(ctx, field) case "occurrenceRange": return ec.fieldContext_ProcedureType_occurrenceRange(ctx, field) - case "followUp": - return ec.fieldContext_ProcedureType_followUp(ctx, field) - case "occurrenceAge": - return ec.fieldContext_ProcedureType_occurrenceAge(ctx, field) - case "bodySite": - return ec.fieldContext_ProcedureType_bodySite(ctx, field) - case "id": - return ec.fieldContext_ProcedureType_id(ctx, field) - case "focalDevice": - return ec.fieldContext_ProcedureType_focalDevice(ctx, field) + case "modifierExtension": + return ec.fieldContext_ProcedureType_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_ProcedureType_resourceType(ctx, field) + case "contained": + return ec.fieldContext_ProcedureType_contained(ctx, field) case "text": return ec.fieldContext_ProcedureType_text(ctx, field) - case "meta": - return ec.fieldContext_ProcedureType_meta(ctx, field) + case "status": + return ec.fieldContext_ProcedureType_status(ctx, field) + case "reportedReference": + return ec.fieldContext_ProcedureType_reportedReference(ctx, field) + case "reason": + return ec.fieldContext_ProcedureType_reason(ctx, field) + case "outcome": + return ec.fieldContext_ProcedureType_outcome(ctx, field) + case "partOf": + return ec.fieldContext_ProcedureType_partOf(ctx, field) + case "used": + return ec.fieldContext_ProcedureType_used(ctx, field) + case "code": + return ec.fieldContext_ProcedureType_code(ctx, field) + case "identifier": + return ec.fieldContext_ProcedureType_identifier(ctx, field) + case "category": + return ec.fieldContext_ProcedureType_category(ctx, field) case "supportingInfo": return ec.fieldContext_ProcedureType_supportingInfo(ctx, field) case "language": return ec.fieldContext_ProcedureType_language(ctx, field) - case "note": - return ec.fieldContext_ProcedureType_note(ctx, field) - case "status": - return ec.fieldContext_ProcedureType_status(ctx, field) - case "implicitRules": - return ec.fieldContext_ProcedureType_implicitRules(ctx, field) - case "contained": - return ec.fieldContext_ProcedureType_contained(ctx, field) + case "focalDevice": + return ec.fieldContext_ProcedureType_focalDevice(ctx, field) + case "id": + return ec.fieldContext_ProcedureType_id(ctx, field) + case "occurrenceString": + return ec.fieldContext_ProcedureType_occurrenceString(ctx, field) + case "recorded": + return ec.fieldContext_ProcedureType_recorded(ctx, field) case "performer": return ec.fieldContext_ProcedureType_performer(ctx, field) - case "instantiatesCanonical": - return ec.fieldContext_ProcedureType_instantiatesCanonical(ctx, field) + case "statusReason": + return ec.fieldContext_ProcedureType_statusReason(ctx, field) + case "followUp": + return ec.fieldContext_ProcedureType_followUp(ctx, field) case "complication": return ec.fieldContext_ProcedureType_complication(ctx, field) - case "occurrenceDateTime": - return ec.fieldContext_ProcedureType_occurrenceDateTime(ctx, field) - case "identifier": - return ec.fieldContext_ProcedureType_identifier(ctx, field) - case "instantiatesUri": - return ec.fieldContext_ProcedureType_instantiatesUri(ctx, field) - case "subject": - return ec.fieldContext_ProcedureType_subject(ctx, field) + case "extension": + return ec.fieldContext_ProcedureType_extension(ctx, field) case "focus": return ec.fieldContext_ProcedureType_focus(ctx, field) + case "occurrencePeriod": + return ec.fieldContext_ProcedureType_occurrencePeriod(ctx, field) + case "instantiatesCanonical": + return ec.fieldContext_ProcedureType_instantiatesCanonical(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ProcedureType", field.Name) }, @@ -146181,8 +146174,8 @@ func (ec *executionContext) fieldContext_SpecimenCollection_procedure(ctx contex return fc, nil } -func (ec *executionContext) _SpecimenCollection_device(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_device(ctx, field) +func (ec *executionContext) _SpecimenCollection_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -146195,7 +146188,7 @@ func (ec *executionContext) _SpecimenCollection_device(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Device, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -146204,36 +146197,26 @@ func (ec *executionContext) _SpecimenCollection_device(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_device(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenCollection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SpecimenCollection_collectedDateTime(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_collectedDateTime(ctx, field) +func (ec *executionContext) _SpecimenCollection_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_id(ctx, field) if err != nil { return graphql.Null } @@ -146246,7 +146229,7 @@ func (ec *executionContext) _SpecimenCollection_collectedDateTime(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CollectedDateTime, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -146260,7 +146243,7 @@ func (ec *executionContext) _SpecimenCollection_collectedDateTime(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_collectedDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenCollection", Field: field, @@ -146273,8 +146256,8 @@ func (ec *executionContext) fieldContext_SpecimenCollection_collectedDateTime(_ return fc, nil } -func (ec *executionContext) _SpecimenCollection_duration(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_duration(ctx, field) +func (ec *executionContext) _SpecimenCollection_quantity(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_quantity(ctx, field) if err != nil { return graphql.Null } @@ -146287,7 +146270,7 @@ func (ec *executionContext) _SpecimenCollection_duration(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Duration, nil + return obj.Quantity, nil }) if err != nil { ec.Error(ctx, err) @@ -146296,12 +146279,12 @@ func (ec *executionContext) _SpecimenCollection_duration(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Duration) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_duration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_quantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenCollection", Field: field, @@ -146310,30 +146293,30 @@ func (ec *executionContext) fieldContext_SpecimenCollection_duration(_ context.C Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "code": - return ec.fieldContext_Duration_code(ctx, field) + return ec.fieldContext_Quantity_code(ctx, field) case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) + return ec.fieldContext_Quantity_comparator(ctx, field) case "extension": - return ec.fieldContext_Duration_extension(ctx, field) + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_Duration_id(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_Duration_resourceType(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) case "system": - return ec.fieldContext_Duration_system(ctx, field) + return ec.fieldContext_Quantity_system(ctx, field) case "unit": - return ec.fieldContext_Duration_unit(ctx, field) + return ec.fieldContext_Quantity_unit(ctx, field) case "value": - return ec.fieldContext_Duration_value(ctx, field) + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenCollection_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_id(ctx, field) +func (ec *executionContext) _SpecimenCollection_bodySite(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_bodySite(ctx, field) if err != nil { return graphql.Null } @@ -146346,7 +146329,7 @@ func (ec *executionContext) _SpecimenCollection_id(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.BodySite, nil }) if err != nil { ec.Error(ctx, err) @@ -146355,26 +146338,36 @@ func (ec *executionContext) _SpecimenCollection_id(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_bodySite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenCollection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenCollection_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenCollection_resourceType(ctx, field) +func (ec *executionContext) _SpecimenCollection_collectedDateTime(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_collectedDateTime(ctx, field) if err != nil { return graphql.Null } @@ -146387,7 +146380,7 @@ func (ec *executionContext) _SpecimenCollection_resourceType(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.CollectedDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -146401,7 +146394,7 @@ func (ec *executionContext) _SpecimenCollection_resourceType(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenCollection_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_collectedDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenCollection", Field: field, @@ -146414,8 +146407,61 @@ func (ec *executionContext) fieldContext_SpecimenCollection_resourceType(_ conte return fc, nil } -func (ec *executionContext) _SpecimenContainer_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenContainer_modifierExtension(ctx, field) +func (ec *executionContext) _SpecimenCollection_collectedPeriod(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_collectedPeriod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CollectedPeriod, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Period) + fc.Result = res + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SpecimenCollection_collectedPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SpecimenCollection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SpecimenCollection_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -146442,128 +146488,128 @@ func (ec *executionContext) _SpecimenContainer_modifierExtension(ctx context.Con return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenContainer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenContainer", + Object: "SpecimenCollection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -146571,8 +146617,8 @@ func (ec *executionContext) fieldContext_SpecimenContainer_modifierExtension(_ c return fc, nil } -func (ec *executionContext) _SpecimenContainer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenContainer_resourceType(ctx, field) +func (ec *executionContext) _SpecimenCollection_method(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_method(ctx, field) if err != nil { return graphql.Null } @@ -146585,7 +146631,7 @@ func (ec *executionContext) _SpecimenContainer_resourceType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Method, nil }) if err != nil { ec.Error(ctx, err) @@ -146594,26 +146640,38 @@ func (ec *executionContext) _SpecimenContainer_resourceType(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenContainer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenContainer", + Object: "SpecimenCollection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenContainer_specimenQuantity(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenContainer_specimenQuantity(ctx, field) +func (ec *executionContext) _SpecimenCollection_device(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_device(ctx, field) if err != nil { return graphql.Null } @@ -146626,7 +146684,7 @@ func (ec *executionContext) _SpecimenContainer_specimenQuantity(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SpecimenQuantity, nil + return obj.Device, nil }) if err != nil { ec.Error(ctx, err) @@ -146635,44 +146693,36 @@ func (ec *executionContext) _SpecimenContainer_specimenQuantity(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenContainer_specimenQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_device(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenContainer", + Object: "SpecimenCollection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenContainer_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenContainer_extension(ctx, field) +func (ec *executionContext) _SpecimenCollection_duration(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_duration(ctx, field) if err != nil { return graphql.Null } @@ -146685,7 +146735,7 @@ func (ec *executionContext) _SpecimenContainer_extension(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Duration, nil }) if err != nil { ec.Error(ctx, err) @@ -146694,183 +146744,44 @@ func (ec *executionContext) _SpecimenContainer_extension(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Duration) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenContainer_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenCollection_duration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenContainer", + Object: "SpecimenCollection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Duration_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_Duration_resourceType(ctx, field) + case "system": + return ec.fieldContext_Duration_system(ctx, field) + case "unit": + return ec.fieldContext_Duration_unit(ctx, field) + case "value": + return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Duration_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SpecimenContainer_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenContainer_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SpecimenContainer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SpecimenContainer", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenFeature_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenFeature_extension(ctx, field) +func (ec *executionContext) _SpecimenContainer_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenContainer_extension(ctx, field) if err != nil { return graphql.Null } @@ -146897,128 +146808,128 @@ func (ec *executionContext) _SpecimenFeature_extension(ctx context.Context, fiel return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenFeature_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenContainer_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenFeature", + Object: "SpecimenContainer", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -147026,8 +146937,8 @@ func (ec *executionContext) fieldContext_SpecimenFeature_extension(_ context.Con return fc, nil } -func (ec *executionContext) _SpecimenFeature_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenFeature_id(ctx, field) +func (ec *executionContext) _SpecimenContainer_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenContainer_id(ctx, field) if err != nil { return graphql.Null } @@ -147054,9 +146965,9 @@ func (ec *executionContext) _SpecimenFeature_id(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenFeature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenContainer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenFeature", + Object: "SpecimenContainer", Field: field, IsMethod: false, IsResolver: false, @@ -147067,8 +146978,8 @@ func (ec *executionContext) fieldContext_SpecimenFeature_id(_ context.Context, f return fc, nil } -func (ec *executionContext) _SpecimenFeature_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenFeature_modifierExtension(ctx, field) +func (ec *executionContext) _SpecimenContainer_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenContainer_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -147095,128 +147006,128 @@ func (ec *executionContext) _SpecimenFeature_modifierExtension(ctx context.Conte return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenFeature_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenContainer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenFeature", + Object: "SpecimenContainer", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -147224,8 +147135,8 @@ func (ec *executionContext) fieldContext_SpecimenFeature_modifierExtension(_ con return fc, nil } -func (ec *executionContext) _SpecimenFeature_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenFeature_resourceType(ctx, field) +func (ec *executionContext) _SpecimenContainer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenContainer_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -147252,9 +147163,9 @@ func (ec *executionContext) _SpecimenFeature_resourceType(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenFeature_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenContainer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenFeature", + Object: "SpecimenContainer", Field: field, IsMethod: false, IsResolver: false, @@ -147265,8 +147176,8 @@ func (ec *executionContext) fieldContext_SpecimenFeature_resourceType(_ context. return fc, nil } -func (ec *executionContext) _SpecimenFeature_type(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenFeature_type(ctx, field) +func (ec *executionContext) _SpecimenContainer_specimenQuantity(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenContainer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenContainer_specimenQuantity(ctx, field) if err != nil { return graphql.Null } @@ -147279,7 +147190,7 @@ func (ec *executionContext) _SpecimenFeature_type(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.SpecimenQuantity, nil }) if err != nil { ec.Error(ctx, err) @@ -147288,31 +147199,37 @@ func (ec *executionContext) _SpecimenFeature_type(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenFeature_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenContainer_specimenQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenFeature", + Object: "SpecimenContainer", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil @@ -147359,8 +147276,8 @@ func (ec *executionContext) fieldContext_SpecimenFeature_description(_ context.C return fc, nil } -func (ec *executionContext) _SpecimenProcessing_timePeriod(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenProcessing_timePeriod(ctx, field) +func (ec *executionContext) _SpecimenFeature_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenFeature_extension(ctx, field) if err != nil { return graphql.Null } @@ -147373,7 +147290,7 @@ func (ec *executionContext) _SpecimenProcessing_timePeriod(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TimePeriod, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -147382,38 +147299,142 @@ func (ec *executionContext) _SpecimenProcessing_timePeriod(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenProcessing_timePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenFeature_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenProcessing", + Object: "SpecimenFeature", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenProcessing_additive(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenProcessing_additive(ctx, field) +func (ec *executionContext) _SpecimenFeature_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenFeature_id(ctx, field) if err != nil { return graphql.Null } @@ -147426,7 +147447,7 @@ func (ec *executionContext) _SpecimenProcessing_additive(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Additive, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -147435,75 +147456,26 @@ func (ec *executionContext) _SpecimenProcessing_additive(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOSubstanceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenProcessing_additive(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenFeature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenProcessing", + Object: "SpecimenFeature", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SubstanceType_id(ctx, field) - case "language": - return ec.fieldContext_SubstanceType_language(ctx, field) - case "ingredient": - return ec.fieldContext_SubstanceType_ingredient(ctx, field) - case "category": - return ec.fieldContext_SubstanceType_category(ctx, field) - case "identifier": - return ec.fieldContext_SubstanceType_identifier(ctx, field) - case "contained": - return ec.fieldContext_SubstanceType_contained(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceType_resourceType(ctx, field) - case "instance": - return ec.fieldContext_SubstanceType_instance(ctx, field) - case "implicitRules": - return ec.fieldContext_SubstanceType_implicitRules(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceType_modifierExtension(ctx, field) - case "expiry": - return ec.fieldContext_SubstanceType_expiry(ctx, field) - case "description": - return ec.fieldContext_SubstanceType_description(ctx, field) - case "status": - return ec.fieldContext_SubstanceType_status(ctx, field) - case "meta": - return ec.fieldContext_SubstanceType_meta(ctx, field) - case "code": - return ec.fieldContext_SubstanceType_code(ctx, field) - case "extension": - return ec.fieldContext_SubstanceType_extension(ctx, field) - case "quantity": - return ec.fieldContext_SubstanceType_quantity(ctx, field) - case "text": - return ec.fieldContext_SubstanceType_text(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubstanceType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SpecimenProcessing_additive_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _SpecimenProcessing_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenProcessing_modifierExtension(ctx, field) +func (ec *executionContext) _SpecimenFeature_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenFeature_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -147530,128 +147502,128 @@ func (ec *executionContext) _SpecimenProcessing_modifierExtension(ctx context.Co return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenProcessing_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenFeature_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenProcessing", + Object: "SpecimenFeature", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -147659,49 +147631,8 @@ func (ec *executionContext) fieldContext_SpecimenProcessing_modifierExtension(_ return fc, nil } -func (ec *executionContext) _SpecimenProcessing_description(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenProcessing_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SpecimenProcessing_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SpecimenProcessing", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SpecimenProcessing_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenProcessing_id(ctx, field) +func (ec *executionContext) _SpecimenFeature_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenFeature_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -147714,7 +147645,7 @@ func (ec *executionContext) _SpecimenProcessing_id(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -147728,9 +147659,9 @@ func (ec *executionContext) _SpecimenProcessing_id(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenProcessing_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenFeature_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenProcessing", + Object: "SpecimenFeature", Field: field, IsMethod: false, IsResolver: false, @@ -147741,8 +147672,8 @@ func (ec *executionContext) fieldContext_SpecimenProcessing_id(_ context.Context return fc, nil } -func (ec *executionContext) _SpecimenProcessing_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenProcessing_resourceType(ctx, field) +func (ec *executionContext) _SpecimenFeature_type(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenFeature_type(ctx, field) if err != nil { return graphql.Null } @@ -147755,7 +147686,7 @@ func (ec *executionContext) _SpecimenProcessing_resourceType(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -147764,26 +147695,38 @@ func (ec *executionContext) _SpecimenProcessing_resourceType(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenProcessing_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenFeature_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenProcessing", + Object: "SpecimenFeature", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenProcessing_method(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenProcessing_method(ctx, field) +func (ec *executionContext) _SpecimenProcessing_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenProcessing_extension(ctx, field) if err != nil { return graphql.Null } @@ -147796,7 +147739,7 @@ func (ec *executionContext) _SpecimenProcessing_method(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Method, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -147805,12 +147748,12 @@ func (ec *executionContext) _SpecimenProcessing_method(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenProcessing_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenProcessing_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenProcessing", Field: field, @@ -147818,25 +147761,129 @@ func (ec *executionContext) fieldContext_SpecimenProcessing_method(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenProcessing_timeDateTime(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenProcessing_timeDateTime(ctx, field) +func (ec *executionContext) _SpecimenProcessing_description(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenProcessing_description(ctx, field) if err != nil { return graphql.Null } @@ -147849,7 +147896,7 @@ func (ec *executionContext) _SpecimenProcessing_timeDateTime(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TimeDateTime, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -147863,7 +147910,7 @@ func (ec *executionContext) _SpecimenProcessing_timeDateTime(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenProcessing_timeDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenProcessing_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenProcessing", Field: field, @@ -147876,8 +147923,8 @@ func (ec *executionContext) fieldContext_SpecimenProcessing_timeDateTime(_ conte return fc, nil } -func (ec *executionContext) _SpecimenProcessing_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenProcessing_extension(ctx, field) +func (ec *executionContext) _SpecimenProcessing_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenProcessing_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -147890,7 +147937,7 @@ func (ec *executionContext) _SpecimenProcessing_extension(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -147904,7 +147951,7 @@ func (ec *executionContext) _SpecimenProcessing_extension(ctx context.Context, f return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenProcessing_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenProcessing_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenProcessing", Field: field, @@ -147912,120 +147959,120 @@ func (ec *executionContext) fieldContext_SpecimenProcessing_extension(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -148033,8 +148080,8 @@ func (ec *executionContext) fieldContext_SpecimenProcessing_extension(_ context. return fc, nil } -func (ec *executionContext) _SpecimenType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_identifier(ctx, field) +func (ec *executionContext) _SpecimenProcessing_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenProcessing_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -148047,7 +148094,7 @@ func (ec *executionContext) _SpecimenType_identifier(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -148056,46 +148103,119 @@ func (ec *executionContext) _SpecimenType_identifier(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenProcessing_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenType", + Object: "SpecimenProcessing", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SpecimenProcessing_additive(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenProcessing_additive(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Additive, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubstanceType) + fc.Result = res + return ec.marshalNSubstanceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SpecimenProcessing_additive(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SpecimenProcessing", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) + case "status": + return ec.fieldContext_SubstanceType_status(ctx, field) + case "quantity": + return ec.fieldContext_SubstanceType_quantity(ctx, field) + case "text": + return ec.fieldContext_SubstanceType_text(ctx, field) + case "identifier": + return ec.fieldContext_SubstanceType_identifier(ctx, field) + case "language": + return ec.fieldContext_SubstanceType_language(ctx, field) + case "implicitRules": + return ec.fieldContext_SubstanceType_implicitRules(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceType_resourceType(ctx, field) + case "instance": + return ec.fieldContext_SubstanceType_instance(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceType_modifierExtension(ctx, field) + case "category": + return ec.fieldContext_SubstanceType_category(ctx, field) + case "expiry": + return ec.fieldContext_SubstanceType_expiry(ctx, field) + case "ingredient": + return ec.fieldContext_SubstanceType_ingredient(ctx, field) + case "meta": + return ec.fieldContext_SubstanceType_meta(ctx, field) + case "code": + return ec.fieldContext_SubstanceType_code(ctx, field) + case "description": + return ec.fieldContext_SubstanceType_description(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + return ec.fieldContext_SubstanceType_extension(ctx, field) + case "contained": + return ec.fieldContext_SubstanceType_contained(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_SubstanceType_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubstanceType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SpecimenProcessing_additive_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SpecimenType_text(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_text(ctx, field) +func (ec *executionContext) _SpecimenProcessing_method(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenProcessing_method(ctx, field) if err != nil { return graphql.Null } @@ -148108,7 +148228,7 @@ func (ec *executionContext) _SpecimenType_text(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Method, nil }) if err != nil { ec.Error(ctx, err) @@ -148117,38 +148237,38 @@ func (ec *executionContext) _SpecimenType_text(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenProcessing_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenType", + Object: "SpecimenProcessing", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenType_contained(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_contained(ctx, field) +func (ec *executionContext) _SpecimenProcessing_timeDateTime(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenProcessing_timeDateTime(ctx, field) if err != nil { return graphql.Null } @@ -148161,7 +148281,7 @@ func (ec *executionContext) _SpecimenType_contained(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.TimeDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -148170,26 +148290,26 @@ func (ec *executionContext) _SpecimenType_contained(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenProcessing_timeDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenType", + Object: "SpecimenProcessing", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SpecimenType_combined(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_combined(ctx, field) +func (ec *executionContext) _SpecimenProcessing_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenProcessing_id(ctx, field) if err != nil { return graphql.Null } @@ -148202,7 +148322,7 @@ func (ec *executionContext) _SpecimenType_combined(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Combined, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -148216,9 +148336,9 @@ func (ec *executionContext) _SpecimenType_combined(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_combined(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenProcessing_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenType", + Object: "SpecimenProcessing", Field: field, IsMethod: false, IsResolver: false, @@ -148229,8 +148349,8 @@ func (ec *executionContext) fieldContext_SpecimenType_combined(_ context.Context return fc, nil } -func (ec *executionContext) _SpecimenType_role(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_role(ctx, field) +func (ec *executionContext) _SpecimenProcessing_timePeriod(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenProcessing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenProcessing_timePeriod(ctx, field) if err != nil { return graphql.Null } @@ -148243,7 +148363,7 @@ func (ec *executionContext) _SpecimenType_role(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.TimePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -148252,38 +148372,38 @@ func (ec *executionContext) _SpecimenType_role(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenProcessing_timePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SpecimenType", + Object: "SpecimenProcessing", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Period_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Period_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Period_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenType_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_extension(ctx, field) +func (ec *executionContext) _SpecimenType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -148296,7 +148416,7 @@ func (ec *executionContext) _SpecimenType_extension(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -148305,142 +148425,26 @@ func (ec *executionContext) _SpecimenType_extension(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SpecimenType_type(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_type(ctx, field) +func (ec *executionContext) _SpecimenType_subject(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_subject(ctx, field) if err != nil { return graphql.Null } @@ -148453,47 +148457,49 @@ func (ec *executionContext) _SpecimenType_type(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Subject, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(model.SpecimenSubjectUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNSpecimenSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenSubjectUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type SpecimenSubjectUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SpecimenType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SpecimenType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_resourceType(ctx, field) +func (ec *executionContext) _SpecimenType_combined(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_combined(ctx, field) if err != nil { return graphql.Null } @@ -148506,7 +148512,7 @@ func (ec *executionContext) _SpecimenType_resourceType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Combined, nil }) if err != nil { ec.Error(ctx, err) @@ -148520,7 +148526,7 @@ func (ec *executionContext) _SpecimenType_resourceType(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_combined(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, @@ -148533,8 +148539,8 @@ func (ec *executionContext) fieldContext_SpecimenType_resourceType(_ context.Con return fc, nil } -func (ec *executionContext) _SpecimenType_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_id(ctx, field) +func (ec *executionContext) _SpecimenType_accessionIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) if err != nil { return graphql.Null } @@ -148547,7 +148553,7 @@ func (ec *executionContext) _SpecimenType_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.AccessionIdentifier, nil }) if err != nil { ec.Error(ctx, err) @@ -148556,26 +148562,46 @@ func (ec *executionContext) _SpecimenType_id(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Identifier) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_accessionIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenType_parent(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_parent(ctx, field) +func (ec *executionContext) _SpecimenType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -148588,7 +148614,7 @@ func (ec *executionContext) _SpecimenType_parent(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Parent, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -148597,12 +148623,12 @@ func (ec *executionContext) _SpecimenType_parent(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SpecimenType) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOSpecimenType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_parent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, @@ -148610,222 +148636,120 @@ func (ec *executionContext) fieldContext_SpecimenType_parent(ctx context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "identifier": - return ec.fieldContext_SpecimenType_identifier(ctx, field) - case "text": - return ec.fieldContext_SpecimenType_text(ctx, field) - case "contained": - return ec.fieldContext_SpecimenType_contained(ctx, field) - case "combined": - return ec.fieldContext_SpecimenType_combined(ctx, field) - case "role": - return ec.fieldContext_SpecimenType_role(ctx, field) - case "extension": - return ec.fieldContext_SpecimenType_extension(ctx, field) - case "type": - return ec.fieldContext_SpecimenType_type(ctx, field) - case "resourceType": - return ec.fieldContext_SpecimenType_resourceType(ctx, field) - case "id": - return ec.fieldContext_SpecimenType_id(ctx, field) - case "parent": - return ec.fieldContext_SpecimenType_parent(ctx, field) - case "modifierExtension": - return ec.fieldContext_SpecimenType_modifierExtension(ctx, field) - case "status": - return ec.fieldContext_SpecimenType_status(ctx, field) - case "condition": - return ec.fieldContext_SpecimenType_condition(ctx, field) - case "meta": - return ec.fieldContext_SpecimenType_meta(ctx, field) - case "receivedTime": - return ec.fieldContext_SpecimenType_receivedTime(ctx, field) - case "feature": - return ec.fieldContext_SpecimenType_feature(ctx, field) - case "collection": - return ec.fieldContext_SpecimenType_collection(ctx, field) - case "subject": - return ec.fieldContext_SpecimenType_subject(ctx, field) - case "accessionIdentifier": - return ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) - case "container": - return ec.fieldContext_SpecimenType_container(ctx, field) - case "language": - return ec.fieldContext_SpecimenType_language(ctx, field) - case "processing": - return ec.fieldContext_SpecimenType_processing(ctx, field) - case "implicitRules": - return ec.fieldContext_SpecimenType_implicitRules(ctx, field) - case "note": - return ec.fieldContext_SpecimenType_note(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SpecimenType", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SpecimenType_parent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SpecimenType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_modifierExtension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SpecimenType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SpecimenType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -148833,8 +148757,8 @@ func (ec *executionContext) fieldContext_SpecimenType_modifierExtension(_ contex return fc, nil } -func (ec *executionContext) _SpecimenType_status(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_status(ctx, field) +func (ec *executionContext) _SpecimenType_type(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_type(ctx, field) if err != nil { return graphql.Null } @@ -148847,7 +148771,7 @@ func (ec *executionContext) _SpecimenType_status(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -148856,26 +148780,38 @@ func (ec *executionContext) _SpecimenType_status(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenType_condition(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_condition(ctx, field) +func (ec *executionContext) _SpecimenType_text(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_text(ctx, field) if err != nil { return graphql.Null } @@ -148888,7 +148824,7 @@ func (ec *executionContext) _SpecimenType_condition(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Condition, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -148897,12 +148833,12 @@ func (ec *executionContext) _SpecimenType_condition(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, @@ -148910,25 +148846,25 @@ func (ec *executionContext) fieldContext_SpecimenType_condition(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenType_meta(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_meta(ctx, field) +func (ec *executionContext) _SpecimenType_container(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_container(ctx, field) if err != nil { return graphql.Null } @@ -148941,7 +148877,7 @@ func (ec *executionContext) _SpecimenType_meta(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.Container, nil }) if err != nil { ec.Error(ctx, err) @@ -148950,12 +148886,12 @@ func (ec *executionContext) _SpecimenType_meta(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.SpecimenContainer) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOSpecimenContainer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_container(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, @@ -148963,33 +148899,25 @@ func (ec *executionContext) fieldContext_SpecimenType_meta(_ context.Context, fi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_SpecimenContainer_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_SpecimenContainer_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SpecimenContainer_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_SpecimenContainer_resourceType(ctx, field) + case "specimenQuantity": + return ec.fieldContext_SpecimenContainer_specimenQuantity(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SpecimenContainer", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenType_receivedTime(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_receivedTime(ctx, field) +func (ec *executionContext) _SpecimenType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -149002,7 +148930,7 @@ func (ec *executionContext) _SpecimenType_receivedTime(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ReceivedTime, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -149016,7 +148944,7 @@ func (ec *executionContext) _SpecimenType_receivedTime(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_receivedTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, @@ -149029,8 +148957,8 @@ func (ec *executionContext) fieldContext_SpecimenType_receivedTime(_ context.Con return fc, nil } -func (ec *executionContext) _SpecimenType_feature(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_feature(ctx, field) +func (ec *executionContext) _SpecimenType_parent(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_parent(ctx, field) if err != nil { return graphql.Null } @@ -149043,21 +148971,24 @@ func (ec *executionContext) _SpecimenType_feature(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Feature, nil + return obj.Parent, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.SpecimenFeature) + res := resTmp.(*model.SpecimenType) fc.Result = res - return ec.marshalOSpecimenFeature2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenFeature(ctx, field.Selections, res) + return ec.marshalNSpecimenType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_parent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, @@ -149065,27 +148996,74 @@ func (ec *executionContext) fieldContext_SpecimenType_feature(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_SpecimenFeature_extension(ctx, field) - case "id": - return ec.fieldContext_SpecimenFeature_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_SpecimenFeature_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_SpecimenFeature_resourceType(ctx, field) + return ec.fieldContext_SpecimenType_resourceType(ctx, field) + case "subject": + return ec.fieldContext_SpecimenType_subject(ctx, field) + case "combined": + return ec.fieldContext_SpecimenType_combined(ctx, field) + case "accessionIdentifier": + return ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) + case "modifierExtension": + return ec.fieldContext_SpecimenType_modifierExtension(ctx, field) case "type": - return ec.fieldContext_SpecimenFeature_type(ctx, field) - case "description": - return ec.fieldContext_SpecimenFeature_description(ctx, field) + return ec.fieldContext_SpecimenType_type(ctx, field) + case "text": + return ec.fieldContext_SpecimenType_text(ctx, field) + case "container": + return ec.fieldContext_SpecimenType_container(ctx, field) + case "implicitRules": + return ec.fieldContext_SpecimenType_implicitRules(ctx, field) + case "parent": + return ec.fieldContext_SpecimenType_parent(ctx, field) + case "meta": + return ec.fieldContext_SpecimenType_meta(ctx, field) + case "condition": + return ec.fieldContext_SpecimenType_condition(ctx, field) + case "feature": + return ec.fieldContext_SpecimenType_feature(ctx, field) + case "contained": + return ec.fieldContext_SpecimenType_contained(ctx, field) + case "id": + return ec.fieldContext_SpecimenType_id(ctx, field) + case "processing": + return ec.fieldContext_SpecimenType_processing(ctx, field) + case "extension": + return ec.fieldContext_SpecimenType_extension(ctx, field) + case "identifier": + return ec.fieldContext_SpecimenType_identifier(ctx, field) + case "collection": + return ec.fieldContext_SpecimenType_collection(ctx, field) + case "receivedTime": + return ec.fieldContext_SpecimenType_receivedTime(ctx, field) + case "role": + return ec.fieldContext_SpecimenType_role(ctx, field) + case "language": + return ec.fieldContext_SpecimenType_language(ctx, field) + case "note": + return ec.fieldContext_SpecimenType_note(ctx, field) + case "status": + return ec.fieldContext_SpecimenType_status(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SpecimenFeature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SpecimenType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SpecimenType_parent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SpecimenType_collection(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_collection(ctx, field) +func (ec *executionContext) _SpecimenType_meta(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_meta(ctx, field) if err != nil { return graphql.Null } @@ -149098,7 +149076,7 @@ func (ec *executionContext) _SpecimenType_collection(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Collection, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -149107,37 +149085,46 @@ func (ec *executionContext) _SpecimenType_collection(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]model.SpecimenCollectionUnion) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOSpecimenCollectionUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionUnion(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_collection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SpecimenCollectionUnion does not have child fields") + switch field.Name { + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SpecimenType_collection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _SpecimenType_subject(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_subject(ctx, field) +func (ec *executionContext) _SpecimenType_condition(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_condition(ctx, field) if err != nil { return graphql.Null } @@ -149150,7 +149137,7 @@ func (ec *executionContext) _SpecimenType_subject(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subject, nil + return obj.Condition, nil }) if err != nil { ec.Error(ctx, err) @@ -149159,37 +149146,38 @@ func (ec *executionContext) _SpecimenType_subject(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]model.SpecimenSubjectUnion) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOSpecimenSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenSubjectUnion(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SpecimenSubjectUnion does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SpecimenType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _SpecimenType_accessionIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_accessionIdentifier(ctx, field) +func (ec *executionContext) _SpecimenType_feature(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_feature(ctx, field) if err != nil { return graphql.Null } @@ -149202,7 +149190,7 @@ func (ec *executionContext) _SpecimenType_accessionIdentifier(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccessionIdentifier, nil + return obj.Feature, nil }) if err != nil { ec.Error(ctx, err) @@ -149211,12 +149199,12 @@ func (ec *executionContext) _SpecimenType_accessionIdentifier(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Identifier) + res := resTmp.([]*model.SpecimenFeature) fc.Result = res - return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOSpecimenFeature2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenFeature(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_accessionIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, @@ -149224,33 +149212,27 @@ func (ec *executionContext) fieldContext_SpecimenType_accessionIdentifier(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) + case "description": + return ec.fieldContext_SpecimenFeature_description(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + return ec.fieldContext_SpecimenFeature_extension(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_SpecimenFeature_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SpecimenFeature_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_SpecimenFeature_resourceType(ctx, field) + case "type": + return ec.fieldContext_SpecimenFeature_type(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SpecimenFeature", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenType_container(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_container(ctx, field) +func (ec *executionContext) _SpecimenType_contained(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_contained(ctx, field) if err != nil { return graphql.Null } @@ -149263,7 +149245,7 @@ func (ec *executionContext) _SpecimenType_container(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Container, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -149272,38 +149254,26 @@ func (ec *executionContext) _SpecimenType_container(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SpecimenContainer) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOSpecimenContainer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_container(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "modifierExtension": - return ec.fieldContext_SpecimenContainer_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_SpecimenContainer_resourceType(ctx, field) - case "specimenQuantity": - return ec.fieldContext_SpecimenContainer_specimenQuantity(ctx, field) - case "extension": - return ec.fieldContext_SpecimenContainer_extension(ctx, field) - case "id": - return ec.fieldContext_SpecimenContainer_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SpecimenContainer", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SpecimenType_language(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_language(ctx, field) +func (ec *executionContext) _SpecimenType_id(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_id(ctx, field) if err != nil { return graphql.Null } @@ -149316,7 +149286,7 @@ func (ec *executionContext) _SpecimenType_language(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -149330,7 +149300,7 @@ func (ec *executionContext) _SpecimenType_language(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, @@ -149379,24 +149349,24 @@ func (ec *executionContext) fieldContext_SpecimenType_processing(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "timePeriod": - return ec.fieldContext_SpecimenProcessing_timePeriod(ctx, field) - case "additive": - return ec.fieldContext_SpecimenProcessing_additive(ctx, field) - case "modifierExtension": - return ec.fieldContext_SpecimenProcessing_modifierExtension(ctx, field) + case "extension": + return ec.fieldContext_SpecimenProcessing_extension(ctx, field) case "description": return ec.fieldContext_SpecimenProcessing_description(ctx, field) - case "id": - return ec.fieldContext_SpecimenProcessing_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SpecimenProcessing_modifierExtension(ctx, field) case "resourceType": return ec.fieldContext_SpecimenProcessing_resourceType(ctx, field) + case "additive": + return ec.fieldContext_SpecimenProcessing_additive(ctx, field) case "method": return ec.fieldContext_SpecimenProcessing_method(ctx, field) case "timeDateTime": return ec.fieldContext_SpecimenProcessing_timeDateTime(ctx, field) - case "extension": - return ec.fieldContext_SpecimenProcessing_extension(ctx, field) + case "id": + return ec.fieldContext_SpecimenProcessing_id(ctx, field) + case "timePeriod": + return ec.fieldContext_SpecimenProcessing_timePeriod(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type SpecimenProcessing", field.Name) }, @@ -149404,8 +149374,8 @@ func (ec *executionContext) fieldContext_SpecimenType_processing(_ context.Conte return fc, nil } -func (ec *executionContext) _SpecimenType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_implicitRules(ctx, field) +func (ec *executionContext) _SpecimenType_extension(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_extension(ctx, field) if err != nil { return graphql.Null } @@ -149418,7 +149388,7 @@ func (ec *executionContext) _SpecimenType_implicitRules(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -149427,26 +149397,142 @@ func (ec *executionContext) _SpecimenType_implicitRules(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _SpecimenType_note(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SpecimenType_note(ctx, field) +func (ec *executionContext) _SpecimenType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -149459,7 +149545,7 @@ func (ec *executionContext) _SpecimenType_note(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -149468,37 +149554,46 @@ func (ec *executionContext) _SpecimenType_note(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]model.SpecimenNoteUnion) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOSpecimenNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SpecimenType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SpecimenNoteUnion does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SpecimenType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCharacterization_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_modifierExtension(ctx, field) +func (ec *executionContext) _SpecimenType_collection(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_collection(ctx, field) if err != nil { return graphql.Null } @@ -149511,151 +149606,49 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_modifierExtensi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Collection, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(model.SpecimenCollectionUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNSpecimenCollectionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_collection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionCharacterization", + Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type SpecimenCollectionUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SpecimenType_collection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCharacterization_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_resourceType(ctx, field) +func (ec *executionContext) _SpecimenType_receivedTime(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_receivedTime(ctx, field) if err != nil { return graphql.Null } @@ -149668,7 +149661,7 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_resourceType(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ReceivedTime, nil }) if err != nil { ec.Error(ctx, err) @@ -149682,9 +149675,9 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_resourceType(ct return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_receivedTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionCharacterization", + Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, @@ -149695,8 +149688,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_res return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCharacterization_technique(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_technique(ctx, field) +func (ec *executionContext) _SpecimenType_role(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_role(ctx, field) if err != nil { return graphql.Null } @@ -149709,7 +149702,7 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_technique(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Technique, nil + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -149718,19 +149711,21 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_technique(ctx c if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_technique(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionCharacterization", + Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -149739,8 +149734,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_tec return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -149748,8 +149741,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_tec return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCharacterization_description(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_description(ctx, field) +func (ec *executionContext) _SpecimenType_language(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_language(ctx, field) if err != nil { return graphql.Null } @@ -149762,7 +149755,7 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_description(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -149776,9 +149769,9 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_description(ctx return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionCharacterization", + Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, @@ -149789,8 +149782,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_des return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCharacterization_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_extension(ctx, field) +func (ec *executionContext) _SpecimenType_note(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_note(ctx, field) if err != nil { return graphql.Null } @@ -149803,142 +149796,238 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_extension(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(model.SpecimenNoteUnion) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalNSpecimenNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SpecimenType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionCharacterization", + Object: "SpecimenType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) + return nil, errors.New("field of type SpecimenNoteUnion does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SpecimenType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _SpecimenType_status(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SpecimenType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SpecimenType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionCharacterization_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_modifierExtension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifierExtension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionCharacterization", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) case "valueQuantity": return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -149946,8 +150035,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_ext return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCharacterization_file(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_file(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCharacterization_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -149960,7 +150049,7 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_file(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.File, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -149969,60 +150058,26 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_file(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Attachment) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionCharacterization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) - case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) - case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) - case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCharacterization_form(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_form(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCharacterization_technique(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_technique(ctx, field) if err != nil { return graphql.Null } @@ -150035,7 +150090,7 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_form(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Form, nil + return obj.Technique, nil }) if err != nil { ec.Error(ctx, err) @@ -150049,7 +150104,7 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_form(ctx contex return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_form(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_technique(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionCharacterization", Field: field, @@ -150057,6 +150112,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_for IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -150065,8 +150122,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_for return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -150074,8 +150129,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_for return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCharacterization_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_id(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCharacterization_description(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_description(ctx, field) if err != nil { return graphql.Null } @@ -150088,7 +150143,7 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_id(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -150102,7 +150157,7 @@ func (ec *executionContext) _SubstanceDefinitionCharacterization_id(ctx context. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionCharacterization", Field: field, @@ -150115,8 +150170,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_id( return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCode_source(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCode_source(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCharacterization_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_extension(ctx, field) if err != nil { return graphql.Null } @@ -150129,7 +150184,7 @@ func (ec *executionContext) _SubstanceDefinitionCode_source(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Source, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -150138,101 +150193,217 @@ func (ec *executionContext) _SubstanceDefinitionCode_source(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.DocumentReferenceType) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalODocumentReferenceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCode_source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionCode", + Object: "SubstanceDefinitionCharacterization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "version": - return ec.fieldContext_DocumentReferenceType_version(ctx, field) - case "language": - return ec.fieldContext_DocumentReferenceType_language(ctx, field) - case "implicitRules": - return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) - case "bodySite": - return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) - case "practiceSetting": - return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) - case "author": - return ec.fieldContext_DocumentReferenceType_author(ctx, field) - case "basedOn": - return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) - case "resourceType": - return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) - case "status": - return ec.fieldContext_DocumentReferenceType_status(ctx, field) - case "type": - return ec.fieldContext_DocumentReferenceType_type(ctx, field) - case "modality": - return ec.fieldContext_DocumentReferenceType_modality(ctx, field) - case "period": - return ec.fieldContext_DocumentReferenceType_period(ctx, field) - case "attester": - return ec.fieldContext_DocumentReferenceType_attester(ctx, field) - case "docStatus": - return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) - case "meta": - return ec.fieldContext_DocumentReferenceType_meta(ctx, field) - case "custodian": - return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) - case "event": - return ec.fieldContext_DocumentReferenceType_event(ctx, field) - case "relatesTo": - return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) - case "facilityType": - return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_DocumentReferenceType_id(ctx, field) - case "securityLabel": - return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) - case "identifier": - return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) - case "description": - return ec.fieldContext_DocumentReferenceType_description(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_DocumentReferenceType_extension(ctx, field) - case "category": - return ec.fieldContext_DocumentReferenceType_category(ctx, field) - case "text": - return ec.fieldContext_DocumentReferenceType_text(ctx, field) - case "contained": - return ec.fieldContext_DocumentReferenceType_contained(ctx, field) - case "subject": - return ec.fieldContext_DocumentReferenceType_subject(ctx, field) - case "content": - return ec.fieldContext_DocumentReferenceType_content(ctx, field) - case "date": - return ec.fieldContext_DocumentReferenceType_date(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionCharacterization_file(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_file(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SubstanceDefinitionCode_source_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.File, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Attachment) + fc.Result = res + return ec.marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionCharacterization", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) + case "resourceType": + return ec.fieldContext_Attachment_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) + case "id": + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCode_status(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCode_status(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCharacterization_form(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_form(ctx, field) if err != nil { return graphql.Null } @@ -150245,7 +150416,7 @@ func (ec *executionContext) _SubstanceDefinitionCode_status(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Form, nil }) if err != nil { ec.Error(ctx, err) @@ -150259,14 +150430,16 @@ func (ec *executionContext) _SubstanceDefinitionCode_status(ctx context.Context, return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCode_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_form(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionCode", + Object: "SubstanceDefinitionCharacterization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -150275,8 +150448,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCode_status(_ contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -150284,8 +150455,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCode_status(_ contex return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCode_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCode_resourceType(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCharacterization_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCharacterization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCharacterization_id(ctx, field) if err != nil { return graphql.Null } @@ -150298,7 +150469,7 @@ func (ec *executionContext) _SubstanceDefinitionCode_resourceType(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -150312,9 +150483,9 @@ func (ec *executionContext) _SubstanceDefinitionCode_resourceType(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCode_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCharacterization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionCode", + Object: "SubstanceDefinitionCharacterization", Field: field, IsMethod: false, IsResolver: false, @@ -150325,8 +150496,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCode_resourceType(_ return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCode_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCode_modifierExtension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCode_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCode_extension(ctx, field) if err != nil { return graphql.Null } @@ -150339,7 +150510,7 @@ func (ec *executionContext) _SubstanceDefinitionCode_modifierExtension(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -150353,7 +150524,7 @@ func (ec *executionContext) _SubstanceDefinitionCode_modifierExtension(ctx conte return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCode_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCode_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionCode", Field: field, @@ -150361,120 +150532,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCode_modifierExtensi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -150482,49 +150653,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCode_modifierExtensi return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCode_statusDate(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCode_statusDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StatusDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionCode_statusDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionCode", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceDefinitionCode_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCode_extension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCode_code(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCode_code(ctx, field) if err != nil { return graphql.Null } @@ -150537,7 +150667,7 @@ func (ec *executionContext) _SubstanceDefinitionCode_extension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -150546,12 +150676,12 @@ func (ec *executionContext) _SubstanceDefinitionCode_extension(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCode_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCode_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionCode", Field: field, @@ -150559,122 +150689,18 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCode_extension(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -150701,11 +150727,14 @@ func (ec *executionContext) _SubstanceDefinitionCode_note(ctx context.Context, f return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.SubstanceDefinitionCodeNoteUnion) + res := resTmp.(model.SubstanceDefinitionCodeNoteUnion) fc.Result = res - return ec.marshalOSubstanceDefinitionCodeNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCodeNoteUnion(ctx, field.Selections, res) + return ec.marshalNSubstanceDefinitionCodeNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCodeNoteUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_SubstanceDefinitionCode_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -150732,8 +150761,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCode_note(ctx contex return fc, nil } -func (ec *executionContext) _SubstanceDefinitionCode_code(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionCode_code(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCode_statusDate(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCode_statusDate(ctx, field) if err != nil { return graphql.Null } @@ -150746,7 +150775,7 @@ func (ec *executionContext) _SubstanceDefinitionCode_code(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.StatusDate, nil }) if err != nil { ec.Error(ctx, err) @@ -150755,31 +150784,19 @@ func (ec *executionContext) _SubstanceDefinitionCode_code(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionCode_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCode_statusDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionCode", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -150826,8 +150843,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionCode_id(_ context.Co return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMoiety_measurementType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMoiety_measurementType(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCode_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCode_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -150840,7 +150857,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_measurementType(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MeasurementType, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -150849,38 +150866,142 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_measurementType(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_measurementType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCode_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionMoiety", + Object: "SubstanceDefinitionCode", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMoiety_name(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMoiety_name(ctx, field) +func (ec *executionContext) _SubstanceDefinitionCode_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCode_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -150893,7 +151014,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_name(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -150907,9 +151028,9 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_name(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionCode_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionMoiety", + Object: "SubstanceDefinitionCode", Field: field, IsMethod: false, IsResolver: false, @@ -150920,6 +151041,178 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_name(_ contex return fc, nil } +func (ec *executionContext) _SubstanceDefinitionCode_source(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCode_source(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Source, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.DocumentReferenceType) + fc.Result = res + return ec.marshalNDocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionCode_source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionCode", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "modality": + return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "securityLabel": + return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) + case "meta": + return ec.fieldContext_DocumentReferenceType_meta(ctx, field) + case "subject": + return ec.fieldContext_DocumentReferenceType_subject(ctx, field) + case "id": + return ec.fieldContext_DocumentReferenceType_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) + case "contained": + return ec.fieldContext_DocumentReferenceType_contained(ctx, field) + case "event": + return ec.fieldContext_DocumentReferenceType_event(ctx, field) + case "practiceSetting": + return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) + case "bodySite": + return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "identifier": + return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) + case "date": + return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "language": + return ec.fieldContext_DocumentReferenceType_language(ctx, field) + case "author": + return ec.fieldContext_DocumentReferenceType_author(ctx, field) + case "type": + return ec.fieldContext_DocumentReferenceType_type(ctx, field) + case "category": + return ec.fieldContext_DocumentReferenceType_category(ctx, field) + case "period": + return ec.fieldContext_DocumentReferenceType_period(ctx, field) + case "facilityType": + return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) + case "attester": + return ec.fieldContext_DocumentReferenceType_attester(ctx, field) + case "implicitRules": + return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) + case "docStatus": + return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) + case "custodian": + return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) + case "description": + return ec.fieldContext_DocumentReferenceType_description(ctx, field) + case "basedOn": + return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) + case "relatesTo": + return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) + case "resourceType": + return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) + case "status": + return ec.fieldContext_DocumentReferenceType_status(ctx, field) + case "text": + return ec.fieldContext_DocumentReferenceType_text(ctx, field) + case "content": + return ec.fieldContext_DocumentReferenceType_content(ctx, field) + case "version": + return ec.fieldContext_DocumentReferenceType_version(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceType_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SubstanceDefinitionCode_source_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionCode_status(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCode_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionCode_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionCode", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _SubstanceDefinitionMoiety_amountString(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { fc, err := ec.fieldContext_SubstanceDefinitionMoiety_amountString(ctx, field) if err != nil { @@ -150961,6 +151254,59 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_amountString( return fc, nil } +func (ec *executionContext) _SubstanceDefinitionMoiety_stereochemistry(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_stereochemistry(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Stereochemistry, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_stereochemistry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionMoiety", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _SubstanceDefinitionMoiety_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { fc, err := ec.fieldContext_SubstanceDefinitionMoiety_extension(ctx, field) if err != nil { @@ -150997,120 +151343,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_extension(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -151154,24 +151500,24 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_identifier(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) case "extension": return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) case "period": return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) case "value": return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) case "id": return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, @@ -151179,8 +151525,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_identifier(_ return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMoiety_molecularFormula(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMoiety_molecularFormula(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMoiety_name(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_name(ctx, field) if err != nil { return graphql.Null } @@ -151193,7 +151539,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_molecularFormula(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MolecularFormula, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -151207,7 +151553,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_molecularFormula(ctx cont return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_molecularFormula(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMoiety", Field: field, @@ -151220,8 +151566,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_molecularForm return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMoiety_opticalActivity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMoiety_opticalActivity(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMoiety_role(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_role(ctx, field) if err != nil { return graphql.Null } @@ -151234,7 +151580,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_opticalActivity(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OpticalActivity, nil + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -151248,7 +151594,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_opticalActivity(ctx conte return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_opticalActivity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMoiety", Field: field, @@ -151256,6 +151602,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_opticalActivi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -151264,8 +151612,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_opticalActivi return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -151273,8 +151619,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_opticalActivi return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMoiety_stereochemistry(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMoiety_stereochemistry(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMoiety_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_id(ctx, field) if err != nil { return graphql.Null } @@ -151287,7 +151633,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_stereochemistry(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Stereochemistry, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -151296,38 +151642,26 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_stereochemistry(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_stereochemistry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMoiety", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMoiety_role(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMoiety_role(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMoiety_measurementType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_measurementType(ctx, field) if err != nil { return graphql.Null } @@ -151340,7 +151674,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_role(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.MeasurementType, nil }) if err != nil { ec.Error(ctx, err) @@ -151354,7 +151688,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_role(ctx context.Context, return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_measurementType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMoiety", Field: field, @@ -151362,6 +151696,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_role(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -151370,8 +151706,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_role(_ contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -151379,47 +151713,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_role(_ contex return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMoiety_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMoiety_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionMoiety", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - func (ec *executionContext) _SubstanceDefinitionMoiety_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { fc, err := ec.fieldContext_SubstanceDefinitionMoiety_modifierExtension(ctx, field) if err != nil { @@ -151456,120 +151749,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_modifierExten IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -151577,8 +151870,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_modifierExten return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMoiety_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMoiety_resourceType(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMoiety_molecularFormula(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_molecularFormula(ctx, field) if err != nil { return graphql.Null } @@ -151591,7 +151884,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_resourceType(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.MolecularFormula, nil }) if err != nil { ec.Error(ctx, err) @@ -151605,7 +151898,7 @@ func (ec *executionContext) _SubstanceDefinitionMoiety_resourceType(ctx context. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_molecularFormula(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMoiety", Field: field, @@ -151677,8 +151970,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_amountQuantit return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMolecularWeight_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_id(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMoiety_opticalActivity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_opticalActivity(ctx, field) if err != nil { return graphql.Null } @@ -151691,7 +151984,60 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_id(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.OpticalActivity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_opticalActivity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionMoiety", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionMoiety_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -151705,7 +152051,48 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_id(ctx context.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionMoiety", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionMolecularWeight_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMolecularWeight", Field: field, @@ -151718,8 +152105,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_id(_ return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMolecularWeight_method(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_method(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMolecularWeight_type(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_type(ctx, field) if err != nil { return graphql.Null } @@ -151732,7 +152119,7 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_method(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Method, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -151746,7 +152133,7 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_method(ctx conte return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMolecularWeight", Field: field, @@ -151754,6 +152141,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_meth IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -151762,8 +152151,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_meth return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -151771,8 +152158,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_meth return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMolecularWeight_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_modifierExtension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMolecularWeight_amount(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_amount(ctx, field) if err != nil { return graphql.Null } @@ -151785,7 +152172,66 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_modifierExtensio }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Amount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Quantity) + fc.Result = res + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionMolecularWeight", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionMolecularWeight_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -151799,7 +152245,7 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_modifierExtensio return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMolecularWeight", Field: field, @@ -151807,120 +152253,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_modi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -151928,8 +152374,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_modi return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMolecularWeight_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_resourceType(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMolecularWeight_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_id(ctx, field) if err != nil { return graphql.Null } @@ -151942,7 +152388,7 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_resourceType(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -151956,7 +152402,7 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_resourceType(ctx return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMolecularWeight", Field: field, @@ -151969,8 +152415,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_reso return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMolecularWeight_type(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_type(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMolecularWeight_method(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_method(ctx, field) if err != nil { return graphql.Null } @@ -151983,7 +152429,7 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_type(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Method, nil }) if err != nil { ec.Error(ctx, err) @@ -151997,7 +152443,7 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_type(ctx context return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMolecularWeight", Field: field, @@ -152005,6 +152451,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_type IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -152013,8 +152461,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_type return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -152022,67 +152468,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_type return fc, nil } -func (ec *executionContext) _SubstanceDefinitionMolecularWeight_amount(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_amount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Amount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Quantity) - fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionMolecularWeight", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceDefinitionMolecularWeight_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_extension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionMolecularWeight_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMolecularWeight) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMolecularWeight_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -152095,7 +152482,7 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_extension(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -152109,7 +152496,7 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight_extension(ctx co return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionMolecularWeight", Field: field, @@ -152117,120 +152504,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_exte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -152238,61 +152625,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionMolecularWeight_exte return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_status(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.CodeableConcept) - fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionName_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionName", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceDefinitionName_synonym(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_synonym(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_id(ctx, field) if err != nil { return graphql.Null } @@ -152305,7 +152639,7 @@ func (ec *executionContext) _SubstanceDefinitionName_synonym(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Synonym, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -152314,51 +152648,19 @@ func (ec *executionContext) _SubstanceDefinitionName_synonym(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionName) + res := resTmp.(*string) fc.Result = res - return ec.marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_synonym(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "status": - return ec.fieldContext_SubstanceDefinitionName_status(ctx, field) - case "synonym": - return ec.fieldContext_SubstanceDefinitionName_synonym(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionName_modifierExtension(ctx, field) - case "translation": - return ec.fieldContext_SubstanceDefinitionName_translation(ctx, field) - case "type": - return ec.fieldContext_SubstanceDefinitionName_type(ctx, field) - case "official": - return ec.fieldContext_SubstanceDefinitionName_official(ctx, field) - case "name": - return ec.fieldContext_SubstanceDefinitionName_name(ctx, field) - case "id": - return ec.fieldContext_SubstanceDefinitionName_id(ctx, field) - case "language": - return ec.fieldContext_SubstanceDefinitionName_language(ctx, field) - case "domain": - return ec.fieldContext_SubstanceDefinitionName_domain(ctx, field) - case "extension": - return ec.fieldContext_SubstanceDefinitionName_extension(ctx, field) - case "jurisdiction": - return ec.fieldContext_SubstanceDefinitionName_jurisdiction(ctx, field) - case "preferred": - return ec.fieldContext_SubstanceDefinitionName_preferred(ctx, field) - case "source": - return ec.fieldContext_SubstanceDefinitionName_source(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionName_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionName", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -152400,120 +152702,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_modifierExtensi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -152521,8 +152823,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_modifierExtensi return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_translation(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_translation(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_name(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_name(ctx, field) if err != nil { return graphql.Null } @@ -152535,7 +152837,7 @@ func (ec *executionContext) _SubstanceDefinitionName_translation(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Translation, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -152544,58 +152846,26 @@ func (ec *executionContext) _SubstanceDefinitionName_translation(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionName) + res := resTmp.(*string) fc.Result = res - return ec.marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_translation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "status": - return ec.fieldContext_SubstanceDefinitionName_status(ctx, field) - case "synonym": - return ec.fieldContext_SubstanceDefinitionName_synonym(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionName_modifierExtension(ctx, field) - case "translation": - return ec.fieldContext_SubstanceDefinitionName_translation(ctx, field) - case "type": - return ec.fieldContext_SubstanceDefinitionName_type(ctx, field) - case "official": - return ec.fieldContext_SubstanceDefinitionName_official(ctx, field) - case "name": - return ec.fieldContext_SubstanceDefinitionName_name(ctx, field) - case "id": - return ec.fieldContext_SubstanceDefinitionName_id(ctx, field) - case "language": - return ec.fieldContext_SubstanceDefinitionName_language(ctx, field) - case "domain": - return ec.fieldContext_SubstanceDefinitionName_domain(ctx, field) - case "extension": - return ec.fieldContext_SubstanceDefinitionName_extension(ctx, field) - case "jurisdiction": - return ec.fieldContext_SubstanceDefinitionName_jurisdiction(ctx, field) - case "preferred": - return ec.fieldContext_SubstanceDefinitionName_preferred(ctx, field) - case "source": - return ec.fieldContext_SubstanceDefinitionName_source(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionName_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionName", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_type(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_type(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_source(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_source(ctx, field) if err != nil { return graphql.Null } @@ -152608,21 +152878,24 @@ func (ec *executionContext) _SubstanceDefinitionName_type(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.DocumentReferenceType) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNDocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, @@ -152630,25 +152903,88 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_type(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "modality": + return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "securityLabel": + return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) + case "meta": + return ec.fieldContext_DocumentReferenceType_meta(ctx, field) + case "subject": + return ec.fieldContext_DocumentReferenceType_subject(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_DocumentReferenceType_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) + case "contained": + return ec.fieldContext_DocumentReferenceType_contained(ctx, field) + case "event": + return ec.fieldContext_DocumentReferenceType_event(ctx, field) + case "practiceSetting": + return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) + case "bodySite": + return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "identifier": + return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) + case "date": + return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "language": + return ec.fieldContext_DocumentReferenceType_language(ctx, field) + case "author": + return ec.fieldContext_DocumentReferenceType_author(ctx, field) + case "type": + return ec.fieldContext_DocumentReferenceType_type(ctx, field) + case "category": + return ec.fieldContext_DocumentReferenceType_category(ctx, field) + case "period": + return ec.fieldContext_DocumentReferenceType_period(ctx, field) + case "facilityType": + return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) + case "attester": + return ec.fieldContext_DocumentReferenceType_attester(ctx, field) + case "implicitRules": + return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) + case "docStatus": + return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) + case "custodian": + return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) + case "description": + return ec.fieldContext_DocumentReferenceType_description(ctx, field) + case "basedOn": + return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) + case "relatesTo": + return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) + case "status": + return ec.fieldContext_DocumentReferenceType_status(ctx, field) + case "text": + return ec.fieldContext_DocumentReferenceType_text(ctx, field) + case "content": + return ec.fieldContext_DocumentReferenceType_content(ctx, field) + case "version": + return ec.fieldContext_DocumentReferenceType_version(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceType_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SubstanceDefinitionName_source_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_official(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_official(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_preferred(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_preferred(ctx, field) if err != nil { return graphql.Null } @@ -152661,7 +152997,7 @@ func (ec *executionContext) _SubstanceDefinitionName_official(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Official, nil + return obj.Preferred, nil }) if err != nil { ec.Error(ctx, err) @@ -152670,42 +153006,26 @@ func (ec *executionContext) _SubstanceDefinitionName_official(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionNameOfficial) + res := resTmp.(*string) fc.Result = res - return ec.marshalOSubstanceDefinitionNameOfficial2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_official(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_preferred(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_SubstanceDefinitionNameOfficial_resourceType(ctx, field) - case "status": - return ec.fieldContext_SubstanceDefinitionNameOfficial_status(ctx, field) - case "authority": - return ec.fieldContext_SubstanceDefinitionNameOfficial_authority(ctx, field) - case "date": - return ec.fieldContext_SubstanceDefinitionNameOfficial_date(ctx, field) - case "extension": - return ec.fieldContext_SubstanceDefinitionNameOfficial_extension(ctx, field) - case "id": - return ec.fieldContext_SubstanceDefinitionNameOfficial_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionNameOfficial_modifierExtension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionNameOfficial", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_name(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_name(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_translation(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_translation(ctx, field) if err != nil { return graphql.Null } @@ -152718,7 +153038,7 @@ func (ec *executionContext) _SubstanceDefinitionName_name(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Translation, nil }) if err != nil { ec.Error(ctx, err) @@ -152727,26 +153047,58 @@ func (ec *executionContext) _SubstanceDefinitionName_name(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.SubstanceDefinitionName) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_translation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_SubstanceDefinitionName_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionName_modifierExtension(ctx, field) + case "name": + return ec.fieldContext_SubstanceDefinitionName_name(ctx, field) + case "source": + return ec.fieldContext_SubstanceDefinitionName_source(ctx, field) + case "preferred": + return ec.fieldContext_SubstanceDefinitionName_preferred(ctx, field) + case "translation": + return ec.fieldContext_SubstanceDefinitionName_translation(ctx, field) + case "jurisdiction": + return ec.fieldContext_SubstanceDefinitionName_jurisdiction(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionName_resourceType(ctx, field) + case "domain": + return ec.fieldContext_SubstanceDefinitionName_domain(ctx, field) + case "official": + return ec.fieldContext_SubstanceDefinitionName_official(ctx, field) + case "synonym": + return ec.fieldContext_SubstanceDefinitionName_synonym(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionName_extension(ctx, field) + case "type": + return ec.fieldContext_SubstanceDefinitionName_type(ctx, field) + case "language": + return ec.fieldContext_SubstanceDefinitionName_language(ctx, field) + case "status": + return ec.fieldContext_SubstanceDefinitionName_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionName", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_id(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_jurisdiction(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_jurisdiction(ctx, field) if err != nil { return graphql.Null } @@ -152759,7 +153111,7 @@ func (ec *executionContext) _SubstanceDefinitionName_id(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Jurisdiction, nil }) if err != nil { ec.Error(ctx, err) @@ -152768,26 +153120,38 @@ func (ec *executionContext) _SubstanceDefinitionName_id(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_jurisdiction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_language(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_language(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -152800,7 +153164,7 @@ func (ec *executionContext) _SubstanceDefinitionName_language(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -152809,31 +153173,19 @@ func (ec *executionContext) _SubstanceDefinitionName_language(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -152875,6 +153227,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_domain(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -152883,8 +153237,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_domain(_ contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -152892,8 +153244,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_domain(_ contex return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_extension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_official(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_official(ctx, field) if err != nil { return graphql.Null } @@ -152906,7 +153258,7 @@ func (ec *executionContext) _SubstanceDefinitionName_extension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Official, nil }) if err != nil { ec.Error(ctx, err) @@ -152915,12 +153267,12 @@ func (ec *executionContext) _SubstanceDefinitionName_extension(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.SubstanceDefinitionNameOfficial) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionNameOfficial2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_official(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, @@ -152928,120 +153280,250 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_extension(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "id": + return ec.fieldContext_SubstanceDefinitionNameOfficial_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionNameOfficial_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionNameOfficial_resourceType(ctx, field) + case "status": + return ec.fieldContext_SubstanceDefinitionNameOfficial_status(ctx, field) + case "authority": + return ec.fieldContext_SubstanceDefinitionNameOfficial_authority(ctx, field) + case "date": + return ec.fieldContext_SubstanceDefinitionNameOfficial_date(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionNameOfficial_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionNameOfficial", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionName_synonym(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_synonym(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Synonym, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceDefinitionName) + fc.Result = res + return ec.marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionName_synonym(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionName", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_SubstanceDefinitionName_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionName_modifierExtension(ctx, field) + case "name": + return ec.fieldContext_SubstanceDefinitionName_name(ctx, field) + case "source": + return ec.fieldContext_SubstanceDefinitionName_source(ctx, field) + case "preferred": + return ec.fieldContext_SubstanceDefinitionName_preferred(ctx, field) + case "translation": + return ec.fieldContext_SubstanceDefinitionName_translation(ctx, field) + case "jurisdiction": + return ec.fieldContext_SubstanceDefinitionName_jurisdiction(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionName_resourceType(ctx, field) + case "domain": + return ec.fieldContext_SubstanceDefinitionName_domain(ctx, field) + case "official": + return ec.fieldContext_SubstanceDefinitionName_official(ctx, field) + case "synonym": + return ec.fieldContext_SubstanceDefinitionName_synonym(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionName_extension(ctx, field) + case "type": + return ec.fieldContext_SubstanceDefinitionName_type(ctx, field) + case "language": + return ec.fieldContext_SubstanceDefinitionName_language(ctx, field) + case "status": + return ec.fieldContext_SubstanceDefinitionName_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionName", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionName_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionName_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionName", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) case "valueQuantity": return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -153049,8 +153531,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_extension(_ con return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_jurisdiction(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_jurisdiction(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_type(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_type(ctx, field) if err != nil { return graphql.Null } @@ -153063,7 +153545,7 @@ func (ec *executionContext) _SubstanceDefinitionName_jurisdiction(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Jurisdiction, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -153072,12 +153554,12 @@ func (ec *executionContext) _SubstanceDefinitionName_jurisdiction(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_jurisdiction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, @@ -153085,6 +153567,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_jurisdiction(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -153093,8 +153577,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_jurisdiction(_ return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -153102,8 +153584,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_jurisdiction(_ return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_preferred(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_preferred(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_language(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_language(ctx, field) if err != nil { return graphql.Null } @@ -153116,7 +153598,7 @@ func (ec *executionContext) _SubstanceDefinitionName_preferred(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Preferred, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -153125,26 +153607,38 @@ func (ec *executionContext) _SubstanceDefinitionName_preferred(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_preferred(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_source(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_source(ctx, field) +func (ec *executionContext) _SubstanceDefinitionName_status(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_status(ctx, field) if err != nil { return graphql.Null } @@ -153157,7 +153651,7 @@ func (ec *executionContext) _SubstanceDefinitionName_source(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Source, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -153166,12 +153660,12 @@ func (ec *executionContext) _SubstanceDefinitionName_source(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.DocumentReferenceType) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalODocumentReferenceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionName_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionName", Field: field, @@ -153179,88 +153673,66 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionName_source(ctx cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "version": - return ec.fieldContext_DocumentReferenceType_version(ctx, field) - case "language": - return ec.fieldContext_DocumentReferenceType_language(ctx, field) - case "implicitRules": - return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) - case "bodySite": - return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) - case "practiceSetting": - return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) - case "author": - return ec.fieldContext_DocumentReferenceType_author(ctx, field) - case "basedOn": - return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) case "resourceType": - return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) - case "status": - return ec.fieldContext_DocumentReferenceType_status(ctx, field) - case "type": - return ec.fieldContext_DocumentReferenceType_type(ctx, field) - case "modality": - return ec.fieldContext_DocumentReferenceType_modality(ctx, field) - case "period": - return ec.fieldContext_DocumentReferenceType_period(ctx, field) - case "attester": - return ec.fieldContext_DocumentReferenceType_attester(ctx, field) - case "docStatus": - return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) - case "meta": - return ec.fieldContext_DocumentReferenceType_meta(ctx, field) - case "custodian": - return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) - case "event": - return ec.fieldContext_DocumentReferenceType_event(ctx, field) - case "relatesTo": - return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) - case "facilityType": - return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) - case "id": - return ec.fieldContext_DocumentReferenceType_id(ctx, field) - case "securityLabel": - return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) - case "identifier": - return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) - case "description": - return ec.fieldContext_DocumentReferenceType_description(ctx, field) - case "extension": - return ec.fieldContext_DocumentReferenceType_extension(ctx, field) - case "category": - return ec.fieldContext_DocumentReferenceType_category(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": - return ec.fieldContext_DocumentReferenceType_text(ctx, field) - case "contained": - return ec.fieldContext_DocumentReferenceType_contained(ctx, field) - case "subject": - return ec.fieldContext_DocumentReferenceType_subject(ctx, field) - case "content": - return ec.fieldContext_DocumentReferenceType_content(ctx, field) - case "date": - return ec.fieldContext_DocumentReferenceType_date(ctx, field) + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionNameOfficial_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionNameOfficial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionNameOfficial_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SubstanceDefinitionName_source_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionNameOfficial", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionName_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionName_resourceType(ctx, field) +func (ec *executionContext) _SubstanceDefinitionNameOfficial_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionNameOfficial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionNameOfficial_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -153273,7 +153745,7 @@ func (ec *executionContext) _SubstanceDefinitionName_resourceType(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -153282,19 +153754,135 @@ func (ec *executionContext) _SubstanceDefinitionName_resourceType(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionName_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionName", + Object: "SubstanceDefinitionNameOfficial", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil @@ -153377,6 +153965,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_status( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -153385,8 +153975,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_status( return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -153430,6 +154018,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_authori IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -153438,8 +154028,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_authori return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -153524,120 +154112,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_extensi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -153645,49 +154233,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_extensi return fc, nil } -func (ec *executionContext) _SubstanceDefinitionNameOfficial_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionNameOfficial) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionNameOfficial_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionNameOfficial", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceDefinitionNameOfficial_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionNameOfficial) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionNameOfficial_modifierExtension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionProperty_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_extension(ctx, field) if err != nil { return graphql.Null } @@ -153700,7 +154247,7 @@ func (ec *executionContext) _SubstanceDefinitionNameOfficial_modifierExtension(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -153714,128 +154261,128 @@ func (ec *executionContext) _SubstanceDefinitionNameOfficial_modifierExtension(c return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionNameOfficial", + Object: "SubstanceDefinitionProperty", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -153843,8 +154390,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionNameOfficial_modifie return fc, nil } -func (ec *executionContext) _SubstanceDefinitionProperty_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionProperty_extension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionProperty_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -153857,7 +154404,7 @@ func (ec *executionContext) _SubstanceDefinitionProperty_extension(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -153871,7 +154418,7 @@ func (ec *executionContext) _SubstanceDefinitionProperty_extension(ctx context.C return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionProperty", Field: field, @@ -153879,277 +154426,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_extension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) case "valueRelatedArtifact": return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) case "valueId": return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) case "valueCount": return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) case "valueUsageContext": return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceDefinitionProperty_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionProperty_modifierExtension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionProperty", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) case "valueInteger": return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) case "valueUuid": return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -154193,38 +154583,38 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueAttach IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) - case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) case "size": return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) case "title": return ec.fieldContext_Attachment_title(ctx, field) case "creation": return ec.fieldContext_Attachment_creation(ctx, field) case "height": return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) case "hash": return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) case "resourceType": return ec.fieldContext_Attachment_resourceType(ctx, field) - case "id": - return ec.fieldContext_Attachment_id(ctx, field) + case "extension": + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) case "contentType": return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) + case "id": + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, @@ -154232,8 +154622,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueAttach return fc, nil } -func (ec *executionContext) _SubstanceDefinitionProperty_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionProperty_valueQuantity(ctx, field) +func (ec *executionContext) _SubstanceDefinitionProperty_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_valueCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -154246,7 +154636,7 @@ func (ec *executionContext) _SubstanceDefinitionProperty_valueQuantity(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueQuantity, nil + return obj.ValueCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -154255,12 +154645,12 @@ func (ec *executionContext) _SubstanceDefinitionProperty_valueQuantity(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionProperty", Field: field, @@ -154268,31 +154658,25 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueQuanti IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionProperty_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionProperty_id(ctx, field) +func (ec *executionContext) _SubstanceDefinitionProperty_valueDate(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_valueDate(ctx, field) if err != nil { return graphql.Null } @@ -154305,7 +154689,7 @@ func (ec *executionContext) _SubstanceDefinitionProperty_id(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ValueDate, nil }) if err != nil { ec.Error(ctx, err) @@ -154319,7 +154703,7 @@ func (ec *executionContext) _SubstanceDefinitionProperty_id(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionProperty", Field: field, @@ -154409,6 +154793,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_type(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -154417,8 +154803,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_type(_ cont return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -154426,8 +154810,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_type(_ cont return fc, nil } -func (ec *executionContext) _SubstanceDefinitionProperty_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionProperty_valueBoolean(ctx, field) +func (ec *executionContext) _SubstanceDefinitionProperty_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_valueQuantity(ctx, field) if err != nil { return graphql.Null } @@ -154440,7 +154824,66 @@ func (ec *executionContext) _SubstanceDefinitionProperty_valueBoolean(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueBoolean, nil + return obj.ValueQuantity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Quantity) + fc.Result = res + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionProperty", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) + case "extension": + return ec.fieldContext_Quantity_extension(ctx, field) + case "id": + return ec.fieldContext_Quantity_id(ctx, field) + case "resourceType": + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionProperty_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -154454,7 +154897,7 @@ func (ec *executionContext) _SubstanceDefinitionProperty_valueBoolean(ctx contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionProperty", Field: field, @@ -154467,8 +154910,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueBoolea return fc, nil } -func (ec *executionContext) _SubstanceDefinitionProperty_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionProperty_valueCodeableConcept(ctx, field) +func (ec *executionContext) _SubstanceDefinitionProperty_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_valueBoolean(ctx, field) if err != nil { return graphql.Null } @@ -154481,7 +154924,7 @@ func (ec *executionContext) _SubstanceDefinitionProperty_valueCodeableConcept(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCodeableConcept, nil + return obj.ValueBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -154490,38 +154933,26 @@ func (ec *executionContext) _SubstanceDefinitionProperty_valueCodeableConcept(ct if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionProperty", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionProperty_valueDate(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionProperty_valueDate(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_isDefining(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_isDefining(ctx, field) if err != nil { return graphql.Null } @@ -154534,7 +154965,7 @@ func (ec *executionContext) _SubstanceDefinitionProperty_valueDate(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDate, nil + return obj.IsDefining, nil }) if err != nil { ec.Error(ctx, err) @@ -154548,9 +154979,9 @@ func (ec *executionContext) _SubstanceDefinitionProperty_valueDate(ctx context.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_isDefining(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionProperty", + Object: "SubstanceDefinitionRelationship", Field: field, IsMethod: false, IsResolver: false, @@ -154561,8 +154992,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionProperty_valueDate(_ return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_substanceDefinitionReference(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_substanceDefinitionReference(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -154575,7 +155006,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_substanceDefinition }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubstanceDefinitionReference, nil + return obj.SubstanceDefinitionCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -154584,12 +155015,12 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_substanceDefinition if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionType) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOSubstanceDefinitionType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_substanceDefinitionReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, @@ -154597,76 +155028,176 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_substan IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": - return ec.fieldContext_SubstanceDefinitionType_text(ctx, field) - case "moiety": - return ec.fieldContext_SubstanceDefinitionType_moiety(ctx, field) - case "implicitRules": - return ec.fieldContext_SubstanceDefinitionType_implicitRules(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionType_modifierExtension(ctx, field) - case "characterization": - return ec.fieldContext_SubstanceDefinitionType_characterization(ctx, field) - case "supplier": - return ec.fieldContext_SubstanceDefinitionType_supplier(ctx, field) - case "note": - return ec.fieldContext_SubstanceDefinitionType_note(ctx, field) - case "description": - return ec.fieldContext_SubstanceDefinitionType_description(ctx, field) - case "structure": - return ec.fieldContext_SubstanceDefinitionType_structure(ctx, field) - case "id": - return ec.fieldContext_SubstanceDefinitionType_id(ctx, field) - case "language": - return ec.fieldContext_SubstanceDefinitionType_language(ctx, field) - case "contained": - return ec.fieldContext_SubstanceDefinitionType_contained(ctx, field) - case "domain": - return ec.fieldContext_SubstanceDefinitionType_domain(ctx, field) + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_SubstanceDefinitionType_extension(ctx, field) - case "identifier": - return ec.fieldContext_SubstanceDefinitionType_identifier(ctx, field) - case "version": - return ec.fieldContext_SubstanceDefinitionType_version(ctx, field) - case "relationship": - return ec.fieldContext_SubstanceDefinitionType_relationship(ctx, field) - case "manufacturer": - return ec.fieldContext_SubstanceDefinitionType_manufacturer(ctx, field) - case "grade": - return ec.fieldContext_SubstanceDefinitionType_grade(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionType_resourceType(ctx, field) - case "name": - return ec.fieldContext_SubstanceDefinitionType_name(ctx, field) - case "status": - return ec.fieldContext_SubstanceDefinitionType_status(ctx, field) - case "meta": - return ec.fieldContext_SubstanceDefinitionType_meta(ctx, field) - case "molecularWeight": - return ec.fieldContext_SubstanceDefinitionType_molecularWeight(ctx, field) - case "sourceMaterial": - return ec.fieldContext_SubstanceDefinitionType_sourceMaterial(ctx, field) - case "classification": - return ec.fieldContext_SubstanceDefinitionType_classification(ctx, field) - case "code": - return ec.fieldContext_SubstanceDefinitionType_code(ctx, field) - case "property": - return ec.fieldContext_SubstanceDefinitionType_property(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionRelationship_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_extension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SubstanceDefinitionRelationship_substanceDefinitionReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Extension, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionRelationship", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, } return fc, nil } @@ -154730,8 +155261,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_amountQ return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_amountRatio(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_amountRatio(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_id(ctx, field) if err != nil { return graphql.Null } @@ -154744,7 +155275,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_amountRatio(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AmountRatio, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -154753,38 +155284,26 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_amountRatio(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Ratio) + res := resTmp.(*string) fc.Result = res - return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_amountRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Ratio_extension(ctx, field) - case "id": - return ec.fieldContext_Ratio_id(ctx, field) - case "numerator": - return ec.fieldContext_Ratio_numerator(ctx, field) - case "resourceType": - return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_id(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -154797,7 +155316,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_id(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -154806,26 +155325,142 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_id(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_ratioHighLimitAmount(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_ratioHighLimitAmount(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_amountString(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_amountString(ctx, field) if err != nil { return graphql.Null } @@ -154838,7 +155473,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_ratioHighLimitAmoun }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RatioHighLimitAmount, nil + return obj.AmountString, nil }) if err != nil { ec.Error(ctx, err) @@ -154847,31 +155482,19 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_ratioHighLimitAmoun if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Ratio) + res := resTmp.(*string) fc.Result = res - return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_ratioHighLimitAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_amountString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Ratio_extension(ctx, field) - case "id": - return ec.fieldContext_Ratio_id(ctx, field) - case "numerator": - return ec.fieldContext_Ratio_numerator(ctx, field) - case "resourceType": - return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -154898,11 +155521,14 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_source(ctx context. return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.DocumentReferenceType) + res := resTmp.(*model.DocumentReferenceType) fc.Result = res - return ec.marshalODocumentReferenceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) + return ec.marshalNDocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -154913,68 +155539,68 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_source( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "version": - return ec.fieldContext_DocumentReferenceType_version(ctx, field) - case "language": - return ec.fieldContext_DocumentReferenceType_language(ctx, field) - case "implicitRules": - return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) - case "bodySite": - return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "modality": + return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "securityLabel": + return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) + case "meta": + return ec.fieldContext_DocumentReferenceType_meta(ctx, field) + case "subject": + return ec.fieldContext_DocumentReferenceType_subject(ctx, field) + case "id": + return ec.fieldContext_DocumentReferenceType_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) + case "contained": + return ec.fieldContext_DocumentReferenceType_contained(ctx, field) + case "event": + return ec.fieldContext_DocumentReferenceType_event(ctx, field) case "practiceSetting": return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) + case "bodySite": + return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "identifier": + return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) + case "date": + return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "language": + return ec.fieldContext_DocumentReferenceType_language(ctx, field) case "author": return ec.fieldContext_DocumentReferenceType_author(ctx, field) - case "basedOn": - return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) - case "resourceType": - return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) - case "status": - return ec.fieldContext_DocumentReferenceType_status(ctx, field) case "type": return ec.fieldContext_DocumentReferenceType_type(ctx, field) - case "modality": - return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "category": + return ec.fieldContext_DocumentReferenceType_category(ctx, field) case "period": return ec.fieldContext_DocumentReferenceType_period(ctx, field) + case "facilityType": + return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) case "attester": return ec.fieldContext_DocumentReferenceType_attester(ctx, field) + case "implicitRules": + return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) case "docStatus": return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) - case "meta": - return ec.fieldContext_DocumentReferenceType_meta(ctx, field) case "custodian": return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) - case "event": - return ec.fieldContext_DocumentReferenceType_event(ctx, field) - case "relatesTo": - return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) - case "facilityType": - return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) - case "id": - return ec.fieldContext_DocumentReferenceType_id(ctx, field) - case "securityLabel": - return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) - case "identifier": - return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) case "description": return ec.fieldContext_DocumentReferenceType_description(ctx, field) - case "extension": - return ec.fieldContext_DocumentReferenceType_extension(ctx, field) - case "category": - return ec.fieldContext_DocumentReferenceType_category(ctx, field) + case "basedOn": + return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) + case "relatesTo": + return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) + case "resourceType": + return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) + case "status": + return ec.fieldContext_DocumentReferenceType_status(ctx, field) case "text": return ec.fieldContext_DocumentReferenceType_text(ctx, field) - case "contained": - return ec.fieldContext_DocumentReferenceType_contained(ctx, field) - case "subject": - return ec.fieldContext_DocumentReferenceType_subject(ctx, field) case "content": return ec.fieldContext_DocumentReferenceType_content(ctx, field) - case "date": - return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "version": + return ec.fieldContext_DocumentReferenceType_version(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceType_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) }, @@ -154993,8 +155619,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_source( return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_resourceType(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_comparator(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_comparator(ctx, field) if err != nil { return graphql.Null } @@ -155007,7 +155633,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_resourceType(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Comparator, nil }) if err != nil { ec.Error(ctx, err) @@ -155016,26 +155642,38 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_resourceType(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_amountString(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_amountString(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -155048,7 +155686,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_amountString(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AmountString, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -155062,7 +155700,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_amountString(ctx co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_amountString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, @@ -155075,8 +155713,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_amountS return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_isDefining(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_isDefining(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_ratioHighLimitAmount(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_ratioHighLimitAmount(ctx, field) if err != nil { return graphql.Null } @@ -155089,7 +155727,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_isDefining(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsDefining, nil + return obj.RatioHighLimitAmount, nil }) if err != nil { ec.Error(ctx, err) @@ -155098,26 +155736,38 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_isDefining(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Ratio) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_isDefining(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_ratioHighLimitAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) + case "extension": + return ec.fieldContext_Ratio_extension(ctx, field) + case "id": + return ec.fieldContext_Ratio_id(ctx, field) + case "numerator": + return ec.fieldContext_Ratio_numerator(ctx, field) + case "resourceType": + return ec.fieldContext_Ratio_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_modifierExtension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_type(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_type(ctx, field) if err != nil { return graphql.Null } @@ -155130,7 +155780,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_modifierExtension(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -155139,12 +155789,12 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_modifierExtension(c if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, @@ -155152,129 +155802,25 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_modifie IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_comparator(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_comparator(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_substanceDefinitionReference(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_substanceDefinitionReference(ctx, field) if err != nil { return graphql.Null } @@ -155287,21 +155833,24 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_comparator(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Comparator, nil + return obj.SubstanceDefinitionReference, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.SubstanceDefinitionType) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNSubstanceDefinitionType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_substanceDefinitionReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, @@ -155309,25 +155858,82 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_compara IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "version": + return ec.fieldContext_SubstanceDefinitionType_version(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_SubstanceDefinitionType_extension(ctx, field) + case "manufacturer": + return ec.fieldContext_SubstanceDefinitionType_manufacturer(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_SubstanceDefinitionType_id(ctx, field) + case "meta": + return ec.fieldContext_SubstanceDefinitionType_meta(ctx, field) + case "classification": + return ec.fieldContext_SubstanceDefinitionType_classification(ctx, field) + case "code": + return ec.fieldContext_SubstanceDefinitionType_code(ctx, field) + case "characterization": + return ec.fieldContext_SubstanceDefinitionType_characterization(ctx, field) + case "supplier": + return ec.fieldContext_SubstanceDefinitionType_supplier(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_SubstanceDefinitionType_resourceType(ctx, field) + case "sourceMaterial": + return ec.fieldContext_SubstanceDefinitionType_sourceMaterial(ctx, field) + case "contained": + return ec.fieldContext_SubstanceDefinitionType_contained(ctx, field) + case "status": + return ec.fieldContext_SubstanceDefinitionType_status(ctx, field) + case "property": + return ec.fieldContext_SubstanceDefinitionType_property(ctx, field) + case "language": + return ec.fieldContext_SubstanceDefinitionType_language(ctx, field) + case "name": + return ec.fieldContext_SubstanceDefinitionType_name(ctx, field) + case "structure": + return ec.fieldContext_SubstanceDefinitionType_structure(ctx, field) + case "description": + return ec.fieldContext_SubstanceDefinitionType_description(ctx, field) + case "text": + return ec.fieldContext_SubstanceDefinitionType_text(ctx, field) + case "molecularWeight": + return ec.fieldContext_SubstanceDefinitionType_molecularWeight(ctx, field) + case "implicitRules": + return ec.fieldContext_SubstanceDefinitionType_implicitRules(ctx, field) + case "identifier": + return ec.fieldContext_SubstanceDefinitionType_identifier(ctx, field) + case "relationship": + return ec.fieldContext_SubstanceDefinitionType_relationship(ctx, field) + case "domain": + return ec.fieldContext_SubstanceDefinitionType_domain(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionType_modifierExtension(ctx, field) + case "moiety": + return ec.fieldContext_SubstanceDefinitionType_moiety(ctx, field) + case "note": + return ec.fieldContext_SubstanceDefinitionType_note(ctx, field) + case "grade": + return ec.fieldContext_SubstanceDefinitionType_grade(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SubstanceDefinitionRelationship_substanceDefinitionReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_type(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_type(ctx, field) +func (ec *executionContext) _SubstanceDefinitionRelationship_amountRatio(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_amountRatio(ctx, field) if err != nil { return graphql.Null } @@ -155340,7 +155946,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_type(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.AmountRatio, nil }) if err != nil { ec.Error(ctx, err) @@ -155349,12 +155955,12 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_type(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Ratio) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_amountRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionRelationship", Field: field, @@ -155362,25 +155968,66 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_type(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Ratio_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Ratio_id(ctx, field) + case "numerator": + return ec.fieldContext_Ratio_numerator(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Ratio_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_extension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionSourceMaterial_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionSourceMaterial", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionSourceMaterial_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_extension(ctx, field) if err != nil { return graphql.Null } @@ -155407,128 +156054,128 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_extension(ctx conte return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionRelationship", + Object: "SubstanceDefinitionSourceMaterial", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -155536,8 +156183,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_extensi return fc, nil } -func (ec *executionContext) _SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(ctx, field) +func (ec *executionContext) _SubstanceDefinitionSourceMaterial_genus(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_genus(ctx, field) if err != nil { return graphql.Null } @@ -155550,7 +156197,7 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_substanceDefinition }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubstanceDefinitionCodeableConcept, nil + return obj.Genus, nil }) if err != nil { ec.Error(ctx, err) @@ -155564,14 +156211,16 @@ func (ec *executionContext) _SubstanceDefinitionRelationship_substanceDefinition return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_genus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionRelationship", + Object: "SubstanceDefinitionSourceMaterial", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -155580,8 +156229,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_substan return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -155589,8 +156236,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_substan return fc, nil } -func (ec *executionContext) _SubstanceDefinitionSourceMaterial_genus(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_genus(ctx, field) +func (ec *executionContext) _SubstanceDefinitionSourceMaterial_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_id(ctx, field) if err != nil { return graphql.Null } @@ -155603,7 +156250,48 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_genus(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Genus, nil + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionSourceMaterial", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionSourceMaterial_species(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_species(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Species, nil }) if err != nil { ec.Error(ctx, err) @@ -155617,7 +156305,7 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_genus(ctx context return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_genus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_species(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionSourceMaterial", Field: field, @@ -155625,6 +156313,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_genus IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -155633,8 +156323,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_genus return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -155678,6 +156366,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_type( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -155686,8 +156376,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_type( return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -155695,8 +156383,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_type( return fc, nil } -func (ec *executionContext) _SubstanceDefinitionSourceMaterial_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_extension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionSourceMaterial_countryOfOrigin(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_countryOfOrigin(ctx, field) if err != nil { return graphql.Null } @@ -155709,7 +156397,7 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_extension(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.CountryOfOrigin, nil }) if err != nil { ec.Error(ctx, err) @@ -155718,12 +156406,12 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_extension(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_countryOfOrigin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionSourceMaterial", Field: field, @@ -155731,122 +156419,18 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_exten IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -155888,120 +156472,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_modif IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -156009,49 +156593,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_modif return fc, nil } -func (ec *executionContext) _SubstanceDefinitionSourceMaterial_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionSourceMaterial", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceDefinitionSourceMaterial_countryOfOrigin(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_countryOfOrigin(ctx, field) +func (ec *executionContext) _SubstanceDefinitionSourceMaterial_part(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_part(ctx, field) if err != nil { return graphql.Null } @@ -156064,7 +156607,7 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_countryOfOrigin(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CountryOfOrigin, nil + return obj.Part, nil }) if err != nil { ec.Error(ctx, err) @@ -156073,12 +156616,12 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_countryOfOrigin(c if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_countryOfOrigin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_part(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionSourceMaterial", Field: field, @@ -156086,6 +156629,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_count IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -156094,8 +156639,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_count return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -156103,49 +156646,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_count return fc, nil } -func (ec *executionContext) _SubstanceDefinitionSourceMaterial_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionSourceMaterial", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceDefinitionSourceMaterial_species(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_species(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_stereochemistry(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_stereochemistry(ctx, field) if err != nil { return graphql.Null } @@ -156158,7 +156660,7 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_species(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Species, nil + return obj.Stereochemistry, nil }) if err != nil { ec.Error(ctx, err) @@ -156172,14 +156674,16 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_species(ctx conte return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_species(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_stereochemistry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionSourceMaterial", + Object: "SubstanceDefinitionStructure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -156188,8 +156692,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_speci return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -156197,8 +156699,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_speci return fc, nil } -func (ec *executionContext) _SubstanceDefinitionSourceMaterial_part(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_part(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -156211,7 +156713,7 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_part(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Part, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -156220,302 +156722,133 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial_part(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionSourceMaterial_part(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionSourceMaterial", + Object: "SubstanceDefinitionStructure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceDefinitionStructure_sourceDocument(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_sourceDocument(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SourceDocument, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.DocumentReferenceType) - fc.Result = res - return ec.marshalODocumentReferenceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_sourceDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionStructure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "version": - return ec.fieldContext_DocumentReferenceType_version(ctx, field) - case "language": - return ec.fieldContext_DocumentReferenceType_language(ctx, field) - case "implicitRules": - return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) - case "bodySite": - return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) - case "practiceSetting": - return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) - case "author": - return ec.fieldContext_DocumentReferenceType_author(ctx, field) - case "basedOn": - return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) - case "resourceType": - return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) - case "status": - return ec.fieldContext_DocumentReferenceType_status(ctx, field) - case "type": - return ec.fieldContext_DocumentReferenceType_type(ctx, field) - case "modality": - return ec.fieldContext_DocumentReferenceType_modality(ctx, field) - case "period": - return ec.fieldContext_DocumentReferenceType_period(ctx, field) - case "attester": - return ec.fieldContext_DocumentReferenceType_attester(ctx, field) - case "docStatus": - return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) - case "meta": - return ec.fieldContext_DocumentReferenceType_meta(ctx, field) - case "custodian": - return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) - case "event": - return ec.fieldContext_DocumentReferenceType_event(ctx, field) - case "relatesTo": - return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) - case "facilityType": - return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) - case "id": - return ec.fieldContext_DocumentReferenceType_id(ctx, field) - case "securityLabel": - return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) - case "identifier": - return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) - case "description": - return ec.fieldContext_DocumentReferenceType_description(ctx, field) - case "extension": - return ec.fieldContext_DocumentReferenceType_extension(ctx, field) - case "category": - return ec.fieldContext_DocumentReferenceType_category(ctx, field) - case "text": - return ec.fieldContext_DocumentReferenceType_text(ctx, field) - case "contained": - return ec.fieldContext_DocumentReferenceType_contained(ctx, field) - case "subject": - return ec.fieldContext_DocumentReferenceType_subject(ctx, field) - case "content": - return ec.fieldContext_DocumentReferenceType_content(ctx, field) - case "date": - return ec.fieldContext_DocumentReferenceType_date(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SubstanceDefinitionStructure_sourceDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SubstanceDefinitionStructure_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_modifierExtension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionStructure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -156523,8 +156856,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_modifierEx return fc, nil } -func (ec *executionContext) _SubstanceDefinitionStructure_molecularFormula(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_molecularFormula(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -156537,7 +156870,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_molecularFormula(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MolecularFormula, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -156551,7 +156884,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_molecularFormula(ctx c return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_molecularFormula(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionStructure", Field: field, @@ -156564,8 +156897,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_molecularF return fc, nil } -func (ec *executionContext) _SubstanceDefinitionStructure_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_resourceType(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_technique(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_technique(ctx, field) if err != nil { return graphql.Null } @@ -156578,7 +156911,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_resourceType(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Technique, nil }) if err != nil { ec.Error(ctx, err) @@ -156587,26 +156920,38 @@ func (ec *executionContext) _SubstanceDefinitionStructure_resourceType(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_technique(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionStructure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionStructure_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_id(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_molecularWeight(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_molecularWeight(ctx, field) if err != nil { return graphql.Null } @@ -156619,7 +156964,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_id(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.MolecularWeight, nil }) if err != nil { ec.Error(ctx, err) @@ -156628,26 +156973,42 @@ func (ec *executionContext) _SubstanceDefinitionStructure_id(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.SubstanceDefinitionMolecularWeight) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionMolecularWeight2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_molecularWeight(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionStructure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_resourceType(ctx, field) + case "type": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_type(ctx, field) + case "amount": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_amount(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_extension(ctx, field) + case "id": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_id(ctx, field) + case "method": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_method(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_modifierExtension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionMolecularWeight", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionStructure_stereochemistry(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_stereochemistry(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_opticalActivity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_opticalActivity(ctx, field) if err != nil { return graphql.Null } @@ -156660,7 +157021,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_stereochemistry(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Stereochemistry, nil + return obj.OpticalActivity, nil }) if err != nil { ec.Error(ctx, err) @@ -156674,7 +157035,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_stereochemistry(ctx co return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_stereochemistry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_opticalActivity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionStructure", Field: field, @@ -156682,6 +157043,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_stereochem IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -156690,8 +157053,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_stereochem return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -156699,8 +157060,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_stereochem return fc, nil } -func (ec *executionContext) _SubstanceDefinitionStructure_technique(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_technique(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_sourceDocument(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_sourceDocument(ctx, field) if err != nil { return graphql.Null } @@ -156713,21 +157074,24 @@ func (ec *executionContext) _SubstanceDefinitionStructure_technique(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Technique, nil + return obj.SourceDocument, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.DocumentReferenceType) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNDocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_technique(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_sourceDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionStructure", Field: field, @@ -156735,25 +157099,88 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_technique( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "modality": + return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "securityLabel": + return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) + case "meta": + return ec.fieldContext_DocumentReferenceType_meta(ctx, field) + case "subject": + return ec.fieldContext_DocumentReferenceType_subject(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_DocumentReferenceType_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) + case "contained": + return ec.fieldContext_DocumentReferenceType_contained(ctx, field) + case "event": + return ec.fieldContext_DocumentReferenceType_event(ctx, field) + case "practiceSetting": + return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) + case "bodySite": + return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "identifier": + return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) + case "date": + return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "language": + return ec.fieldContext_DocumentReferenceType_language(ctx, field) + case "author": + return ec.fieldContext_DocumentReferenceType_author(ctx, field) + case "type": + return ec.fieldContext_DocumentReferenceType_type(ctx, field) + case "category": + return ec.fieldContext_DocumentReferenceType_category(ctx, field) + case "period": + return ec.fieldContext_DocumentReferenceType_period(ctx, field) + case "facilityType": + return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) + case "attester": + return ec.fieldContext_DocumentReferenceType_attester(ctx, field) + case "implicitRules": + return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) + case "docStatus": + return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) + case "custodian": + return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) + case "description": + return ec.fieldContext_DocumentReferenceType_description(ctx, field) + case "basedOn": + return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) + case "relatesTo": + return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) + case "status": + return ec.fieldContext_DocumentReferenceType_status(ctx, field) + case "text": + return ec.fieldContext_DocumentReferenceType_text(ctx, field) + case "content": + return ec.fieldContext_DocumentReferenceType_content(ctx, field) + case "version": + return ec.fieldContext_DocumentReferenceType_version(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceType_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SubstanceDefinitionStructure_sourceDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionStructure_opticalActivity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_opticalActivity(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_extension(ctx, field) if err != nil { return graphql.Null } @@ -156766,7 +157193,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_opticalActivity(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OpticalActivity, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -156775,12 +157202,12 @@ func (ec *executionContext) _SubstanceDefinitionStructure_opticalActivity(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_opticalActivity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionStructure", Field: field, @@ -156788,25 +157215,129 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_opticalAct IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionStructure_molecularFormulaByMoiety(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_molecularFormulaByMoiety(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_id(ctx, field) if err != nil { return graphql.Null } @@ -156819,7 +157350,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_molecularFormulaByMoie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MolecularFormulaByMoiety, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -156833,7 +157364,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_molecularFormulaByMoie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_molecularFormulaByMoiety(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionStructure", Field: field, @@ -156846,8 +157377,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_molecularF return fc, nil } -func (ec *executionContext) _SubstanceDefinitionStructure_molecularWeight(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_molecularWeight(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_molecularFormula(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_molecularFormula(ctx, field) if err != nil { return graphql.Null } @@ -156860,7 +157391,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_molecularWeight(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MolecularWeight, nil + return obj.MolecularFormula, nil }) if err != nil { ec.Error(ctx, err) @@ -156869,35 +157400,19 @@ func (ec *executionContext) _SubstanceDefinitionStructure_molecularWeight(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SubstanceDefinitionMolecularWeight) + res := resTmp.(*string) fc.Result = res - return ec.marshalOSubstanceDefinitionMolecularWeight2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_molecularWeight(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_molecularFormula(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionStructure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_id(ctx, field) - case "method": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_method(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_resourceType(ctx, field) - case "type": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_type(ctx, field) - case "amount": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_amount(ctx, field) - case "extension": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionMolecularWeight", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -156962,8 +157477,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_representa return fc, nil } -func (ec *executionContext) _SubstanceDefinitionStructure_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionStructure_extension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionStructure_molecularFormulaByMoiety(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_molecularFormulaByMoiety(ctx, field) if err != nil { return graphql.Null } @@ -156976,7 +157491,7 @@ func (ec *executionContext) _SubstanceDefinitionStructure_extension(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.MolecularFormulaByMoiety, nil }) if err != nil { ec.Error(ctx, err) @@ -156985,135 +157500,19 @@ func (ec *executionContext) _SubstanceDefinitionStructure_extension(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_molecularFormulaByMoiety(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionStructure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -157140,11 +157539,14 @@ func (ec *executionContext) _SubstanceDefinitionStructureRepresentation_document return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.DocumentReferenceType) + res := resTmp.(*model.DocumentReferenceType) fc.Result = res - return ec.marshalODocumentReferenceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) + return ec.marshalNDocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_SubstanceDefinitionStructureRepresentation_document(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -157155,68 +157557,68 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructureRepresentat IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "version": - return ec.fieldContext_DocumentReferenceType_version(ctx, field) - case "language": - return ec.fieldContext_DocumentReferenceType_language(ctx, field) - case "implicitRules": - return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) - case "bodySite": - return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "modality": + return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "securityLabel": + return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) + case "meta": + return ec.fieldContext_DocumentReferenceType_meta(ctx, field) + case "subject": + return ec.fieldContext_DocumentReferenceType_subject(ctx, field) + case "id": + return ec.fieldContext_DocumentReferenceType_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) + case "contained": + return ec.fieldContext_DocumentReferenceType_contained(ctx, field) + case "event": + return ec.fieldContext_DocumentReferenceType_event(ctx, field) case "practiceSetting": return ec.fieldContext_DocumentReferenceType_practiceSetting(ctx, field) + case "bodySite": + return ec.fieldContext_DocumentReferenceType_bodySite(ctx, field) + case "identifier": + return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) + case "date": + return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "language": + return ec.fieldContext_DocumentReferenceType_language(ctx, field) case "author": return ec.fieldContext_DocumentReferenceType_author(ctx, field) - case "basedOn": - return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) - case "resourceType": - return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) - case "status": - return ec.fieldContext_DocumentReferenceType_status(ctx, field) case "type": return ec.fieldContext_DocumentReferenceType_type(ctx, field) - case "modality": - return ec.fieldContext_DocumentReferenceType_modality(ctx, field) + case "category": + return ec.fieldContext_DocumentReferenceType_category(ctx, field) case "period": return ec.fieldContext_DocumentReferenceType_period(ctx, field) + case "facilityType": + return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) case "attester": return ec.fieldContext_DocumentReferenceType_attester(ctx, field) + case "implicitRules": + return ec.fieldContext_DocumentReferenceType_implicitRules(ctx, field) case "docStatus": return ec.fieldContext_DocumentReferenceType_docStatus(ctx, field) - case "meta": - return ec.fieldContext_DocumentReferenceType_meta(ctx, field) case "custodian": return ec.fieldContext_DocumentReferenceType_custodian(ctx, field) - case "event": - return ec.fieldContext_DocumentReferenceType_event(ctx, field) - case "relatesTo": - return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) - case "facilityType": - return ec.fieldContext_DocumentReferenceType_facilityType(ctx, field) - case "id": - return ec.fieldContext_DocumentReferenceType_id(ctx, field) - case "securityLabel": - return ec.fieldContext_DocumentReferenceType_securityLabel(ctx, field) - case "identifier": - return ec.fieldContext_DocumentReferenceType_identifier(ctx, field) - case "modifierExtension": - return ec.fieldContext_DocumentReferenceType_modifierExtension(ctx, field) case "description": return ec.fieldContext_DocumentReferenceType_description(ctx, field) - case "extension": - return ec.fieldContext_DocumentReferenceType_extension(ctx, field) - case "category": - return ec.fieldContext_DocumentReferenceType_category(ctx, field) + case "basedOn": + return ec.fieldContext_DocumentReferenceType_basedOn(ctx, field) + case "relatesTo": + return ec.fieldContext_DocumentReferenceType_relatesTo(ctx, field) + case "resourceType": + return ec.fieldContext_DocumentReferenceType_resourceType(ctx, field) + case "status": + return ec.fieldContext_DocumentReferenceType_status(ctx, field) case "text": return ec.fieldContext_DocumentReferenceType_text(ctx, field) - case "contained": - return ec.fieldContext_DocumentReferenceType_contained(ctx, field) - case "subject": - return ec.fieldContext_DocumentReferenceType_subject(ctx, field) case "content": return ec.fieldContext_DocumentReferenceType_content(ctx, field) - case "date": - return ec.fieldContext_DocumentReferenceType_date(ctx, field) + case "version": + return ec.fieldContext_DocumentReferenceType_version(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceType_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceType", field.Name) }, @@ -157271,120 +157673,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructureRepresentat IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -157428,6 +157830,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructureRepresentat IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -157436,8 +157840,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructureRepresentat return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -157522,120 +157924,120 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructureRepresentat IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -157761,6 +158163,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructureRepresentat IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -157769,8 +158173,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructureRepresentat return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -157778,8 +158180,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionStructureRepresentat return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_text(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_text(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_version(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_version(ctx, field) if err != nil { return graphql.Null } @@ -157792,7 +158194,7 @@ func (ec *executionContext) _SubstanceDefinitionType_text(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -157801,38 +158203,26 @@ func (ec *executionContext) _SubstanceDefinitionType_text(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_moiety(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_moiety(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_extension(ctx, field) if err != nil { return graphql.Null } @@ -157845,7 +158235,7 @@ func (ec *executionContext) _SubstanceDefinitionType_moiety(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Moiety, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -157854,12 +158244,12 @@ func (ec *executionContext) _SubstanceDefinitionType_moiety(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionMoiety) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOSubstanceDefinitionMoiety2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_moiety(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -157867,41 +158257,129 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_moiety(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "measurementType": - return ec.fieldContext_SubstanceDefinitionMoiety_measurementType(ctx, field) - case "name": - return ec.fieldContext_SubstanceDefinitionMoiety_name(ctx, field) - case "amountString": - return ec.fieldContext_SubstanceDefinitionMoiety_amountString(ctx, field) - case "extension": - return ec.fieldContext_SubstanceDefinitionMoiety_extension(ctx, field) - case "identifier": - return ec.fieldContext_SubstanceDefinitionMoiety_identifier(ctx, field) - case "molecularFormula": - return ec.fieldContext_SubstanceDefinitionMoiety_molecularFormula(ctx, field) - case "opticalActivity": - return ec.fieldContext_SubstanceDefinitionMoiety_opticalActivity(ctx, field) - case "stereochemistry": - return ec.fieldContext_SubstanceDefinitionMoiety_stereochemistry(ctx, field) - case "role": - return ec.fieldContext_SubstanceDefinitionMoiety_role(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_SubstanceDefinitionMoiety_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionMoiety_modifierExtension(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_SubstanceDefinitionMoiety_resourceType(ctx, field) - case "amountQuantity": - return ec.fieldContext_SubstanceDefinitionMoiety_amountQuantity(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionMoiety", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_implicitRules(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_manufacturer(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_manufacturer(ctx, field) if err != nil { return graphql.Null } @@ -157914,35 +158392,87 @@ func (ec *executionContext) _SubstanceDefinitionType_implicitRules(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.Manufacturer, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_manufacturer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) + case "modifierExtension": + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) + case "resourceType": + return ec.fieldContext_OrganizationType_resourceType(ctx, field) + case "extension": + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SubstanceDefinitionType_manufacturer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_modifierExtension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_id(ctx, field) if err != nil { return graphql.Null } @@ -157955,7 +158485,7 @@ func (ec *executionContext) _SubstanceDefinitionType_modifierExtension(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -157964,142 +158494,26 @@ func (ec *executionContext) _SubstanceDefinitionType_modifierExtension(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_characterization(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_characterization(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_meta(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_meta(ctx, field) if err != nil { return graphql.Null } @@ -158112,7 +158526,7 @@ func (ec *executionContext) _SubstanceDefinitionType_characterization(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Characterization, nil + return obj.Meta, nil }) if err != nil { ec.Error(ctx, err) @@ -158121,12 +158535,12 @@ func (ec *executionContext) _SubstanceDefinitionType_characterization(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionCharacterization) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOSubstanceDefinitionCharacterization2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_characterization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -158134,31 +158548,33 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_characterizatio IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionCharacterization_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionCharacterization_resourceType(ctx, field) - case "technique": - return ec.fieldContext_SubstanceDefinitionCharacterization_technique(ctx, field) - case "description": - return ec.fieldContext_SubstanceDefinitionCharacterization_description(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_SubstanceDefinitionCharacterization_extension(ctx, field) - case "file": - return ec.fieldContext_SubstanceDefinitionCharacterization_file(ctx, field) - case "form": - return ec.fieldContext_SubstanceDefinitionCharacterization_form(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) case "id": - return ec.fieldContext_SubstanceDefinitionCharacterization_id(ctx, field) + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionCharacterization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_supplier(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_supplier(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_classification(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_classification(ctx, field) if err != nil { return graphql.Null } @@ -158171,7 +158587,7 @@ func (ec *executionContext) _SubstanceDefinitionType_supplier(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Supplier, nil + return obj.Classification, nil }) if err != nil { ec.Error(ctx, err) @@ -158180,12 +158596,12 @@ func (ec *executionContext) _SubstanceDefinitionType_supplier(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_supplier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_classification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -158193,62 +158609,25 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_supplier(ctx co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SubstanceDefinitionType_supplier_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_note(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_note(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_code(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_code(ctx, field) if err != nil { return graphql.Null } @@ -158261,7 +158640,7 @@ func (ec *executionContext) _SubstanceDefinitionType_note(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -158270,37 +158649,46 @@ func (ec *executionContext) _SubstanceDefinitionType_note(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]model.SubstanceDefinitionNoteUnion) + res := resTmp.([]*model.SubstanceDefinitionCode) fc.Result = res - return ec.marshalOSubstanceDefinitionNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNoteUnion(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionCode2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SubstanceDefinitionNoteUnion does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_SubstanceDefinitionCode_extension(ctx, field) + case "code": + return ec.fieldContext_SubstanceDefinitionCode_code(ctx, field) + case "note": + return ec.fieldContext_SubstanceDefinitionCode_note(ctx, field) + case "statusDate": + return ec.fieldContext_SubstanceDefinitionCode_statusDate(ctx, field) + case "id": + return ec.fieldContext_SubstanceDefinitionCode_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionCode_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionCode_resourceType(ctx, field) + case "source": + return ec.fieldContext_SubstanceDefinitionCode_source(ctx, field) + case "status": + return ec.fieldContext_SubstanceDefinitionCode_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionCode", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SubstanceDefinitionType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_description(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_description(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_characterization(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_characterization(ctx, field) if err != nil { return graphql.Null } @@ -158313,7 +158701,7 @@ func (ec *executionContext) _SubstanceDefinitionType_description(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Characterization, nil }) if err != nil { ec.Error(ctx, err) @@ -158322,26 +158710,44 @@ func (ec *executionContext) _SubstanceDefinitionType_description(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.SubstanceDefinitionCharacterization) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionCharacterization2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_characterization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionCharacterization_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionCharacterization_resourceType(ctx, field) + case "technique": + return ec.fieldContext_SubstanceDefinitionCharacterization_technique(ctx, field) + case "description": + return ec.fieldContext_SubstanceDefinitionCharacterization_description(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionCharacterization_extension(ctx, field) + case "file": + return ec.fieldContext_SubstanceDefinitionCharacterization_file(ctx, field) + case "form": + return ec.fieldContext_SubstanceDefinitionCharacterization_form(ctx, field) + case "id": + return ec.fieldContext_SubstanceDefinitionCharacterization_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionCharacterization", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_structure(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_structure(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_supplier(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_supplier(ctx, field) if err != nil { return graphql.Null } @@ -158354,21 +158760,24 @@ func (ec *executionContext) _SubstanceDefinitionType_structure(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Structure, nil + return obj.Supplier, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.SubstanceDefinitionStructure) + res := resTmp.(*model.OrganizationType) fc.Result = res - return ec.marshalOSubstanceDefinitionStructure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructure(ctx, field.Selections, res) + return ec.marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_structure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_supplier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -158376,39 +158785,62 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_structure(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "sourceDocument": - return ec.fieldContext_SubstanceDefinitionStructure_sourceDocument(ctx, field) + case "identifier": + return ec.fieldContext_OrganizationType_identifier(ctx, field) + case "contained": + return ec.fieldContext_OrganizationType_contained(ctx, field) + case "active": + return ec.fieldContext_OrganizationType_active(ctx, field) case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionStructure_modifierExtension(ctx, field) - case "molecularFormula": - return ec.fieldContext_SubstanceDefinitionStructure_molecularFormula(ctx, field) + return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) + case "partOf": + return ec.fieldContext_OrganizationType_partOf(ctx, field) case "resourceType": - return ec.fieldContext_SubstanceDefinitionStructure_resourceType(ctx, field) - case "id": - return ec.fieldContext_SubstanceDefinitionStructure_id(ctx, field) - case "stereochemistry": - return ec.fieldContext_SubstanceDefinitionStructure_stereochemistry(ctx, field) - case "technique": - return ec.fieldContext_SubstanceDefinitionStructure_technique(ctx, field) - case "opticalActivity": - return ec.fieldContext_SubstanceDefinitionStructure_opticalActivity(ctx, field) - case "molecularFormulaByMoiety": - return ec.fieldContext_SubstanceDefinitionStructure_molecularFormulaByMoiety(ctx, field) - case "molecularWeight": - return ec.fieldContext_SubstanceDefinitionStructure_molecularWeight(ctx, field) - case "representation": - return ec.fieldContext_SubstanceDefinitionStructure_representation(ctx, field) + return ec.fieldContext_OrganizationType_resourceType(ctx, field) case "extension": - return ec.fieldContext_SubstanceDefinitionStructure_extension(ctx, field) + return ec.fieldContext_OrganizationType_extension(ctx, field) + case "description": + return ec.fieldContext_OrganizationType_description(ctx, field) + case "meta": + return ec.fieldContext_OrganizationType_meta(ctx, field) + case "name": + return ec.fieldContext_OrganizationType_name(ctx, field) + case "type": + return ec.fieldContext_OrganizationType_type(ctx, field) + case "implicitRules": + return ec.fieldContext_OrganizationType_implicitRules(ctx, field) + case "id": + return ec.fieldContext_OrganizationType_id(ctx, field) + case "qualification": + return ec.fieldContext_OrganizationType_qualification(ctx, field) + case "alias": + return ec.fieldContext_OrganizationType_alias(ctx, field) + case "contact": + return ec.fieldContext_OrganizationType_contact(ctx, field) + case "text": + return ec.fieldContext_OrganizationType_text(ctx, field) + case "language": + return ec.fieldContext_OrganizationType_language(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionStructure", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SubstanceDefinitionType_supplier_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_id(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -158421,7 +158853,7 @@ func (ec *executionContext) _SubstanceDefinitionType_id(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -158435,7 +158867,7 @@ func (ec *executionContext) _SubstanceDefinitionType_id(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -158448,8 +158880,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_id(_ context.Co return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_language(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_language(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_sourceMaterial(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_sourceMaterial(ctx, field) if err != nil { return graphql.Null } @@ -158462,7 +158894,7 @@ func (ec *executionContext) _SubstanceDefinitionType_language(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.SourceMaterial, nil }) if err != nil { ec.Error(ctx, err) @@ -158471,19 +158903,39 @@ func (ec *executionContext) _SubstanceDefinitionType_language(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.SubstanceDefinitionSourceMaterial) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionSourceMaterial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionSourceMaterial(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_sourceMaterial(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_SubstanceDefinitionSourceMaterial_resourceType(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionSourceMaterial_extension(ctx, field) + case "genus": + return ec.fieldContext_SubstanceDefinitionSourceMaterial_genus(ctx, field) + case "id": + return ec.fieldContext_SubstanceDefinitionSourceMaterial_id(ctx, field) + case "species": + return ec.fieldContext_SubstanceDefinitionSourceMaterial_species(ctx, field) + case "type": + return ec.fieldContext_SubstanceDefinitionSourceMaterial_type(ctx, field) + case "countryOfOrigin": + return ec.fieldContext_SubstanceDefinitionSourceMaterial_countryOfOrigin(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionSourceMaterial_modifierExtension(ctx, field) + case "part": + return ec.fieldContext_SubstanceDefinitionSourceMaterial_part(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionSourceMaterial", field.Name) }, } return fc, nil @@ -158530,8 +158982,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_contained(_ con return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_domain(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_domain(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_status(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_status(ctx, field) if err != nil { return graphql.Null } @@ -158544,7 +158996,7 @@ func (ec *executionContext) _SubstanceDefinitionType_domain(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Domain, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -158558,7 +159010,7 @@ func (ec *executionContext) _SubstanceDefinitionType_domain(ctx context.Context, return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_domain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -158566,6 +159018,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_domain(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -158574,8 +159028,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_domain(_ contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -158583,8 +159035,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_domain(_ contex return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_extension(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_property(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_property(ctx, field) if err != nil { return graphql.Null } @@ -158597,7 +159049,7 @@ func (ec *executionContext) _SubstanceDefinitionType_extension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Property, nil }) if err != nil { ec.Error(ctx, err) @@ -158606,12 +159058,12 @@ func (ec *executionContext) _SubstanceDefinitionType_extension(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.SubstanceDefinitionProperty) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionProperty2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_property(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -158619,129 +159071,35 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_extension(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionProperty_extension(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionProperty_modifierExtension(ctx, field) case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) + return ec.fieldContext_SubstanceDefinitionProperty_valueAttachment(ctx, field) case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) + return ec.fieldContext_SubstanceDefinitionProperty_valueCodeableConcept(ctx, field) + case "valueDate": + return ec.fieldContext_SubstanceDefinitionProperty_valueDate(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionProperty_resourceType(ctx, field) + case "type": + return ec.fieldContext_SubstanceDefinitionProperty_type(ctx, field) case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + return ec.fieldContext_SubstanceDefinitionProperty_valueQuantity(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) + return ec.fieldContext_SubstanceDefinitionProperty_id(ctx, field) case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_SubstanceDefinitionProperty_valueBoolean(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionProperty", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_identifier(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_language(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_language(ctx, field) if err != nil { return graphql.Null } @@ -158754,7 +159112,7 @@ func (ec *executionContext) _SubstanceDefinitionType_identifier(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -158763,46 +159121,26 @@ func (ec *executionContext) _SubstanceDefinitionType_identifier(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_version(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_version(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_name(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_name(ctx, field) if err != nil { return graphql.Null } @@ -158815,7 +159153,7 @@ func (ec *executionContext) _SubstanceDefinitionType_version(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -158824,26 +159162,58 @@ func (ec *executionContext) _SubstanceDefinitionType_version(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.SubstanceDefinitionName) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_SubstanceDefinitionName_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionName_modifierExtension(ctx, field) + case "name": + return ec.fieldContext_SubstanceDefinitionName_name(ctx, field) + case "source": + return ec.fieldContext_SubstanceDefinitionName_source(ctx, field) + case "preferred": + return ec.fieldContext_SubstanceDefinitionName_preferred(ctx, field) + case "translation": + return ec.fieldContext_SubstanceDefinitionName_translation(ctx, field) + case "jurisdiction": + return ec.fieldContext_SubstanceDefinitionName_jurisdiction(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionName_resourceType(ctx, field) + case "domain": + return ec.fieldContext_SubstanceDefinitionName_domain(ctx, field) + case "official": + return ec.fieldContext_SubstanceDefinitionName_official(ctx, field) + case "synonym": + return ec.fieldContext_SubstanceDefinitionName_synonym(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionName_extension(ctx, field) + case "type": + return ec.fieldContext_SubstanceDefinitionName_type(ctx, field) + case "language": + return ec.fieldContext_SubstanceDefinitionName_language(ctx, field) + case "status": + return ec.fieldContext_SubstanceDefinitionName_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionName", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_relationship(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_relationship(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_structure(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_structure(ctx, field) if err != nil { return graphql.Null } @@ -158856,7 +159226,7 @@ func (ec *executionContext) _SubstanceDefinitionType_relationship(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Relationship, nil + return obj.Structure, nil }) if err != nil { ec.Error(ctx, err) @@ -158865,12 +159235,12 @@ func (ec *executionContext) _SubstanceDefinitionType_relationship(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionRelationship) + res := resTmp.(*model.SubstanceDefinitionStructure) fc.Result = res - return ec.marshalOSubstanceDefinitionRelationship2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionRelationship(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionStructure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_relationship(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_structure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -158878,43 +159248,39 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_relationship(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "substanceDefinitionReference": - return ec.fieldContext_SubstanceDefinitionRelationship_substanceDefinitionReference(ctx, field) - case "amountQuantity": - return ec.fieldContext_SubstanceDefinitionRelationship_amountQuantity(ctx, field) - case "amountRatio": - return ec.fieldContext_SubstanceDefinitionRelationship_amountRatio(ctx, field) - case "id": - return ec.fieldContext_SubstanceDefinitionRelationship_id(ctx, field) - case "ratioHighLimitAmount": - return ec.fieldContext_SubstanceDefinitionRelationship_ratioHighLimitAmount(ctx, field) - case "source": - return ec.fieldContext_SubstanceDefinitionRelationship_source(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionRelationship_resourceType(ctx, field) - case "amountString": - return ec.fieldContext_SubstanceDefinitionRelationship_amountString(ctx, field) - case "isDefining": - return ec.fieldContext_SubstanceDefinitionRelationship_isDefining(ctx, field) + case "stereochemistry": + return ec.fieldContext_SubstanceDefinitionStructure_stereochemistry(ctx, field) case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionRelationship_modifierExtension(ctx, field) - case "comparator": - return ec.fieldContext_SubstanceDefinitionRelationship_comparator(ctx, field) - case "type": - return ec.fieldContext_SubstanceDefinitionRelationship_type(ctx, field) + return ec.fieldContext_SubstanceDefinitionStructure_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionStructure_resourceType(ctx, field) + case "technique": + return ec.fieldContext_SubstanceDefinitionStructure_technique(ctx, field) + case "molecularWeight": + return ec.fieldContext_SubstanceDefinitionStructure_molecularWeight(ctx, field) + case "opticalActivity": + return ec.fieldContext_SubstanceDefinitionStructure_opticalActivity(ctx, field) + case "sourceDocument": + return ec.fieldContext_SubstanceDefinitionStructure_sourceDocument(ctx, field) case "extension": - return ec.fieldContext_SubstanceDefinitionRelationship_extension(ctx, field) - case "substanceDefinitionCodeableConcept": - return ec.fieldContext_SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(ctx, field) + return ec.fieldContext_SubstanceDefinitionStructure_extension(ctx, field) + case "id": + return ec.fieldContext_SubstanceDefinitionStructure_id(ctx, field) + case "molecularFormula": + return ec.fieldContext_SubstanceDefinitionStructure_molecularFormula(ctx, field) + case "representation": + return ec.fieldContext_SubstanceDefinitionStructure_representation(ctx, field) + case "molecularFormulaByMoiety": + return ec.fieldContext_SubstanceDefinitionStructure_molecularFormulaByMoiety(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionRelationship", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionStructure", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_manufacturer(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_manufacturer(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_description(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_description(ctx, field) if err != nil { return graphql.Null } @@ -158927,7 +159293,7 @@ func (ec *executionContext) _SubstanceDefinitionType_manufacturer(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Manufacturer, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -158936,75 +159302,79 @@ func (ec *executionContext) _SubstanceDefinitionType_manufacturer(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.OrganizationType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_manufacturer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_OrganizationType_name(ctx, field) - case "contact": - return ec.fieldContext_OrganizationType_contact(ctx, field) - case "implicitRules": - return ec.fieldContext_OrganizationType_implicitRules(ctx, field) - case "type": - return ec.fieldContext_OrganizationType_type(ctx, field) - case "extension": - return ec.fieldContext_OrganizationType_extension(ctx, field) - case "text": - return ec.fieldContext_OrganizationType_text(ctx, field) - case "language": - return ec.fieldContext_OrganizationType_language(ctx, field) - case "resourceType": - return ec.fieldContext_OrganizationType_resourceType(ctx, field) - case "partOf": - return ec.fieldContext_OrganizationType_partOf(ctx, field) - case "alias": - return ec.fieldContext_OrganizationType_alias(ctx, field) - case "contained": - return ec.fieldContext_OrganizationType_contained(ctx, field) - case "meta": - return ec.fieldContext_OrganizationType_meta(ctx, field) - case "id": - return ec.fieldContext_OrganizationType_id(ctx, field) - case "qualification": - return ec.fieldContext_OrganizationType_qualification(ctx, field) - case "description": - return ec.fieldContext_OrganizationType_description(ctx, field) - case "modifierExtension": - return ec.fieldContext_OrganizationType_modifierExtension(ctx, field) - case "identifier": - return ec.fieldContext_OrganizationType_identifier(ctx, field) - case "active": - return ec.fieldContext_OrganizationType_active(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionType_text(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_text(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SubstanceDefinitionType_manufacturer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Text, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Narrative) + fc.Result = res + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "extension": + return ec.fieldContext_Narrative_extension(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "resourceType": + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_grade(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_grade(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_molecularWeight(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_molecularWeight(ctx, field) if err != nil { return graphql.Null } @@ -159017,7 +159387,7 @@ func (ec *executionContext) _SubstanceDefinitionType_grade(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Grade, nil + return obj.MolecularWeight, nil }) if err != nil { ec.Error(ctx, err) @@ -159026,12 +159396,12 @@ func (ec *executionContext) _SubstanceDefinitionType_grade(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.([]*model.SubstanceDefinitionMolecularWeight) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionMolecularWeight2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_grade(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_molecularWeight(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -159039,25 +159409,29 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_grade(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_resourceType(ctx, field) + case "type": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_type(ctx, field) + case "amount": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_amount(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_SubstanceDefinitionMolecularWeight_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_SubstanceDefinitionMolecularWeight_id(ctx, field) + case "method": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_method(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionMolecularWeight_modifierExtension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionMolecularWeight", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_resourceType(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -159070,7 +159444,7 @@ func (ec *executionContext) _SubstanceDefinitionType_resourceType(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -159084,7 +159458,7 @@ func (ec *executionContext) _SubstanceDefinitionType_resourceType(ctx context.Co return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -159097,8 +159471,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_resourceType(_ return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_name(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_name(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -159111,7 +159485,7 @@ func (ec *executionContext) _SubstanceDefinitionType_name(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -159120,12 +159494,12 @@ func (ec *executionContext) _SubstanceDefinitionType_name(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionName) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -159133,45 +159507,104 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_name(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "status": - return ec.fieldContext_SubstanceDefinitionName_status(ctx, field) - case "synonym": - return ec.fieldContext_SubstanceDefinitionName_synonym(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionName_modifierExtension(ctx, field) - case "translation": - return ec.fieldContext_SubstanceDefinitionName_translation(ctx, field) + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) case "type": - return ec.fieldContext_SubstanceDefinitionName_type(ctx, field) - case "official": - return ec.fieldContext_SubstanceDefinitionName_official(ctx, field) - case "name": - return ec.fieldContext_SubstanceDefinitionName_name(ctx, field) + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) case "id": - return ec.fieldContext_SubstanceDefinitionName_id(ctx, field) - case "language": - return ec.fieldContext_SubstanceDefinitionName_language(ctx, field) - case "domain": - return ec.fieldContext_SubstanceDefinitionName_domain(ctx, field) + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionType_relationship(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_relationship(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Relationship, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceDefinitionRelationship) + fc.Result = res + return ec.marshalOSubstanceDefinitionRelationship2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionRelationship(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionType_relationship(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "isDefining": + return ec.fieldContext_SubstanceDefinitionRelationship_isDefining(ctx, field) + case "substanceDefinitionCodeableConcept": + return ec.fieldContext_SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(ctx, field) case "extension": - return ec.fieldContext_SubstanceDefinitionName_extension(ctx, field) - case "jurisdiction": - return ec.fieldContext_SubstanceDefinitionName_jurisdiction(ctx, field) - case "preferred": - return ec.fieldContext_SubstanceDefinitionName_preferred(ctx, field) + return ec.fieldContext_SubstanceDefinitionRelationship_extension(ctx, field) + case "amountQuantity": + return ec.fieldContext_SubstanceDefinitionRelationship_amountQuantity(ctx, field) + case "id": + return ec.fieldContext_SubstanceDefinitionRelationship_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionRelationship_modifierExtension(ctx, field) + case "amountString": + return ec.fieldContext_SubstanceDefinitionRelationship_amountString(ctx, field) case "source": - return ec.fieldContext_SubstanceDefinitionName_source(ctx, field) + return ec.fieldContext_SubstanceDefinitionRelationship_source(ctx, field) + case "comparator": + return ec.fieldContext_SubstanceDefinitionRelationship_comparator(ctx, field) case "resourceType": - return ec.fieldContext_SubstanceDefinitionName_resourceType(ctx, field) + return ec.fieldContext_SubstanceDefinitionRelationship_resourceType(ctx, field) + case "ratioHighLimitAmount": + return ec.fieldContext_SubstanceDefinitionRelationship_ratioHighLimitAmount(ctx, field) + case "type": + return ec.fieldContext_SubstanceDefinitionRelationship_type(ctx, field) + case "substanceDefinitionReference": + return ec.fieldContext_SubstanceDefinitionRelationship_substanceDefinitionReference(ctx, field) + case "amountRatio": + return ec.fieldContext_SubstanceDefinitionRelationship_amountRatio(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionName", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionRelationship", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_status(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_status(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_domain(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_domain(ctx, field) if err != nil { return graphql.Null } @@ -159184,7 +159617,7 @@ func (ec *executionContext) _SubstanceDefinitionType_status(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Domain, nil }) if err != nil { ec.Error(ctx, err) @@ -159198,7 +159631,7 @@ func (ec *executionContext) _SubstanceDefinitionType_status(ctx context.Context, return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_domain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -159206,6 +159639,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_status(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -159214,8 +159649,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_status(_ contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -159223,8 +159656,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_status(_ contex return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_meta(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_meta(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -159237,7 +159670,7 @@ func (ec *executionContext) _SubstanceDefinitionType_meta(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Meta, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -159246,12 +159679,12 @@ func (ec *executionContext) _SubstanceDefinitionType_meta(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -159259,33 +159692,129 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_meta(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_molecularWeight(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_molecularWeight(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_moiety(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_moiety(ctx, field) if err != nil { return graphql.Null } @@ -159298,7 +159827,7 @@ func (ec *executionContext) _SubstanceDefinitionType_molecularWeight(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MolecularWeight, nil + return obj.Moiety, nil }) if err != nil { ec.Error(ctx, err) @@ -159307,12 +159836,12 @@ func (ec *executionContext) _SubstanceDefinitionType_molecularWeight(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionMolecularWeight) + res := resTmp.([]*model.SubstanceDefinitionMoiety) fc.Result = res - return ec.marshalOSubstanceDefinitionMolecularWeight2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx, field.Selections, res) + return ec.marshalOSubstanceDefinitionMoiety2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_molecularWeight(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_moiety(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -159320,29 +159849,41 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_molecularWeight IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "amountString": + return ec.fieldContext_SubstanceDefinitionMoiety_amountString(ctx, field) + case "stereochemistry": + return ec.fieldContext_SubstanceDefinitionMoiety_stereochemistry(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionMoiety_extension(ctx, field) + case "identifier": + return ec.fieldContext_SubstanceDefinitionMoiety_identifier(ctx, field) + case "name": + return ec.fieldContext_SubstanceDefinitionMoiety_name(ctx, field) + case "role": + return ec.fieldContext_SubstanceDefinitionMoiety_role(ctx, field) case "id": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_id(ctx, field) - case "method": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_method(ctx, field) + return ec.fieldContext_SubstanceDefinitionMoiety_id(ctx, field) + case "measurementType": + return ec.fieldContext_SubstanceDefinitionMoiety_measurementType(ctx, field) case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_modifierExtension(ctx, field) + return ec.fieldContext_SubstanceDefinitionMoiety_modifierExtension(ctx, field) + case "molecularFormula": + return ec.fieldContext_SubstanceDefinitionMoiety_molecularFormula(ctx, field) + case "amountQuantity": + return ec.fieldContext_SubstanceDefinitionMoiety_amountQuantity(ctx, field) + case "opticalActivity": + return ec.fieldContext_SubstanceDefinitionMoiety_opticalActivity(ctx, field) case "resourceType": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_resourceType(ctx, field) - case "type": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_type(ctx, field) - case "amount": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_amount(ctx, field) - case "extension": - return ec.fieldContext_SubstanceDefinitionMolecularWeight_extension(ctx, field) + return ec.fieldContext_SubstanceDefinitionMoiety_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionMolecularWeight", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionMoiety", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_sourceMaterial(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_sourceMaterial(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_note(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_note(ctx, field) if err != nil { return graphql.Null } @@ -159355,55 +159896,49 @@ func (ec *executionContext) _SubstanceDefinitionType_sourceMaterial(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SourceMaterial, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.SubstanceDefinitionSourceMaterial) + res := resTmp.(model.SubstanceDefinitionNoteUnion) fc.Result = res - return ec.marshalOSubstanceDefinitionSourceMaterial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionSourceMaterial(ctx, field.Selections, res) + return ec.marshalNSubstanceDefinitionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_sourceMaterial(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "genus": - return ec.fieldContext_SubstanceDefinitionSourceMaterial_genus(ctx, field) - case "type": - return ec.fieldContext_SubstanceDefinitionSourceMaterial_type(ctx, field) - case "extension": - return ec.fieldContext_SubstanceDefinitionSourceMaterial_extension(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionSourceMaterial_modifierExtension(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionSourceMaterial_resourceType(ctx, field) - case "countryOfOrigin": - return ec.fieldContext_SubstanceDefinitionSourceMaterial_countryOfOrigin(ctx, field) - case "id": - return ec.fieldContext_SubstanceDefinitionSourceMaterial_id(ctx, field) - case "species": - return ec.fieldContext_SubstanceDefinitionSourceMaterial_species(ctx, field) - case "part": - return ec.fieldContext_SubstanceDefinitionSourceMaterial_part(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionSourceMaterial", field.Name) + return nil, errors.New("field of type SubstanceDefinitionNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SubstanceDefinitionType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_classification(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_classification(ctx, field) +func (ec *executionContext) _SubstanceDefinitionType_grade(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_grade(ctx, field) if err != nil { return graphql.Null } @@ -159416,7 +159951,7 @@ func (ec *executionContext) _SubstanceDefinitionType_classification(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Classification, nil + return obj.Grade, nil }) if err != nil { ec.Error(ctx, err) @@ -159430,7 +159965,7 @@ func (ec *executionContext) _SubstanceDefinitionType_classification(ctx context. return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_classification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceDefinitionType_grade(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceDefinitionType", Field: field, @@ -159438,6 +159973,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_classification( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -159446,8 +159983,6 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_classification( return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -159455,8 +159990,8 @@ func (ec *executionContext) fieldContext_SubstanceDefinitionType_classification( return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_code(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_code(ctx, field) +func (ec *executionContext) _SubstanceIngredient_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceIngredient_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -159469,7 +160004,7 @@ func (ec *executionContext) _SubstanceDefinitionType_code(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -159478,46 +160013,26 @@ func (ec *executionContext) _SubstanceDefinitionType_code(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionCode) + res := resTmp.(*string) fc.Result = res - return ec.marshalOSubstanceDefinitionCode2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceIngredient_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionType", + Object: "SubstanceIngredient", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "source": - return ec.fieldContext_SubstanceDefinitionCode_source(ctx, field) - case "status": - return ec.fieldContext_SubstanceDefinitionCode_status(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionCode_resourceType(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionCode_modifierExtension(ctx, field) - case "statusDate": - return ec.fieldContext_SubstanceDefinitionCode_statusDate(ctx, field) - case "extension": - return ec.fieldContext_SubstanceDefinitionCode_extension(ctx, field) - case "note": - return ec.fieldContext_SubstanceDefinitionCode_note(ctx, field) - case "code": - return ec.fieldContext_SubstanceDefinitionCode_code(ctx, field) - case "id": - return ec.fieldContext_SubstanceDefinitionCode_id(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionCode", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceDefinitionType_property(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceDefinitionType_property(ctx, field) +func (ec *executionContext) _SubstanceIngredient_substanceCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceIngredient_substanceCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -159530,7 +160045,7 @@ func (ec *executionContext) _SubstanceDefinitionType_property(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Property, nil + return obj.SubstanceCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -159539,41 +160054,31 @@ func (ec *executionContext) _SubstanceDefinitionType_property(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceDefinitionProperty) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOSubstanceDefinitionProperty2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceDefinitionType_property(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceIngredient_substanceCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubstanceDefinitionType", + Object: "SubstanceIngredient", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_SubstanceDefinitionProperty_extension(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceDefinitionProperty_modifierExtension(ctx, field) - case "valueAttachment": - return ec.fieldContext_SubstanceDefinitionProperty_valueAttachment(ctx, field) - case "valueQuantity": - return ec.fieldContext_SubstanceDefinitionProperty_valueQuantity(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_SubstanceDefinitionProperty_id(ctx, field) - case "resourceType": - return ec.fieldContext_SubstanceDefinitionProperty_resourceType(ctx, field) - case "type": - return ec.fieldContext_SubstanceDefinitionProperty_type(ctx, field) - case "valueBoolean": - return ec.fieldContext_SubstanceDefinitionProperty_valueBoolean(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_SubstanceDefinitionProperty_valueCodeableConcept(ctx, field) - case "valueDate": - return ec.fieldContext_SubstanceDefinitionProperty_valueDate(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionProperty", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil @@ -159600,11 +160105,14 @@ func (ec *executionContext) _SubstanceIngredient_substanceReference(ctx context. return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.SubstanceType) + res := resTmp.(*model.SubstanceType) fc.Result = res - return ec.marshalOSubstanceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx, field.Selections, res) + return ec.marshalNSubstanceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_SubstanceIngredient_substanceReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -159615,42 +160123,42 @@ func (ec *executionContext) fieldContext_SubstanceIngredient_substanceReference( IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_SubstanceType_id(ctx, field) - case "language": - return ec.fieldContext_SubstanceType_language(ctx, field) - case "ingredient": - return ec.fieldContext_SubstanceType_ingredient(ctx, field) - case "category": - return ec.fieldContext_SubstanceType_category(ctx, field) + case "status": + return ec.fieldContext_SubstanceType_status(ctx, field) + case "quantity": + return ec.fieldContext_SubstanceType_quantity(ctx, field) + case "text": + return ec.fieldContext_SubstanceType_text(ctx, field) case "identifier": return ec.fieldContext_SubstanceType_identifier(ctx, field) - case "contained": - return ec.fieldContext_SubstanceType_contained(ctx, field) + case "language": + return ec.fieldContext_SubstanceType_language(ctx, field) + case "implicitRules": + return ec.fieldContext_SubstanceType_implicitRules(ctx, field) case "resourceType": return ec.fieldContext_SubstanceType_resourceType(ctx, field) case "instance": return ec.fieldContext_SubstanceType_instance(ctx, field) - case "implicitRules": - return ec.fieldContext_SubstanceType_implicitRules(ctx, field) case "modifierExtension": return ec.fieldContext_SubstanceType_modifierExtension(ctx, field) + case "category": + return ec.fieldContext_SubstanceType_category(ctx, field) case "expiry": return ec.fieldContext_SubstanceType_expiry(ctx, field) - case "description": - return ec.fieldContext_SubstanceType_description(ctx, field) - case "status": - return ec.fieldContext_SubstanceType_status(ctx, field) + case "ingredient": + return ec.fieldContext_SubstanceType_ingredient(ctx, field) case "meta": return ec.fieldContext_SubstanceType_meta(ctx, field) case "code": return ec.fieldContext_SubstanceType_code(ctx, field) + case "description": + return ec.fieldContext_SubstanceType_description(ctx, field) case "extension": return ec.fieldContext_SubstanceType_extension(ctx, field) - case "quantity": - return ec.fieldContext_SubstanceType_quantity(ctx, field) - case "text": - return ec.fieldContext_SubstanceType_text(ctx, field) + case "contained": + return ec.fieldContext_SubstanceType_contained(ctx, field) + case "id": + return ec.fieldContext_SubstanceType_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type SubstanceType", field.Name) }, @@ -159705,120 +160213,120 @@ func (ec *executionContext) fieldContext_SubstanceIngredient_extension(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -159903,120 +160411,120 @@ func (ec *executionContext) fieldContext_SubstanceIngredient_modifierExtension(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -160060,6 +160568,8 @@ func (ec *executionContext) fieldContext_SubstanceIngredient_quantity(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) case "extension": return ec.fieldContext_Ratio_extension(ctx, field) case "id": @@ -160068,8 +160578,6 @@ func (ec *executionContext) fieldContext_SubstanceIngredient_quantity(_ context. return ec.fieldContext_Ratio_numerator(ctx, field) case "resourceType": return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, @@ -160077,143 +160585,8 @@ func (ec *executionContext) fieldContext_SubstanceIngredient_quantity(_ context. return fc, nil } -func (ec *executionContext) _SubstanceIngredient_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceIngredient_resourceType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceIngredient_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceIngredient", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceIngredient_substanceCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceIngredient) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceIngredient_substanceCodeableConcept(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubstanceCodeableConcept, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.CodeableConcept) - fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceIngredient_substanceCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceIngredient", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceType_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubstanceType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubstanceType", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SubstanceType_language(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_language(ctx, field) +func (ec *executionContext) _SubstanceType_status(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_status(ctx, field) if err != nil { return graphql.Null } @@ -160226,7 +160599,7 @@ func (ec *executionContext) _SubstanceType_language(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -160240,7 +160613,7 @@ func (ec *executionContext) _SubstanceType_language(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, @@ -160253,8 +160626,8 @@ func (ec *executionContext) fieldContext_SubstanceType_language(_ context.Contex return fc, nil } -func (ec *executionContext) _SubstanceType_ingredient(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_ingredient(ctx, field) +func (ec *executionContext) _SubstanceType_quantity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_quantity(ctx, field) if err != nil { return graphql.Null } @@ -160267,7 +160640,7 @@ func (ec *executionContext) _SubstanceType_ingredient(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ingredient, nil + return obj.Quantity, nil }) if err != nil { ec.Error(ctx, err) @@ -160276,12 +160649,12 @@ func (ec *executionContext) _SubstanceType_ingredient(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.SubstanceIngredient) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOSubstanceIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceIngredient(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_ingredient(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_quantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, @@ -160289,29 +160662,31 @@ func (ec *executionContext) fieldContext_SubstanceType_ingredient(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "substanceReference": - return ec.fieldContext_SubstanceIngredient_substanceReference(ctx, field) + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) case "extension": - return ec.fieldContext_SubstanceIngredient_extension(ctx, field) + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_SubstanceIngredient_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_SubstanceIngredient_modifierExtension(ctx, field) - case "quantity": - return ec.fieldContext_SubstanceIngredient_quantity(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_SubstanceIngredient_resourceType(ctx, field) - case "substanceCodeableConcept": - return ec.fieldContext_SubstanceIngredient_substanceCodeableConcept(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubstanceIngredient", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceType_category(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_category(ctx, field) +func (ec *executionContext) _SubstanceType_text(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_text(ctx, field) if err != nil { return graphql.Null } @@ -160324,7 +160699,7 @@ func (ec *executionContext) _SubstanceType_category(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Category, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -160333,12 +160708,12 @@ func (ec *executionContext) _SubstanceType_category(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableConcept) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, @@ -160346,18 +160721,18 @@ func (ec *executionContext) fieldContext_SubstanceType_category(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil @@ -160399,24 +160774,24 @@ func (ec *executionContext) fieldContext_SubstanceType_identifier(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) case "extension": return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) case "period": return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) case "value": return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) case "id": return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, @@ -160424,8 +160799,8 @@ func (ec *executionContext) fieldContext_SubstanceType_identifier(_ context.Cont return fc, nil } -func (ec *executionContext) _SubstanceType_contained(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_contained(ctx, field) +func (ec *executionContext) _SubstanceType_language(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_language(ctx, field) if err != nil { return graphql.Null } @@ -160438,7 +160813,7 @@ func (ec *executionContext) _SubstanceType_contained(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -160447,26 +160822,26 @@ func (ec *executionContext) _SubstanceType_contained(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_resourceType(ctx, field) +func (ec *executionContext) _SubstanceType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -160479,7 +160854,7 @@ func (ec *executionContext) _SubstanceType_resourceType(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -160493,7 +160868,7 @@ func (ec *executionContext) _SubstanceType_resourceType(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, @@ -160506,8 +160881,8 @@ func (ec *executionContext) fieldContext_SubstanceType_resourceType(_ context.Co return fc, nil } -func (ec *executionContext) _SubstanceType_instance(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_instance(ctx, field) +func (ec *executionContext) _SubstanceType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -160520,7 +160895,7 @@ func (ec *executionContext) _SubstanceType_instance(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Instance, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -160534,7 +160909,7 @@ func (ec *executionContext) _SubstanceType_instance(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_instance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, @@ -160547,8 +160922,8 @@ func (ec *executionContext) fieldContext_SubstanceType_instance(_ context.Contex return fc, nil } -func (ec *executionContext) _SubstanceType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_implicitRules(ctx, field) +func (ec *executionContext) _SubstanceType_instance(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_instance(ctx, field) if err != nil { return graphql.Null } @@ -160561,7 +160936,7 @@ func (ec *executionContext) _SubstanceType_implicitRules(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.Instance, nil }) if err != nil { ec.Error(ctx, err) @@ -160575,7 +160950,7 @@ func (ec *executionContext) _SubstanceType_implicitRules(ctx context.Context, fi return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_instance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, @@ -160624,120 +160999,120 @@ func (ec *executionContext) fieldContext_SubstanceType_modifierExtension(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -160745,8 +161120,8 @@ func (ec *executionContext) fieldContext_SubstanceType_modifierExtension(_ conte return fc, nil } -func (ec *executionContext) _SubstanceType_expiry(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_expiry(ctx, field) +func (ec *executionContext) _SubstanceType_category(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_category(ctx, field) if err != nil { return graphql.Null } @@ -160759,7 +161134,7 @@ func (ec *executionContext) _SubstanceType_expiry(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Expiry, nil + return obj.Category, nil }) if err != nil { ec.Error(ctx, err) @@ -160768,26 +161143,38 @@ func (ec *executionContext) _SubstanceType_expiry(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_expiry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubstanceType_description(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_description(ctx, field) +func (ec *executionContext) _SubstanceType_expiry(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_expiry(ctx, field) if err != nil { return graphql.Null } @@ -160800,7 +161187,7 @@ func (ec *executionContext) _SubstanceType_description(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Expiry, nil }) if err != nil { ec.Error(ctx, err) @@ -160814,7 +161201,7 @@ func (ec *executionContext) _SubstanceType_description(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_expiry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, @@ -160827,8 +161214,8 @@ func (ec *executionContext) fieldContext_SubstanceType_description(_ context.Con return fc, nil } -func (ec *executionContext) _SubstanceType_status(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_status(ctx, field) +func (ec *executionContext) _SubstanceType_ingredient(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_ingredient(ctx, field) if err != nil { return graphql.Null } @@ -160841,7 +161228,7 @@ func (ec *executionContext) _SubstanceType_status(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Ingredient, nil }) if err != nil { ec.Error(ctx, err) @@ -160850,19 +161237,35 @@ func (ec *executionContext) _SubstanceType_status(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.SubstanceIngredient) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOSubstanceIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceIngredient(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_ingredient(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_SubstanceIngredient_resourceType(ctx, field) + case "substanceCodeableConcept": + return ec.fieldContext_SubstanceIngredient_substanceCodeableConcept(ctx, field) + case "substanceReference": + return ec.fieldContext_SubstanceIngredient_substanceReference(ctx, field) + case "extension": + return ec.fieldContext_SubstanceIngredient_extension(ctx, field) + case "id": + return ec.fieldContext_SubstanceIngredient_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceIngredient_modifierExtension(ctx, field) + case "quantity": + return ec.fieldContext_SubstanceIngredient_quantity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceIngredient", field.Name) }, } return fc, nil @@ -160904,24 +161307,24 @@ func (ec *executionContext) fieldContext_SubstanceType_meta(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) case "lastUpdated": return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) case "id": return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, @@ -160965,14 +161368,14 @@ func (ec *executionContext) fieldContext_SubstanceType_code(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) case "resourceType": return ec.fieldContext_CodeableReference_resourceType(ctx, field) case "concept": return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, @@ -160980,6 +161383,47 @@ func (ec *executionContext) fieldContext_SubstanceType_code(_ context.Context, f return fc, nil } +func (ec *executionContext) _SubstanceType_description(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _SubstanceType_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { fc, err := ec.fieldContext_SubstanceType_extension(ctx, field) if err != nil { @@ -161016,120 +161460,120 @@ func (ec *executionContext) fieldContext_SubstanceType_extension(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -161137,8 +161581,8 @@ func (ec *executionContext) fieldContext_SubstanceType_extension(_ context.Conte return fc, nil } -func (ec *executionContext) _SubstanceType_quantity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_quantity(ctx, field) +func (ec *executionContext) _SubstanceType_contained(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_contained(ctx, field) if err != nil { return graphql.Null } @@ -161151,7 +161595,7 @@ func (ec *executionContext) _SubstanceType_quantity(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Quantity, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -161160,44 +161604,26 @@ func (ec *executionContext) _SubstanceType_quantity(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_quantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) - case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubstanceType_text(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubstanceType_text(ctx, field) +func (ec *executionContext) _SubstanceType_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_id(ctx, field) if err != nil { return graphql.Null } @@ -161210,7 +161636,7 @@ func (ec *executionContext) _SubstanceType_text(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -161219,38 +161645,26 @@ func (ec *executionContext) _SubstanceType_text(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.(*string) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubstanceType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubstanceType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SubstanceType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueAddress(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueAddress(ctx, field) +func (ec *executionContext) _TaskInput_valueBase64Binary(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueBase64Binary(ctx, field) if err != nil { return graphql.Null } @@ -161263,7 +161677,7 @@ func (ec *executionContext) _TaskInput_valueAddress(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAddress, nil + return obj.ValueBase64Binary, nil }) if err != nil { ec.Error(ctx, err) @@ -161272,54 +161686,26 @@ func (ec *executionContext) _TaskInput_valueAddress(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Address) + res := resTmp.(*string) fc.Result = res - return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueBase64Binary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_Address_text(ctx, field) - case "use": - return ec.fieldContext_Address_use(ctx, field) - case "id": - return ec.fieldContext_Address_id(ctx, field) - case "line": - return ec.fieldContext_Address_line(ctx, field) - case "country": - return ec.fieldContext_Address_country(ctx, field) - case "postalCode": - return ec.fieldContext_Address_postalCode(ctx, field) - case "state": - return ec.fieldContext_Address_state(ctx, field) - case "city": - return ec.fieldContext_Address_city(ctx, field) - case "district": - return ec.fieldContext_Address_district(ctx, field) - case "period": - return ec.fieldContext_Address_period(ctx, field) - case "resourceType": - return ec.fieldContext_Address_resourceType(ctx, field) - case "type": - return ec.fieldContext_Address_type(ctx, field) - case "extension": - return ec.fieldContext_Address_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueUrl(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueUrl(ctx, field) +func (ec *executionContext) _TaskInput_valueCode(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueCode(ctx, field) if err != nil { return graphql.Null } @@ -161332,7 +161718,7 @@ func (ec *executionContext) _TaskInput_valueUrl(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueURL, nil + return obj.ValueCode, nil }) if err != nil { ec.Error(ctx, err) @@ -161346,7 +161732,7 @@ func (ec *executionContext) _TaskInput_valueUrl(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -161359,8 +161745,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueUrl(_ context.Context, f return fc, nil } -func (ec *executionContext) _TaskInput_valueDosage(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueDosage(ctx, field) +func (ec *executionContext) _TaskInput_valueTriggerDefinition(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueTriggerDefinition(ctx, field) if err != nil { return graphql.Null } @@ -161373,7 +161759,7 @@ func (ec *executionContext) _TaskInput_valueDosage(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDosage, nil + return obj.ValueTriggerDefinition, nil }) if err != nil { ec.Error(ctx, err) @@ -161382,12 +161768,12 @@ func (ec *executionContext) _TaskInput_valueDosage(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Dosage) + res := resTmp.(*model.TriggerDefinition) fc.Result = res - return ec.marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) + return ec.marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueDosage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueTriggerDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -161395,51 +161781,39 @@ func (ec *executionContext) fieldContext_TaskInput_valueDosage(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "asNeededFor": - return ec.fieldContext_Dosage_asNeededFor(ctx, field) - case "doseAndRate": - return ec.fieldContext_Dosage_doseAndRate(ctx, field) - case "route": - return ec.fieldContext_Dosage_route(ctx, field) - case "method": - return ec.fieldContext_Dosage_method(ctx, field) - case "modifierExtension": - return ec.fieldContext_Dosage_modifierExtension(ctx, field) - case "patientInstruction": - return ec.fieldContext_Dosage_patientInstruction(ctx, field) - case "text": - return ec.fieldContext_Dosage_text(ctx, field) + case "data": + return ec.fieldContext_TriggerDefinition_data(ctx, field) + case "id": + return ec.fieldContext_TriggerDefinition_id(ctx, field) + case "name": + return ec.fieldContext_TriggerDefinition_name(ctx, field) + case "code": + return ec.fieldContext_TriggerDefinition_code(ctx, field) + case "condition": + return ec.fieldContext_TriggerDefinition_condition(ctx, field) + case "timingTiming": + return ec.fieldContext_TriggerDefinition_timingTiming(ctx, field) + case "subscriptionTopic": + return ec.fieldContext_TriggerDefinition_subscriptionTopic(ctx, field) + case "timingDate": + return ec.fieldContext_TriggerDefinition_timingDate(ctx, field) + case "timingDateTime": + return ec.fieldContext_TriggerDefinition_timingDateTime(ctx, field) case "extension": - return ec.fieldContext_Dosage_extension(ctx, field) - case "site": - return ec.fieldContext_Dosage_site(ctx, field) - case "maxDosePerAdministration": - return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) - case "maxDosePerLifetime": - return ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) + return ec.fieldContext_TriggerDefinition_extension(ctx, field) case "resourceType": - return ec.fieldContext_Dosage_resourceType(ctx, field) - case "additionalInstruction": - return ec.fieldContext_Dosage_additionalInstruction(ctx, field) - case "asNeeded": - return ec.fieldContext_Dosage_asNeeded(ctx, field) - case "timing": - return ec.fieldContext_Dosage_timing(ctx, field) - case "id": - return ec.fieldContext_Dosage_id(ctx, field) - case "sequence": - return ec.fieldContext_Dosage_sequence(ctx, field) - case "maxDosePerPeriod": - return ec.fieldContext_Dosage_maxDosePerPeriod(ctx, field) + return ec.fieldContext_TriggerDefinition_resourceType(ctx, field) + case "type": + return ec.fieldContext_TriggerDefinition_type(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Dosage", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TriggerDefinition", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueRelatedArtifact(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueRelatedArtifact(ctx, field) +func (ec *executionContext) _TaskInput_valueUsageContext(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueUsageContext(ctx, field) if err != nil { return graphql.Null } @@ -161452,63 +161826,49 @@ func (ec *executionContext) _TaskInput_valueRelatedArtifact(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRelatedArtifact, nil + return obj.ValueUsageContext, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.RelatedArtifact) + res := resTmp.(model.TaskInputValueUsageContextUnion) fc.Result = res - return ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) + return ec.marshalNTaskInputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueUsageContextUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueRelatedArtifact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueUsageContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "display": - return ec.fieldContext_RelatedArtifact_display(ctx, field) - case "publicationDate": - return ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) - case "publicationStatus": - return ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) - case "classifier": - return ec.fieldContext_RelatedArtifact_classifier(ctx, field) - case "document": - return ec.fieldContext_RelatedArtifact_document(ctx, field) - case "resourceReference": - return ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) - case "extension": - return ec.fieldContext_RelatedArtifact_extension(ctx, field) - case "id": - return ec.fieldContext_RelatedArtifact_id(ctx, field) - case "label": - return ec.fieldContext_RelatedArtifact_label(ctx, field) - case "citation": - return ec.fieldContext_RelatedArtifact_citation(ctx, field) - case "resource": - return ec.fieldContext_RelatedArtifact_resource(ctx, field) - case "type": - return ec.fieldContext_RelatedArtifact_type(ctx, field) - case "resourceType": - return ec.fieldContext_RelatedArtifact_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RelatedArtifact", field.Name) + return nil, errors.New("field of type TaskInputValueUsageContextUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskInput_valueUsageContext_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TaskInput_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueDateTime(ctx, field) +func (ec *executionContext) _TaskInput_valueDataRequirement(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueDataRequirement(ctx, field) if err != nil { return graphql.Null } @@ -161521,7 +161881,7 @@ func (ec *executionContext) _TaskInput_valueDateTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDateTime, nil + return obj.ValueDataRequirement, nil }) if err != nil { ec.Error(ctx, err) @@ -161530,26 +161890,54 @@ func (ec *executionContext) _TaskInput_valueDateTime(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.DataRequirement) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueDataRequirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "type": + return ec.fieldContext_DataRequirement_type(ctx, field) + case "valueFilter": + return ec.fieldContext_DataRequirement_valueFilter(ctx, field) + case "id": + return ec.fieldContext_DataRequirement_id(ctx, field) + case "profile": + return ec.fieldContext_DataRequirement_profile(ctx, field) + case "subjectReference": + return ec.fieldContext_DataRequirement_subjectReference(ctx, field) + case "codeFilter": + return ec.fieldContext_DataRequirement_codeFilter(ctx, field) + case "limit": + return ec.fieldContext_DataRequirement_limit(ctx, field) + case "subjectCodeableConcept": + return ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) + case "mustSupport": + return ec.fieldContext_DataRequirement_mustSupport(ctx, field) + case "extension": + return ec.fieldContext_DataRequirement_extension(ctx, field) + case "resourceType": + return ec.fieldContext_DataRequirement_resourceType(ctx, field) + case "sort": + return ec.fieldContext_DataRequirement_sort(ctx, field) + case "dateFilter": + return ec.fieldContext_DataRequirement_dateFilter(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DataRequirement", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueExpression(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueExpression(ctx, field) +func (ec *executionContext) _TaskInput_valueUuid(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueUuid(ctx, field) if err != nil { return graphql.Null } @@ -161562,7 +161950,7 @@ func (ec *executionContext) _TaskInput_valueExpression(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueExpression, nil + return obj.ValueUUID, nil }) if err != nil { ec.Error(ctx, err) @@ -161571,44 +161959,26 @@ func (ec *executionContext) _TaskInput_valueExpression(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Expression) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueExpression(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueUuid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "expression": - return ec.fieldContext_Expression_expression(ctx, field) - case "extension": - return ec.fieldContext_Expression_extension(ctx, field) - case "id": - return ec.fieldContext_Expression_id(ctx, field) - case "language": - return ec.fieldContext_Expression_language(ctx, field) - case "name": - return ec.fieldContext_Expression_name(ctx, field) - case "reference": - return ec.fieldContext_Expression_reference(ctx, field) - case "resourceType": - return ec.fieldContext_Expression_resourceType(ctx, field) - case "description": - return ec.fieldContext_Expression_description(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Expression", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueCanonical(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueCanonical(ctx, field) +func (ec *executionContext) _TaskInput_valueOid(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueOid(ctx, field) if err != nil { return graphql.Null } @@ -161621,7 +161991,7 @@ func (ec *executionContext) _TaskInput_valueCanonical(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCanonical, nil + return obj.ValueOid, nil }) if err != nil { ec.Error(ctx, err) @@ -161635,7 +162005,7 @@ func (ec *executionContext) _TaskInput_valueCanonical(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueOid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -161648,8 +162018,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueCanonical(_ context.Cont return fc, nil } -func (ec *executionContext) _TaskInput_valueContactPoint(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueContactPoint(ctx, field) +func (ec *executionContext) _TaskInput_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueRatio(ctx, field) if err != nil { return graphql.Null } @@ -161662,7 +162032,7 @@ func (ec *executionContext) _TaskInput_valueContactPoint(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueContactPoint, nil + return obj.ValueRatio, nil }) if err != nil { ec.Error(ctx, err) @@ -161671,12 +162041,12 @@ func (ec *executionContext) _TaskInput_valueContactPoint(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ContactPoint) + res := resTmp.(*model.Ratio) fc.Result = res - return ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueContactPoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -161684,31 +162054,25 @@ func (ec *executionContext) fieldContext_TaskInput_valueContactPoint(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) case "extension": - return ec.fieldContext_ContactPoint_extension(ctx, field) + return ec.fieldContext_Ratio_extension(ctx, field) case "id": - return ec.fieldContext_ContactPoint_id(ctx, field) - case "period": - return ec.fieldContext_ContactPoint_period(ctx, field) - case "rank": - return ec.fieldContext_ContactPoint_rank(ctx, field) + return ec.fieldContext_Ratio_id(ctx, field) + case "numerator": + return ec.fieldContext_Ratio_numerator(ctx, field) case "resourceType": - return ec.fieldContext_ContactPoint_resourceType(ctx, field) - case "system": - return ec.fieldContext_ContactPoint_system(ctx, field) - case "use": - return ec.fieldContext_ContactPoint_use(ctx, field) - case "value": - return ec.fieldContext_ContactPoint_value(ctx, field) + return ec.fieldContext_Ratio_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueUnsignedInt(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueUnsignedInt(ctx, field) +func (ec *executionContext) _TaskInput_type(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_type(ctx, field) if err != nil { return graphql.Null } @@ -161721,7 +162085,7 @@ func (ec *executionContext) _TaskInput_valueUnsignedInt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueUnsignedInt, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -161730,26 +162094,38 @@ func (ec *executionContext) _TaskInput_valueUnsignedInt(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueUnsignedInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueInstant(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueInstant(ctx, field) +func (ec *executionContext) _TaskInput_valueCodeableReference(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueCodeableReference(ctx, field) if err != nil { return graphql.Null } @@ -161762,7 +162138,7 @@ func (ec *executionContext) _TaskInput_valueInstant(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInstant, nil + return obj.ValueCodeableReference, nil }) if err != nil { ec.Error(ctx, err) @@ -161771,26 +162147,36 @@ func (ec *executionContext) _TaskInput_valueInstant(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueInstant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueCodeableReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueMoney(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueMoney(ctx, field) +func (ec *executionContext) _TaskInput_valueId(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueId(ctx, field) if err != nil { return graphql.Null } @@ -161803,7 +162189,7 @@ func (ec *executionContext) _TaskInput_valueMoney(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueMoney, nil + return obj.ValueID, nil }) if err != nil { ec.Error(ctx, err) @@ -161812,38 +162198,26 @@ func (ec *executionContext) _TaskInput_valueMoney(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Money) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueMoney(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "currency": - return ec.fieldContext_Money_currency(ctx, field) - case "extension": - return ec.fieldContext_Money_extension(ctx, field) - case "id": - return ec.fieldContext_Money_id(ctx, field) - case "resourceType": - return ec.fieldContext_Money_resourceType(ctx, field) - case "value": - return ec.fieldContext_Money_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Money", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueParameterDefinition(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueParameterDefinition(ctx, field) +func (ec *executionContext) _TaskInput_valueInstant(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueInstant(ctx, field) if err != nil { return graphql.Null } @@ -161856,7 +162230,7 @@ func (ec *executionContext) _TaskInput_valueParameterDefinition(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueParameterDefinition, nil + return obj.ValueInstant, nil }) if err != nil { ec.Error(ctx, err) @@ -161865,48 +162239,26 @@ func (ec *executionContext) _TaskInput_valueParameterDefinition(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ParameterDefinition) + res := resTmp.(*string) fc.Result = res - return ec.marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueParameterDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueInstant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "profile": - return ec.fieldContext_ParameterDefinition_profile(ctx, field) - case "min": - return ec.fieldContext_ParameterDefinition_min(ctx, field) - case "name": - return ec.fieldContext_ParameterDefinition_name(ctx, field) - case "type": - return ec.fieldContext_ParameterDefinition_type(ctx, field) - case "documentation": - return ec.fieldContext_ParameterDefinition_documentation(ctx, field) - case "extension": - return ec.fieldContext_ParameterDefinition_extension(ctx, field) - case "id": - return ec.fieldContext_ParameterDefinition_id(ctx, field) - case "max": - return ec.fieldContext_ParameterDefinition_max(ctx, field) - case "resourceType": - return ec.fieldContext_ParameterDefinition_resourceType(ctx, field) - case "use": - return ec.fieldContext_ParameterDefinition_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ParameterDefinition", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueUuid(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueUuid(ctx, field) +func (ec *executionContext) _TaskInput_valueHumanName(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueHumanName(ctx, field) if err != nil { return graphql.Null } @@ -161919,7 +162271,7 @@ func (ec *executionContext) _TaskInput_valueUuid(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueUUID, nil + return obj.ValueHumanName, nil }) if err != nil { ec.Error(ctx, err) @@ -161928,26 +162280,48 @@ func (ec *executionContext) _TaskInput_valueUuid(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.HumanName) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueUuid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueHumanName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "given": + return ec.fieldContext_HumanName_given(ctx, field) + case "resourceType": + return ec.fieldContext_HumanName_resourceType(ctx, field) + case "use": + return ec.fieldContext_HumanName_use(ctx, field) + case "family": + return ec.fieldContext_HumanName_family(ctx, field) + case "suffix": + return ec.fieldContext_HumanName_suffix(ctx, field) + case "id": + return ec.fieldContext_HumanName_id(ctx, field) + case "period": + return ec.fieldContext_HumanName_period(ctx, field) + case "prefix": + return ec.fieldContext_HumanName_prefix(ctx, field) + case "extension": + return ec.fieldContext_HumanName_extension(ctx, field) + case "text": + return ec.fieldContext_HumanName_text(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueAttachment(ctx, field) +func (ec *executionContext) _TaskInput_valueMoney(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueMoney(ctx, field) if err != nil { return graphql.Null } @@ -161960,7 +162334,7 @@ func (ec *executionContext) _TaskInput_valueAttachment(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAttachment, nil + return obj.ValueMoney, nil }) if err != nil { ec.Error(ctx, err) @@ -161969,12 +162343,12 @@ func (ec *executionContext) _TaskInput_valueAttachment(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Attachment) + res := resTmp.(*model.Money) fc.Result = res - return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueMoney(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -161982,47 +162356,25 @@ func (ec *executionContext) fieldContext_TaskInput_valueAttachment(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) + case "currency": + return ec.fieldContext_Money_currency(ctx, field) case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) - case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) + return ec.fieldContext_Money_extension(ctx, field) case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) + return ec.fieldContext_Money_id(ctx, field) + case "resourceType": + return ec.fieldContext_Money_resourceType(ctx, field) + case "value": + return ec.fieldContext_Money_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Money", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueUsageContext(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueUsageContext(ctx, field) +func (ec *executionContext) _TaskInput_valueSignature(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueSignature(ctx, field) if err != nil { return graphql.Null } @@ -162035,28 +162387,31 @@ func (ec *executionContext) _TaskInput_valueUsageContext(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueUsageContext, nil + return obj.ValueSignature, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.TaskInputValueUsageContextUnion) + res := resTmp.(model.TaskInputValueSignatureUnion) fc.Result = res - return ec.marshalOTaskInputValueUsageContextUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueUsageContextUnion(ctx, field.Selections, res) + return ec.marshalNTaskInputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueSignatureUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueUsageContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueSignature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskInputValueUsageContextUnion does not have child fields") + return nil, errors.New("field of type TaskInputValueSignatureUnion does not have child fields") }, } defer func() { @@ -162066,15 +162421,15 @@ func (ec *executionContext) fieldContext_TaskInput_valueUsageContext(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskInput_valueUsageContext_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TaskInput_valueSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TaskInput_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueTime(ctx, field) +func (ec *executionContext) _TaskInput_valueAvailability(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueAvailability(ctx, field) if err != nil { return graphql.Null } @@ -162087,7 +162442,7 @@ func (ec *executionContext) _TaskInput_valueTime(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTime, nil + return obj.ValueAvailability, nil }) if err != nil { ec.Error(ctx, err) @@ -162096,26 +162451,38 @@ func (ec *executionContext) _TaskInput_valueTime(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Availability) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueAvailability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "notAvailableTime": + return ec.fieldContext_Availability_notAvailableTime(ctx, field) + case "resourceType": + return ec.fieldContext_Availability_resourceType(ctx, field) + case "availableTime": + return ec.fieldContext_Availability_availableTime(ctx, field) + case "extension": + return ec.fieldContext_Availability_extension(ctx, field) + case "id": + return ec.fieldContext_Availability_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Availability", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueUri(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueUri(ctx, field) +func (ec *executionContext) _TaskInput_valueUnsignedInt(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueUnsignedInt(ctx, field) if err != nil { return graphql.Null } @@ -162128,7 +162495,7 @@ func (ec *executionContext) _TaskInput_valueUri(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueURI, nil + return obj.ValueUnsignedInt, nil }) if err != nil { ec.Error(ctx, err) @@ -162142,7 +162509,7 @@ func (ec *executionContext) _TaskInput_valueUri(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueUnsignedInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162155,8 +162522,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueUri(_ context.Context, f return fc, nil } -func (ec *executionContext) _TaskInput_valueSignature(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueSignature(ctx, field) +func (ec *executionContext) _TaskInput_valueMarkdown(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueMarkdown(ctx, field) if err != nil { return graphql.Null } @@ -162169,7 +162536,7 @@ func (ec *executionContext) _TaskInput_valueSignature(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueSignature, nil + return obj.ValueMarkdown, nil }) if err != nil { ec.Error(ctx, err) @@ -162178,37 +162545,67 @@ func (ec *executionContext) _TaskInput_valueSignature(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]model.TaskInputValueSignatureUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTaskInputValueSignatureUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueSignatureUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueSignature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueMarkdown(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskInputValueSignatureUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _TaskInput_valueString(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueString(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskInput_valueSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ValueString, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskInput", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueQuantity(ctx, field) +func (ec *executionContext) _TaskInput_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueSampledData(ctx, field) if err != nil { return graphql.Null } @@ -162221,7 +162618,7 @@ func (ec *executionContext) _TaskInput_valueQuantity(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueQuantity, nil + return obj.ValueSampledData, nil }) if err != nil { ec.Error(ctx, err) @@ -162230,12 +162627,12 @@ func (ec *executionContext) _TaskInput_valueQuantity(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.(*model.SampledData) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162243,31 +162640,41 @@ func (ec *executionContext) fieldContext_TaskInput_valueQuantity(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) - case "id": - return ec.fieldContext_Quantity_id(ctx, field) + case "intervalUnit": + return ec.fieldContext_SampledData_intervalUnit(ctx, field) case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_SampledData_resourceType(ctx, field) + case "lowerLimit": + return ec.fieldContext_SampledData_lowerLimit(ctx, field) + case "factor": + return ec.fieldContext_SampledData_factor(ctx, field) + case "id": + return ec.fieldContext_SampledData_id(ctx, field) + case "extension": + return ec.fieldContext_SampledData_extension(ctx, field) + case "upperLimit": + return ec.fieldContext_SampledData_upperLimit(ctx, field) + case "dimensions": + return ec.fieldContext_SampledData_dimensions(ctx, field) + case "interval": + return ec.fieldContext_SampledData_interval(ctx, field) + case "offsets": + return ec.fieldContext_SampledData_offsets(ctx, field) + case "origin": + return ec.fieldContext_SampledData_origin(ctx, field) + case "codeMap": + return ec.fieldContext_SampledData_codeMap(ctx, field) + case "data": + return ec.fieldContext_SampledData_data(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueContactDetail(ctx, field) +func (ec *executionContext) _TaskInput_valueDistance(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueDistance(ctx, field) if err != nil { return graphql.Null } @@ -162280,7 +162687,7 @@ func (ec *executionContext) _TaskInput_valueContactDetail(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueContactDetail, nil + return obj.ValueDistance, nil }) if err != nil { ec.Error(ctx, err) @@ -162289,12 +162696,12 @@ func (ec *executionContext) _TaskInput_valueContactDetail(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ContactDetail) + res := resTmp.(*model.Distance) fc.Result = res - return ec.marshalOContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactDetail(ctx, field.Selections, res) + return ec.marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueDistance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162302,25 +162709,31 @@ func (ec *executionContext) fieldContext_TaskInput_valueContactDetail(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "telecom": - return ec.fieldContext_ContactDetail_telecom(ctx, field) + case "comparator": + return ec.fieldContext_Distance_comparator(ctx, field) case "extension": - return ec.fieldContext_ContactDetail_extension(ctx, field) + return ec.fieldContext_Distance_extension(ctx, field) case "id": - return ec.fieldContext_ContactDetail_id(ctx, field) - case "name": - return ec.fieldContext_ContactDetail_name(ctx, field) + return ec.fieldContext_Distance_id(ctx, field) case "resourceType": - return ec.fieldContext_ContactDetail_resourceType(ctx, field) + return ec.fieldContext_Distance_resourceType(ctx, field) + case "system": + return ec.fieldContext_Distance_system(ctx, field) + case "unit": + return ec.fieldContext_Distance_unit(ctx, field) + case "value": + return ec.fieldContext_Distance_value(ctx, field) + case "code": + return ec.fieldContext_Distance_code(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactDetail", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Distance", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueMeta(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueMeta(ctx, field) +func (ec *executionContext) _TaskInput_valueAge(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueAge(ctx, field) if err != nil { return graphql.Null } @@ -162333,7 +162746,7 @@ func (ec *executionContext) _TaskInput_valueMeta(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueMeta, nil + return obj.ValueAge, nil }) if err != nil { ec.Error(ctx, err) @@ -162342,12 +162755,12 @@ func (ec *executionContext) _TaskInput_valueMeta(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*model.Age) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueMeta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162355,33 +162768,31 @@ func (ec *executionContext) fieldContext_TaskInput_valueMeta(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_Age_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_Age_id(ctx, field) + case "resourceType": + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueCode(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueCode(ctx, field) +func (ec *executionContext) _TaskInput_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueTime(ctx, field) if err != nil { return graphql.Null } @@ -162394,7 +162805,7 @@ func (ec *executionContext) _TaskInput_valueCode(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCode, nil + return obj.ValueTime, nil }) if err != nil { ec.Error(ctx, err) @@ -162408,7 +162819,7 @@ func (ec *executionContext) _TaskInput_valueCode(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162421,8 +162832,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueCode(_ context.Context, return fc, nil } -func (ec *executionContext) _TaskInput_valueTriggerDefinition(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueTriggerDefinition(ctx, field) +func (ec *executionContext) _TaskInput_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueRange(ctx, field) if err != nil { return graphql.Null } @@ -162435,7 +162846,7 @@ func (ec *executionContext) _TaskInput_valueTriggerDefinition(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTriggerDefinition, nil + return obj.ValueRange, nil }) if err != nil { ec.Error(ctx, err) @@ -162444,12 +162855,12 @@ func (ec *executionContext) _TaskInput_valueTriggerDefinition(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.TriggerDefinition) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueTriggerDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162457,39 +162868,25 @@ func (ec *executionContext) fieldContext_TaskInput_valueTriggerDefinition(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "condition": - return ec.fieldContext_TriggerDefinition_condition(ctx, field) - case "name": - return ec.fieldContext_TriggerDefinition_name(ctx, field) - case "data": - return ec.fieldContext_TriggerDefinition_data(ctx, field) - case "extension": - return ec.fieldContext_TriggerDefinition_extension(ctx, field) case "id": - return ec.fieldContext_TriggerDefinition_id(ctx, field) - case "timingTiming": - return ec.fieldContext_TriggerDefinition_timingTiming(ctx, field) - case "code": - return ec.fieldContext_TriggerDefinition_code(ctx, field) - case "timingDateTime": - return ec.fieldContext_TriggerDefinition_timingDateTime(ctx, field) - case "type": - return ec.fieldContext_TriggerDefinition_type(ctx, field) + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": - return ec.fieldContext_TriggerDefinition_resourceType(ctx, field) - case "timingDate": - return ec.fieldContext_TriggerDefinition_timingDate(ctx, field) - case "subscriptionTopic": - return ec.fieldContext_TriggerDefinition_subscriptionTopic(ctx, field) + return ec.fieldContext_Range_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TriggerDefinition", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueOid(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueOid(ctx, field) +func (ec *executionContext) _TaskInput_valueAnnotation(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueAnnotation(ctx, field) if err != nil { return graphql.Null } @@ -162502,35 +162899,49 @@ func (ec *executionContext) _TaskInput_valueOid(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueOid, nil + return obj.ValueAnnotation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.TaskInputValueAnnotationUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNTaskInputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueAnnotationUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueOid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueAnnotation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type TaskInputValueAnnotationUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskInput_valueAnnotation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TaskInput_valueInteger64(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueInteger64(ctx, field) +func (ec *executionContext) _TaskInput_valueUrl(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueUrl(ctx, field) if err != nil { return graphql.Null } @@ -162543,7 +162954,7 @@ func (ec *executionContext) _TaskInput_valueInteger64(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInteger64, nil + return obj.ValueURL, nil }) if err != nil { ec.Error(ctx, err) @@ -162557,7 +162968,7 @@ func (ec *executionContext) _TaskInput_valueInteger64(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueInteger64(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162570,8 +162981,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueInteger64(_ context.Cont return fc, nil } -func (ec *executionContext) _TaskInput_valueDataRequirement(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueDataRequirement(ctx, field) +func (ec *executionContext) _TaskInput_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -162584,7 +162995,7 @@ func (ec *executionContext) _TaskInput_valueDataRequirement(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDataRequirement, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -162593,12 +163004,12 @@ func (ec *executionContext) _TaskInput_valueDataRequirement(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.DataRequirement) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueDataRequirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162606,41 +163017,129 @@ func (ec *executionContext) fieldContext_TaskInput_valueDataRequirement(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_DataRequirement_type(ctx, field) - case "valueFilter": - return ec.fieldContext_DataRequirement_valueFilter(ctx, field) - case "dateFilter": - return ec.fieldContext_DataRequirement_dateFilter(ctx, field) - case "limit": - return ec.fieldContext_DataRequirement_limit(ctx, field) - case "subjectCodeableConcept": - return ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) - case "extension": - return ec.fieldContext_DataRequirement_extension(ctx, field) - case "mustSupport": - return ec.fieldContext_DataRequirement_mustSupport(ctx, field) - case "sort": - return ec.fieldContext_DataRequirement_sort(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_DataRequirement_id(ctx, field) - case "profile": - return ec.fieldContext_DataRequirement_profile(ctx, field) - case "subjectReference": - return ec.fieldContext_DataRequirement_subjectReference(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_DataRequirement_resourceType(ctx, field) - case "codeFilter": - return ec.fieldContext_DataRequirement_codeFilter(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DataRequirement", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueBoolean(ctx, field) +func (ec *executionContext) _TaskInput_valueInteger64(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueInteger64(ctx, field) if err != nil { return graphql.Null } @@ -162653,7 +163152,7 @@ func (ec *executionContext) _TaskInput_valueBoolean(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueBoolean, nil + return obj.ValueInteger64, nil }) if err != nil { ec.Error(ctx, err) @@ -162667,7 +163166,7 @@ func (ec *executionContext) _TaskInput_valueBoolean(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueInteger64(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162680,8 +163179,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueBoolean(_ context.Contex return fc, nil } -func (ec *executionContext) _TaskInput_valueCoding(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueCoding(ctx, field) +func (ec *executionContext) _TaskInput_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueAttachment(ctx, field) if err != nil { return graphql.Null } @@ -162694,7 +163193,7 @@ func (ec *executionContext) _TaskInput_valueCoding(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCoding, nil + return obj.ValueAttachment, nil }) if err != nil { ec.Error(ctx, err) @@ -162703,12 +163202,12 @@ func (ec *executionContext) _TaskInput_valueCoding(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Coding) + res := resTmp.(*model.Attachment) fc.Result = res - return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) + return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueCoding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162716,31 +163215,47 @@ func (ec *executionContext) fieldContext_TaskInput_valueCoding(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) + case "resourceType": + return ec.fieldContext_Attachment_resourceType(ctx, field) case "extension": - return ec.fieldContext_Coding_extension(ctx, field) + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) - case "userSelected": - return ec.fieldContext_Coding_userSelected(ctx, field) - case "version": - return ec.fieldContext_Coding_version(ctx, field) - case "code": - return ec.fieldContext_Coding_code(ctx, field) - case "display": - return ec.fieldContext_Coding_display(ctx, field) + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueDecimal(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueDecimal(ctx, field) +func (ec *executionContext) _TaskInput_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueInteger(ctx, field) if err != nil { return graphql.Null } @@ -162753,7 +163268,7 @@ func (ec *executionContext) _TaskInput_valueDecimal(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDecimal, nil + return obj.ValueInteger, nil }) if err != nil { ec.Error(ctx, err) @@ -162767,7 +163282,7 @@ func (ec *executionContext) _TaskInput_valueDecimal(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueDecimal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162780,8 +163295,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueDecimal(_ context.Contex return fc, nil } -func (ec *executionContext) _TaskInput_valueAnnotation(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueAnnotation(ctx, field) +func (ec *executionContext) _TaskInput_valueDosage(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueDosage(ctx, field) if err != nil { return graphql.Null } @@ -162794,7 +163309,7 @@ func (ec *executionContext) _TaskInput_valueAnnotation(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAnnotation, nil + return obj.ValueDosage, nil }) if err != nil { ec.Error(ctx, err) @@ -162803,64 +163318,12 @@ func (ec *executionContext) _TaskInput_valueAnnotation(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]model.TaskInputValueAnnotationUnion) + res := resTmp.(*model.Dosage) fc.Result = res - return ec.marshalOTaskInputValueAnnotationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueAnnotationUnion(ctx, field.Selections, res) + return ec.marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueAnnotation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskInput", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskInputValueAnnotationUnion does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskInput_valueAnnotation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TaskInput_valueCount(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ValueCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Count) - fc.Result = res - return ec.marshalOCount2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaskInput_valueCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueDosage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162868,72 +163331,51 @@ func (ec *executionContext) fieldContext_TaskInput_valueCount(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Count_extension(ctx, field) + case "doseAndRate": + return ec.fieldContext_Dosage_doseAndRate(ctx, field) + case "additionalInstruction": + return ec.fieldContext_Dosage_additionalInstruction(ctx, field) + case "route": + return ec.fieldContext_Dosage_route(ctx, field) + case "timing": + return ec.fieldContext_Dosage_timing(ctx, field) case "id": - return ec.fieldContext_Count_id(ctx, field) + return ec.fieldContext_Dosage_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Dosage_modifierExtension(ctx, field) case "resourceType": - return ec.fieldContext_Count_resourceType(ctx, field) - case "system": - return ec.fieldContext_Count_system(ctx, field) - case "unit": - return ec.fieldContext_Count_unit(ctx, field) - case "value": - return ec.fieldContext_Count_value(ctx, field) - case "code": - return ec.fieldContext_Count_code(ctx, field) - case "comparator": - return ec.fieldContext_Count_comparator(ctx, field) + return ec.fieldContext_Dosage_resourceType(ctx, field) + case "text": + return ec.fieldContext_Dosage_text(ctx, field) + case "sequence": + return ec.fieldContext_Dosage_sequence(ctx, field) + case "asNeeded": + return ec.fieldContext_Dosage_asNeeded(ctx, field) + case "site": + return ec.fieldContext_Dosage_site(ctx, field) + case "extension": + return ec.fieldContext_Dosage_extension(ctx, field) + case "patientInstruction": + return ec.fieldContext_Dosage_patientInstruction(ctx, field) + case "asNeededFor": + return ec.fieldContext_Dosage_asNeededFor(ctx, field) + case "maxDosePerLifetime": + return ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) + case "method": + return ec.fieldContext_Dosage_method(ctx, field) + case "maxDosePerPeriod": + return ec.fieldContext_Dosage_maxDosePerPeriod(ctx, field) + case "maxDosePerAdministration": + return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Count", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskInput_valueBase64Binary(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueBase64Binary(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ValueBase64Binary, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaskInput_valueBase64Binary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskInput", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Dosage", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueCodeableReference(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueCodeableReference(ctx, field) +func (ec *executionContext) _TaskInput_valueExpression(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueExpression(ctx, field) if err != nil { return graphql.Null } @@ -162946,7 +163388,7 @@ func (ec *executionContext) _TaskInput_valueCodeableReference(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCodeableReference, nil + return obj.ValueExpression, nil }) if err != nil { ec.Error(ctx, err) @@ -162955,12 +163397,12 @@ func (ec *executionContext) _TaskInput_valueCodeableReference(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.(*model.Expression) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueCodeableReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueExpression(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -162968,23 +163410,31 @@ func (ec *executionContext) fieldContext_TaskInput_valueCodeableReference(_ cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "expression": + return ec.fieldContext_Expression_expression(ctx, field) case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) + return ec.fieldContext_Expression_extension(ctx, field) case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) + return ec.fieldContext_Expression_id(ctx, field) + case "language": + return ec.fieldContext_Expression_language(ctx, field) + case "name": + return ec.fieldContext_Expression_name(ctx, field) + case "reference": + return ec.fieldContext_Expression_reference(ctx, field) case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) + return ec.fieldContext_Expression_resourceType(ctx, field) + case "description": + return ec.fieldContext_Expression_description(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Expression", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueDistance(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueDistance(ctx, field) +func (ec *executionContext) _TaskInput_valueContactPoint(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueContactPoint(ctx, field) if err != nil { return graphql.Null } @@ -162997,7 +163447,7 @@ func (ec *executionContext) _TaskInput_valueDistance(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDistance, nil + return obj.ValueContactPoint, nil }) if err != nil { ec.Error(ctx, err) @@ -163006,12 +163456,12 @@ func (ec *executionContext) _TaskInput_valueDistance(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Distance) + res := resTmp.(*model.ContactPoint) fc.Result = res - return ec.marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx, field.Selections, res) + return ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueDistance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueContactPoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -163020,30 +163470,30 @@ func (ec *executionContext) fieldContext_TaskInput_valueDistance(_ context.Conte Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "resourceType": - return ec.fieldContext_Distance_resourceType(ctx, field) + return ec.fieldContext_ContactPoint_resourceType(ctx, field) case "system": - return ec.fieldContext_Distance_system(ctx, field) - case "unit": - return ec.fieldContext_Distance_unit(ctx, field) + return ec.fieldContext_ContactPoint_system(ctx, field) + case "use": + return ec.fieldContext_ContactPoint_use(ctx, field) case "value": - return ec.fieldContext_Distance_value(ctx, field) - case "code": - return ec.fieldContext_Distance_code(ctx, field) - case "comparator": - return ec.fieldContext_Distance_comparator(ctx, field) + return ec.fieldContext_ContactPoint_value(ctx, field) case "extension": - return ec.fieldContext_Distance_extension(ctx, field) + return ec.fieldContext_ContactPoint_extension(ctx, field) case "id": - return ec.fieldContext_Distance_id(ctx, field) + return ec.fieldContext_ContactPoint_id(ctx, field) + case "period": + return ec.fieldContext_ContactPoint_period(ctx, field) + case "rank": + return ec.fieldContext_ContactPoint_rank(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Distance", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueHumanName(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueHumanName(ctx, field) +func (ec *executionContext) _TaskInput_valueMeta(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueMeta(ctx, field) if err != nil { return graphql.Null } @@ -163056,7 +163506,7 @@ func (ec *executionContext) _TaskInput_valueHumanName(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueHumanName, nil + return obj.ValueMeta, nil }) if err != nil { ec.Error(ctx, err) @@ -163065,12 +163515,12 @@ func (ec *executionContext) _TaskInput_valueHumanName(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.HumanName) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueHumanName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueMeta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -163078,35 +163528,33 @@ func (ec *executionContext) fieldContext_TaskInput_valueHumanName(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "suffix": - return ec.fieldContext_HumanName_suffix(ctx, field) - case "use": - return ec.fieldContext_HumanName_use(ctx, field) - case "family": - return ec.fieldContext_HumanName_family(ctx, field) - case "given": - return ec.fieldContext_HumanName_given(ctx, field) - case "id": - return ec.fieldContext_HumanName_id(ctx, field) - case "prefix": - return ec.fieldContext_HumanName_prefix(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": - return ec.fieldContext_HumanName_extension(ctx, field) + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_HumanName_resourceType(ctx, field) - case "period": - return ec.fieldContext_HumanName_period(ctx, field) - case "text": - return ec.fieldContext_HumanName_text(ctx, field) + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) + case "id": + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueId(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueId(ctx, field) +func (ec *executionContext) _TaskInput_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -163119,7 +163567,7 @@ func (ec *executionContext) _TaskInput_valueId(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -163133,7 +163581,7 @@ func (ec *executionContext) _TaskInput_valueId(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -163146,8 +163594,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueId(_ context.Context, fi return fc, nil } -func (ec *executionContext) _TaskInput_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_resourceType(ctx, field) +func (ec *executionContext) _TaskInput_valueDate(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueDate(ctx, field) if err != nil { return graphql.Null } @@ -163160,7 +163608,7 @@ func (ec *executionContext) _TaskInput_resourceType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ValueDate, nil }) if err != nil { ec.Error(ctx, err) @@ -163174,7 +163622,7 @@ func (ec *executionContext) _TaskInput_resourceType(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -163187,8 +163635,8 @@ func (ec *executionContext) fieldContext_TaskInput_resourceType(_ context.Contex return fc, nil } -func (ec *executionContext) _TaskInput_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueRatio(ctx, field) +func (ec *executionContext) _TaskInput_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueDateTime(ctx, field) if err != nil { return graphql.Null } @@ -163201,7 +163649,7 @@ func (ec *executionContext) _TaskInput_valueRatio(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRatio, nil + return obj.ValueDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -163210,31 +163658,19 @@ func (ec *executionContext) _TaskInput_valueRatio(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Ratio) + res := resTmp.(*string) fc.Result = res - return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Ratio_extension(ctx, field) - case "id": - return ec.fieldContext_Ratio_id(ctx, field) - case "numerator": - return ec.fieldContext_Ratio_numerator(ctx, field) - case "resourceType": - return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -163276,24 +163712,24 @@ func (ec *executionContext) fieldContext_TaskInput_valueExtendedContactDetail(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_ExtendedContactDetail_name(ctx, field) + case "period": + return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + case "telecom": + return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) + case "address": + return ec.fieldContext_ExtendedContactDetail_address(ctx, field) case "organization": return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) case "purpose": return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) case "resourceType": return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) - case "telecom": - return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) - case "address": - return ec.fieldContext_ExtendedContactDetail_address(ctx, field) - case "id": - return ec.fieldContext_ExtendedContactDetail_id(ctx, field) + case "name": + return ec.fieldContext_ExtendedContactDetail_name(ctx, field) case "extension": return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) - case "period": - return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + case "id": + return ec.fieldContext_ExtendedContactDetail_id(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) }, @@ -163356,49 +163792,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueRatioRange(_ context.Con return fc, nil } -func (ec *executionContext) _TaskInput_valueMarkdown(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueMarkdown(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ValueMarkdown, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaskInput_valueMarkdown(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskInput", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskInput_type(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_type(ctx, field) +func (ec *executionContext) _TaskInput_valueAddress(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueAddress(ctx, field) if err != nil { return graphql.Null } @@ -163411,7 +163806,7 @@ func (ec *executionContext) _TaskInput_type(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.ValueAddress, nil }) if err != nil { ec.Error(ctx, err) @@ -163420,12 +163815,12 @@ func (ec *executionContext) _TaskInput_type(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Address) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -163433,18 +163828,34 @@ func (ec *executionContext) fieldContext_TaskInput_type(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "country": + return ec.fieldContext_Address_country(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Address_extension(ctx, field) + case "use": + return ec.fieldContext_Address_use(ctx, field) + case "district": + return ec.fieldContext_Address_district(ctx, field) + case "period": + return ec.fieldContext_Address_period(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Address_resourceType(ctx, field) + case "text": + return ec.fieldContext_Address_text(ctx, field) + case "city": + return ec.fieldContext_Address_city(ctx, field) + case "postalCode": + return ec.fieldContext_Address_postalCode(ctx, field) + case "line": + return ec.fieldContext_Address_line(ctx, field) + case "state": + return ec.fieldContext_Address_state(ctx, field) + case "type": + return ec.fieldContext_Address_type(ctx, field) + case "id": + return ec.fieldContext_Address_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) }, } return fc, nil @@ -163491,77 +163902,8 @@ func (ec *executionContext) fieldContext_TaskInput_id(_ context.Context, field g return fc, nil } -func (ec *executionContext) _TaskInput_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueSampledData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ValueSampledData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.SampledData) - fc.Result = res - return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaskInput_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskInput", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_SampledData_resourceType(ctx, field) - case "origin": - return ec.fieldContext_SampledData_origin(ctx, field) - case "codeMap": - return ec.fieldContext_SampledData_codeMap(ctx, field) - case "intervalUnit": - return ec.fieldContext_SampledData_intervalUnit(ctx, field) - case "lowerLimit": - return ec.fieldContext_SampledData_lowerLimit(ctx, field) - case "upperLimit": - return ec.fieldContext_SampledData_upperLimit(ctx, field) - case "extension": - return ec.fieldContext_SampledData_extension(ctx, field) - case "id": - return ec.fieldContext_SampledData_id(ctx, field) - case "dimensions": - return ec.fieldContext_SampledData_dimensions(ctx, field) - case "factor": - return ec.fieldContext_SampledData_factor(ctx, field) - case "interval": - return ec.fieldContext_SampledData_interval(ctx, field) - case "offsets": - return ec.fieldContext_SampledData_offsets(ctx, field) - case "data": - return ec.fieldContext_SampledData_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskInput_extension(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_extension(ctx, field) +func (ec *executionContext) _TaskInput_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueQuantity(ctx, field) if err != nil { return graphql.Null } @@ -163574,7 +163916,7 @@ func (ec *executionContext) _TaskInput_extension(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ValueQuantity, nil }) if err != nil { ec.Error(ctx, err) @@ -163583,12 +163925,12 @@ func (ec *executionContext) _TaskInput_extension(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -163596,279 +163938,24 @@ func (ec *executionContext) fieldContext_TaskInput_extension(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskInput_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_modifierExtension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaskInput_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskInput", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil @@ -163910,10 +163997,6 @@ func (ec *executionContext) fieldContext_TaskInput_valueTiming(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "repeat": - return ec.fieldContext_Timing_repeat(ctx, field) - case "resourceType": - return ec.fieldContext_Timing_resourceType(ctx, field) case "code": return ec.fieldContext_Timing_code(ctx, field) case "event": @@ -163924,6 +164007,10 @@ func (ec *executionContext) fieldContext_TaskInput_valueTiming(_ context.Context return ec.fieldContext_Timing_id(ctx, field) case "modifierExtension": return ec.fieldContext_Timing_modifierExtension(ctx, field) + case "repeat": + return ec.fieldContext_Timing_repeat(ctx, field) + case "resourceType": + return ec.fieldContext_Timing_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) }, @@ -163931,8 +164018,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueTiming(_ context.Context return fc, nil } -func (ec *executionContext) _TaskInput_valueIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueIdentifier(ctx, field) +func (ec *executionContext) _TaskInput_valuePositiveInt(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valuePositiveInt(ctx, field) if err != nil { return graphql.Null } @@ -163945,7 +164032,7 @@ func (ec *executionContext) _TaskInput_valueIdentifier(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueIdentifier, nil + return obj.ValuePositiveInt, nil }) if err != nil { ec.Error(ctx, err) @@ -163954,46 +164041,26 @@ func (ec *executionContext) _TaskInput_valueIdentifier(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Identifier) + res := resTmp.(*string) fc.Result = res - return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valuePositiveInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) - case "id": - return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskInput_valuePositiveInt(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valuePositiveInt(ctx, field) +func (ec *executionContext) _TaskInput_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valuePeriod(ctx, field) if err != nil { return graphql.Null } @@ -164006,7 +164073,7 @@ func (ec *executionContext) _TaskInput_valuePositiveInt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValuePositiveInt, nil + return obj.ValuePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -164015,26 +164082,38 @@ func (ec *executionContext) _TaskInput_valuePositiveInt(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valuePositiveInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueAvailability(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueAvailability(ctx, field) +func (ec *executionContext) _TaskInput_valueCount(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueCount(ctx, field) if err != nil { return graphql.Null } @@ -164047,7 +164126,7 @@ func (ec *executionContext) _TaskInput_valueAvailability(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAvailability, nil + return obj.ValueCount, nil }) if err != nil { ec.Error(ctx, err) @@ -164056,12 +164135,12 @@ func (ec *executionContext) _TaskInput_valueAvailability(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Availability) + res := resTmp.(*model.Count) fc.Result = res - return ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) + return ec.marshalOCount2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCount(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueAvailability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -164069,18 +164148,24 @@ func (ec *executionContext) fieldContext_TaskInput_valueAvailability(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "availableTime": - return ec.fieldContext_Availability_availableTime(ctx, field) - case "extension": - return ec.fieldContext_Availability_extension(ctx, field) case "id": - return ec.fieldContext_Availability_id(ctx, field) - case "notAvailableTime": - return ec.fieldContext_Availability_notAvailableTime(ctx, field) + return ec.fieldContext_Count_id(ctx, field) case "resourceType": - return ec.fieldContext_Availability_resourceType(ctx, field) + return ec.fieldContext_Count_resourceType(ctx, field) + case "system": + return ec.fieldContext_Count_system(ctx, field) + case "unit": + return ec.fieldContext_Count_unit(ctx, field) + case "value": + return ec.fieldContext_Count_value(ctx, field) + case "code": + return ec.fieldContext_Count_code(ctx, field) + case "comparator": + return ec.fieldContext_Count_comparator(ctx, field) + case "extension": + return ec.fieldContext_Count_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Availability", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Count", field.Name) }, } return fc, nil @@ -164122,12 +164207,6 @@ func (ec *executionContext) fieldContext_TaskInput_valueDuration(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) - case "extension": - return ec.fieldContext_Duration_extension(ctx, field) case "id": return ec.fieldContext_Duration_id(ctx, field) case "resourceType": @@ -164138,6 +164217,12 @@ func (ec *executionContext) fieldContext_TaskInput_valueDuration(_ context.Conte return ec.fieldContext_Duration_unit(ctx, field) case "value": return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) + case "extension": + return ec.fieldContext_Duration_extension(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, @@ -164145,8 +164230,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueDuration(_ context.Conte return fc, nil } -func (ec *executionContext) _TaskInput_valueString(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueString(ctx, field) +func (ec *executionContext) _TaskInput_valueCanonical(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueCanonical(ctx, field) if err != nil { return graphql.Null } @@ -164159,7 +164244,7 @@ func (ec *executionContext) _TaskInput_valueString(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueString, nil + return obj.ValueCanonical, nil }) if err != nil { ec.Error(ctx, err) @@ -164173,7 +164258,7 @@ func (ec *executionContext) _TaskInput_valueString(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -164186,8 +164271,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueString(_ context.Context return fc, nil } -func (ec *executionContext) _TaskInput_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueCodeableConcept(ctx, field) +func (ec *executionContext) _TaskInput_valueParameterDefinition(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueParameterDefinition(ctx, field) if err != nil { return graphql.Null } @@ -164200,7 +164285,7 @@ func (ec *executionContext) _TaskInput_valueCodeableConcept(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCodeableConcept, nil + return obj.ValueParameterDefinition, nil }) if err != nil { ec.Error(ctx, err) @@ -164209,12 +164294,12 @@ func (ec *executionContext) _TaskInput_valueCodeableConcept(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.ParameterDefinition) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueParameterDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -164222,25 +164307,35 @@ func (ec *executionContext) fieldContext_TaskInput_valueCodeableConcept(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "max": + return ec.fieldContext_ParameterDefinition_max(ctx, field) + case "name": + return ec.fieldContext_ParameterDefinition_name(ctx, field) + case "documentation": + return ec.fieldContext_ParameterDefinition_documentation(ctx, field) case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_ParameterDefinition_id(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_ParameterDefinition_resourceType(ctx, field) + case "extension": + return ec.fieldContext_ParameterDefinition_extension(ctx, field) + case "profile": + return ec.fieldContext_ParameterDefinition_profile(ctx, field) + case "use": + return ec.fieldContext_ParameterDefinition_use(ctx, field) + case "min": + return ec.fieldContext_ParameterDefinition_min(ctx, field) + case "type": + return ec.fieldContext_ParameterDefinition_type(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ParameterDefinition", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueAge(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueAge(ctx, field) +func (ec *executionContext) _TaskInput_valueRelatedArtifact(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueRelatedArtifact(ctx, field) if err != nil { return graphql.Null } @@ -164253,7 +164348,7 @@ func (ec *executionContext) _TaskInput_valueAge(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAge, nil + return obj.ValueRelatedArtifact, nil }) if err != nil { ec.Error(ctx, err) @@ -164262,12 +164357,12 @@ func (ec *executionContext) _TaskInput_valueAge(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.(*model.RelatedArtifact) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueRelatedArtifact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -164275,31 +164370,41 @@ func (ec *executionContext) fieldContext_TaskInput_valueAge(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) + case "type": + return ec.fieldContext_RelatedArtifact_type(ctx, field) + case "resource": + return ec.fieldContext_RelatedArtifact_resource(ctx, field) + case "resourceReference": + return ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) case "extension": - return ec.fieldContext_Age_extension(ctx, field) + return ec.fieldContext_RelatedArtifact_extension(ctx, field) case "id": - return ec.fieldContext_Age_id(ctx, field) + return ec.fieldContext_RelatedArtifact_id(ctx, field) + case "label": + return ec.fieldContext_RelatedArtifact_label(ctx, field) + case "document": + return ec.fieldContext_RelatedArtifact_document(ctx, field) + case "publicationStatus": + return ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) - case "value": - return ec.fieldContext_Age_value(ctx, field) + return ec.fieldContext_RelatedArtifact_resourceType(ctx, field) + case "classifier": + return ec.fieldContext_RelatedArtifact_classifier(ctx, field) + case "publicationDate": + return ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) + case "citation": + return ec.fieldContext_RelatedArtifact_citation(ctx, field) + case "display": + return ec.fieldContext_RelatedArtifact_display(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RelatedArtifact", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueDate(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueDate(ctx, field) +func (ec *executionContext) _TaskInput_extension(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_extension(ctx, field) if err != nil { return graphql.Null } @@ -164312,7 +164417,7 @@ func (ec *executionContext) _TaskInput_valueDate(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDate, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -164321,53 +164426,169 @@ func (ec *executionContext) _TaskInput_valueDate(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskInput_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valuePeriod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ValuePeriod, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Period) - fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) -} + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} -func (ec *executionContext) fieldContext_TaskInput_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) _TaskInput_valueContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueContactDetail(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ValueContactDetail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ContactDetail) + fc.Result = res + return ec.marshalOContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactDetail(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -164376,24 +164597,24 @@ func (ec *executionContext) fieldContext_TaskInput_valuePeriod(_ context.Context Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "extension": - return ec.fieldContext_Period_extension(ctx, field) + return ec.fieldContext_ContactDetail_extension(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_ContactDetail_id(ctx, field) + case "name": + return ec.fieldContext_ContactDetail_name(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_ContactDetail_resourceType(ctx, field) + case "telecom": + return ec.fieldContext_ContactDetail_telecom(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactDetail", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskInput_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueInteger(ctx, field) +func (ec *executionContext) _TaskInput_valueUri(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueUri(ctx, field) if err != nil { return graphql.Null } @@ -164406,7 +164627,7 @@ func (ec *executionContext) _TaskInput_valueInteger(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInteger, nil + return obj.ValueURI, nil }) if err != nil { ec.Error(ctx, err) @@ -164420,7 +164641,7 @@ func (ec *executionContext) _TaskInput_valueInteger(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, @@ -164433,8 +164654,8 @@ func (ec *executionContext) fieldContext_TaskInput_valueInteger(_ context.Contex return fc, nil } -func (ec *executionContext) _TaskInput_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskInput_valueRange(ctx, field) +func (ec *executionContext) _TaskInput_valueDecimal(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueDecimal(ctx, field) if err != nil { return graphql.Null } @@ -164447,7 +164668,7 @@ func (ec *executionContext) _TaskInput_valueRange(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRange, nil + return obj.ValueDecimal, nil }) if err != nil { ec.Error(ctx, err) @@ -164456,38 +164677,26 @@ func (ec *executionContext) _TaskInput_valueRange(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(*string) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskInput_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueDecimal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valuePeriod(ctx, field) +func (ec *executionContext) _TaskInput_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueBoolean(ctx, field) if err != nil { return graphql.Null } @@ -164500,7 +164709,7 @@ func (ec *executionContext) _TaskOutput_valuePeriod(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValuePeriod, nil + return obj.ValueBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -164509,38 +164718,26 @@ func (ec *executionContext) _TaskOutput_valuePeriod(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*string) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskOutput", + Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskOutput_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_id(ctx, field) +func (ec *executionContext) _TaskInput_valueIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueIdentifier(ctx, field) if err != nil { return graphql.Null } @@ -164553,7 +164750,7 @@ func (ec *executionContext) _TaskOutput_id(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ValueIdentifier, nil }) if err != nil { ec.Error(ctx, err) @@ -164562,26 +164759,46 @@ func (ec *executionContext) _TaskOutput_id(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Identifier) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskOutput", + Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueString(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueString(ctx, field) +func (ec *executionContext) _TaskInput_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -164594,7 +164811,7 @@ func (ec *executionContext) _TaskOutput_valueString(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueString, nil + return obj.ValueCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -164603,26 +164820,38 @@ func (ec *executionContext) _TaskOutput_valueString(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskOutput", + Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueOid(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueOid(ctx, field) +func (ec *executionContext) _TaskInput_valueCoding(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueCoding(ctx, field) if err != nil { return graphql.Null } @@ -164635,7 +164864,7 @@ func (ec *executionContext) _TaskOutput_valueOid(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueOid, nil + return obj.ValueCoding, nil }) if err != nil { ec.Error(ctx, err) @@ -164644,26 +164873,44 @@ func (ec *executionContext) _TaskOutput_valueOid(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Coding) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueOid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskInput_valueCoding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskOutput", + Object: "TaskInput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "userSelected": + return ec.fieldContext_Coding_userSelected(ctx, field) + case "version": + return ec.fieldContext_Coding_version(ctx, field) + case "code": + return ec.fieldContext_Coding_code(ctx, field) + case "display": + return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueRatio(ctx, field) +func (ec *executionContext) _TaskOutput_type(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_type(ctx, field) if err != nil { return graphql.Null } @@ -164676,7 +164923,7 @@ func (ec *executionContext) _TaskOutput_valueRatio(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRatio, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -164685,12 +164932,12 @@ func (ec *executionContext) _TaskOutput_valueRatio(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Ratio) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -164698,25 +164945,25 @@ func (ec *executionContext) fieldContext_TaskOutput_valueRatio(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Ratio_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Ratio_id(ctx, field) - case "numerator": - return ec.fieldContext_Ratio_numerator(ctx, field) - case "resourceType": - return ec.fieldContext_Ratio_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_Ratio_denominator(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueAge(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueAge(ctx, field) +func (ec *executionContext) _TaskOutput_valueIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueIdentifier(ctx, field) if err != nil { return graphql.Null } @@ -164729,7 +164976,7 @@ func (ec *executionContext) _TaskOutput_valueAge(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAge, nil + return obj.ValueIdentifier, nil }) if err != nil { ec.Error(ctx, err) @@ -164738,12 +164985,12 @@ func (ec *executionContext) _TaskOutput_valueAge(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Age) + res := resTmp.(*model.Identifier) fc.Result = res - return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -164751,31 +164998,33 @@ func (ec *executionContext) fieldContext_TaskOutput_valueAge(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Age_code(ctx, field) - case "comparator": - return ec.fieldContext_Age_comparator(ctx, field) case "extension": - return ec.fieldContext_Age_extension(ctx, field) - case "id": - return ec.fieldContext_Age_id(ctx, field) + return ec.fieldContext_Identifier_extension(ctx, field) case "resourceType": - return ec.fieldContext_Age_resourceType(ctx, field) - case "system": - return ec.fieldContext_Age_system(ctx, field) - case "unit": - return ec.fieldContext_Age_unit(ctx, field) + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) case "value": - return ec.fieldContext_Age_value(ctx, field) + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueSampledData(ctx, field) +func (ec *executionContext) _TaskOutput_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueRange(ctx, field) if err != nil { return graphql.Null } @@ -164788,7 +165037,7 @@ func (ec *executionContext) _TaskOutput_valueSampledData(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueSampledData, nil + return obj.ValueRange, nil }) if err != nil { ec.Error(ctx, err) @@ -164797,12 +165046,12 @@ func (ec *executionContext) _TaskOutput_valueSampledData(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SampledData) + res := resTmp.(*model.Range) fc.Result = res - return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) + return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -164810,41 +165059,25 @@ func (ec *executionContext) fieldContext_TaskOutput_valueSampledData(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": - return ec.fieldContext_SampledData_resourceType(ctx, field) - case "origin": - return ec.fieldContext_SampledData_origin(ctx, field) - case "codeMap": - return ec.fieldContext_SampledData_codeMap(ctx, field) - case "intervalUnit": - return ec.fieldContext_SampledData_intervalUnit(ctx, field) - case "lowerLimit": - return ec.fieldContext_SampledData_lowerLimit(ctx, field) - case "upperLimit": - return ec.fieldContext_SampledData_upperLimit(ctx, field) + return ec.fieldContext_Range_resourceType(ctx, field) case "extension": - return ec.fieldContext_SampledData_extension(ctx, field) - case "id": - return ec.fieldContext_SampledData_id(ctx, field) - case "dimensions": - return ec.fieldContext_SampledData_dimensions(ctx, field) - case "factor": - return ec.fieldContext_SampledData_factor(ctx, field) - case "interval": - return ec.fieldContext_SampledData_interval(ctx, field) - case "offsets": - return ec.fieldContext_SampledData_offsets(ctx, field) - case "data": - return ec.fieldContext_SampledData_data(ctx, field) + return ec.fieldContext_Range_extension(ctx, field) + case "high": + return ec.fieldContext_Range_high(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueBase64Binary(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueBase64Binary(ctx, field) +func (ec *executionContext) _TaskOutput_valueUri(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueUri(ctx, field) if err != nil { return graphql.Null } @@ -164857,7 +165090,7 @@ func (ec *executionContext) _TaskOutput_valueBase64Binary(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueBase64Binary, nil + return obj.ValueURI, nil }) if err != nil { ec.Error(ctx, err) @@ -164871,7 +165104,7 @@ func (ec *executionContext) _TaskOutput_valueBase64Binary(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueBase64Binary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -164884,8 +165117,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueBase64Binary(_ context. return fc, nil } -func (ec *executionContext) _TaskOutput_valueMeta(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueMeta(ctx, field) +func (ec *executionContext) _TaskOutput_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueCodeableConcept(ctx, field) if err != nil { return graphql.Null } @@ -164898,7 +165131,7 @@ func (ec *executionContext) _TaskOutput_valueMeta(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueMeta, nil + return obj.ValueCodeableConcept, nil }) if err != nil { ec.Error(ctx, err) @@ -164907,12 +165140,12 @@ func (ec *executionContext) _TaskOutput_valueMeta(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Meta) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueMeta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -164920,33 +165153,25 @@ func (ec *executionContext) fieldContext_TaskOutput_valueMeta(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) - case "lastUpdated": - return ec.fieldContext_Meta_lastUpdated(ctx, field) case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_Meta_extension(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_Meta_id(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueSignature(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueSignature(ctx, field) +func (ec *executionContext) _TaskOutput_valueContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueContactDetail(ctx, field) if err != nil { return graphql.Null } @@ -164959,7 +165184,7 @@ func (ec *executionContext) _TaskOutput_valueSignature(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueSignature, nil + return obj.ValueContactDetail, nil }) if err != nil { ec.Error(ctx, err) @@ -164968,37 +165193,38 @@ func (ec *executionContext) _TaskOutput_valueSignature(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]model.TaskOutputValueSignatureUnion) + res := resTmp.(*model.ContactDetail) fc.Result = res - return ec.marshalOTaskOutputValueSignatureUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueSignatureUnion(ctx, field.Selections, res) + return ec.marshalOContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactDetail(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueSignature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskOutputValueSignatureUnion does not have child fields") + switch field.Name { + case "extension": + return ec.fieldContext_ContactDetail_extension(ctx, field) + case "id": + return ec.fieldContext_ContactDetail_id(ctx, field) + case "name": + return ec.fieldContext_ContactDetail_name(ctx, field) + case "resourceType": + return ec.fieldContext_ContactDetail_resourceType(ctx, field) + case "telecom": + return ec.fieldContext_ContactDetail_telecom(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactDetail", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskOutput_valueSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TaskOutput_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueTime(ctx, field) +func (ec *executionContext) _TaskOutput_valueInstant(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueInstant(ctx, field) if err != nil { return graphql.Null } @@ -165011,7 +165237,7 @@ func (ec *executionContext) _TaskOutput_valueTime(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTime, nil + return obj.ValueInstant, nil }) if err != nil { ec.Error(ctx, err) @@ -165025,7 +165251,7 @@ func (ec *executionContext) _TaskOutput_valueTime(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueInstant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165038,8 +165264,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueTime(_ context.Context, return fc, nil } -func (ec *executionContext) _TaskOutput_valueDistance(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueDistance(ctx, field) +func (ec *executionContext) _TaskOutput_valueDuration(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueDuration(ctx, field) if err != nil { return graphql.Null } @@ -165052,7 +165278,7 @@ func (ec *executionContext) _TaskOutput_valueDistance(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDistance, nil + return obj.ValueDuration, nil }) if err != nil { ec.Error(ctx, err) @@ -165061,12 +165287,12 @@ func (ec *executionContext) _TaskOutput_valueDistance(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Distance) + res := resTmp.(*model.Duration) fc.Result = res - return ec.marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx, field.Selections, res) + return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueDistance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165074,31 +165300,31 @@ func (ec *executionContext) fieldContext_TaskOutput_valueDistance(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_Duration_id(ctx, field) case "resourceType": - return ec.fieldContext_Distance_resourceType(ctx, field) + return ec.fieldContext_Duration_resourceType(ctx, field) case "system": - return ec.fieldContext_Distance_system(ctx, field) + return ec.fieldContext_Duration_system(ctx, field) case "unit": - return ec.fieldContext_Distance_unit(ctx, field) + return ec.fieldContext_Duration_unit(ctx, field) case "value": - return ec.fieldContext_Distance_value(ctx, field) + return ec.fieldContext_Duration_value(ctx, field) case "code": - return ec.fieldContext_Distance_code(ctx, field) + return ec.fieldContext_Duration_code(ctx, field) case "comparator": - return ec.fieldContext_Distance_comparator(ctx, field) + return ec.fieldContext_Duration_comparator(ctx, field) case "extension": - return ec.fieldContext_Distance_extension(ctx, field) - case "id": - return ec.fieldContext_Distance_id(ctx, field) + return ec.fieldContext_Duration_extension(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Distance", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueDate(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueDate(ctx, field) +func (ec *executionContext) _TaskOutput_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_id(ctx, field) if err != nil { return graphql.Null } @@ -165111,7 +165337,7 @@ func (ec *executionContext) _TaskOutput_valueDate(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDate, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -165125,7 +165351,7 @@ func (ec *executionContext) _TaskOutput_valueDate(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165138,8 +165364,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueDate(_ context.Context, return fc, nil } -func (ec *executionContext) _TaskOutput_valueTiming(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueTiming(ctx, field) +func (ec *executionContext) _TaskOutput_valueTime(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueTime(ctx, field) if err != nil { return graphql.Null } @@ -165152,7 +165378,7 @@ func (ec *executionContext) _TaskOutput_valueTiming(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTiming, nil + return obj.ValueTime, nil }) if err != nil { ec.Error(ctx, err) @@ -165161,42 +165387,26 @@ func (ec *executionContext) _TaskOutput_valueTiming(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Timing) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "repeat": - return ec.fieldContext_Timing_repeat(ctx, field) - case "resourceType": - return ec.fieldContext_Timing_resourceType(ctx, field) - case "code": - return ec.fieldContext_Timing_code(ctx, field) - case "event": - return ec.fieldContext_Timing_event(ctx, field) - case "extension": - return ec.fieldContext_Timing_extension(ctx, field) - case "id": - return ec.fieldContext_Timing_id(ctx, field) - case "modifierExtension": - return ec.fieldContext_Timing_modifierExtension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueAnnotation(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueAnnotation(ctx, field) +func (ec *executionContext) _TaskOutput_valueMoney(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueMoney(ctx, field) if err != nil { return graphql.Null } @@ -165209,7 +165419,7 @@ func (ec *executionContext) _TaskOutput_valueAnnotation(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAnnotation, nil + return obj.ValueMoney, nil }) if err != nil { ec.Error(ctx, err) @@ -165218,37 +165428,93 @@ func (ec *executionContext) _TaskOutput_valueAnnotation(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]model.TaskOutputValueAnnotationUnion) + res := resTmp.(*model.Money) fc.Result = res - return ec.marshalOTaskOutputValueAnnotationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueAnnotationUnion(ctx, field.Selections, res) + return ec.marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueAnnotation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueMoney(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskOutputValueAnnotationUnion does not have child fields") + switch field.Name { + case "currency": + return ec.fieldContext_Money_currency(ctx, field) + case "extension": + return ec.fieldContext_Money_extension(ctx, field) + case "id": + return ec.fieldContext_Money_id(ctx, field) + case "resourceType": + return ec.fieldContext_Money_resourceType(ctx, field) + case "value": + return ec.fieldContext_Money_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Money", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) _TaskOutput_valueRatioRange(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueRatioRange(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskOutput_valueAnnotation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ValueRatioRange, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.RatioRange) + fc.Result = res + return ec.marshalORatioRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatioRange(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueRatioRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskOutput", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "resourceType": + return ec.fieldContext_RatioRange_resourceType(ctx, field) + case "denominator": + return ec.fieldContext_RatioRange_denominator(ctx, field) + case "extension": + return ec.fieldContext_RatioRange_extension(ctx, field) + case "highNumerator": + return ec.fieldContext_RatioRange_highNumerator(ctx, field) + case "id": + return ec.fieldContext_RatioRange_id(ctx, field) + case "lowNumerator": + return ec.fieldContext_RatioRange_lowNumerator(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RatioRange", field.Name) + }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueCanonical(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueCanonical(ctx, field) +func (ec *executionContext) _TaskOutput_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueInteger(ctx, field) if err != nil { return graphql.Null } @@ -165261,7 +165527,7 @@ func (ec *executionContext) _TaskOutput_valueCanonical(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCanonical, nil + return obj.ValueInteger, nil }) if err != nil { ec.Error(ctx, err) @@ -165275,7 +165541,7 @@ func (ec *executionContext) _TaskOutput_valueCanonical(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165288,8 +165554,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueCanonical(_ context.Con return fc, nil } -func (ec *executionContext) _TaskOutput_valueMarkdown(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueMarkdown(ctx, field) +func (ec *executionContext) _TaskOutput_valueDate(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueDate(ctx, field) if err != nil { return graphql.Null } @@ -165302,7 +165568,7 @@ func (ec *executionContext) _TaskOutput_valueMarkdown(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueMarkdown, nil + return obj.ValueDate, nil }) if err != nil { ec.Error(ctx, err) @@ -165316,7 +165582,7 @@ func (ec *executionContext) _TaskOutput_valueMarkdown(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueMarkdown(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165329,8 +165595,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueMarkdown(_ context.Cont return fc, nil } -func (ec *executionContext) _TaskOutput_valueUrl(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueUrl(ctx, field) +func (ec *executionContext) _TaskOutput_valueCount(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueCount(ctx, field) if err != nil { return graphql.Null } @@ -165343,7 +165609,7 @@ func (ec *executionContext) _TaskOutput_valueUrl(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueURL, nil + return obj.ValueCount, nil }) if err != nil { ec.Error(ctx, err) @@ -165352,26 +165618,44 @@ func (ec *executionContext) _TaskOutput_valueUrl(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Count) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCount2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCount(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Count_id(ctx, field) + case "resourceType": + return ec.fieldContext_Count_resourceType(ctx, field) + case "system": + return ec.fieldContext_Count_system(ctx, field) + case "unit": + return ec.fieldContext_Count_unit(ctx, field) + case "value": + return ec.fieldContext_Count_value(ctx, field) + case "code": + return ec.fieldContext_Count_code(ctx, field) + case "comparator": + return ec.fieldContext_Count_comparator(ctx, field) + case "extension": + return ec.fieldContext_Count_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Count", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueContactDetail(ctx, field) +func (ec *executionContext) _TaskOutput_valueCodeableReference(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueCodeableReference(ctx, field) if err != nil { return graphql.Null } @@ -165384,7 +165668,7 @@ func (ec *executionContext) _TaskOutput_valueContactDetail(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueContactDetail, nil + return obj.ValueCodeableReference, nil }) if err != nil { ec.Error(ctx, err) @@ -165393,12 +165677,12 @@ func (ec *executionContext) _TaskOutput_valueContactDetail(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ContactDetail) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactDetail(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueCodeableReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165406,25 +165690,23 @@ func (ec *executionContext) fieldContext_TaskOutput_valueContactDetail(_ context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "telecom": - return ec.fieldContext_ContactDetail_telecom(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_ContactDetail_extension(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_ContactDetail_id(ctx, field) - case "name": - return ec.fieldContext_ContactDetail_name(ctx, field) - case "resourceType": - return ec.fieldContext_ContactDetail_resourceType(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactDetail", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueCodeableConcept(ctx, field) +func (ec *executionContext) _TaskOutput_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueBoolean(ctx, field) if err != nil { return graphql.Null } @@ -165437,7 +165719,7 @@ func (ec *executionContext) _TaskOutput_valueCodeableConcept(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCodeableConcept, nil + return obj.ValueBoolean, nil }) if err != nil { ec.Error(ctx, err) @@ -165446,38 +165728,26 @@ func (ec *executionContext) _TaskOutput_valueCodeableConcept(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueCodeableConcept(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueUuid(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueUuid(ctx, field) +func (ec *executionContext) _TaskOutput_valuePositiveInt(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valuePositiveInt(ctx, field) if err != nil { return graphql.Null } @@ -165490,7 +165760,7 @@ func (ec *executionContext) _TaskOutput_valueUuid(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueUUID, nil + return obj.ValuePositiveInt, nil }) if err != nil { ec.Error(ctx, err) @@ -165504,7 +165774,7 @@ func (ec *executionContext) _TaskOutput_valueUuid(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueUuid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valuePositiveInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165517,8 +165787,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueUuid(_ context.Context, return fc, nil } -func (ec *executionContext) _TaskOutput_valueInstant(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueInstant(ctx, field) +func (ec *executionContext) _TaskOutput_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -165531,7 +165801,7 @@ func (ec *executionContext) _TaskOutput_valueInstant(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInstant, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -165545,7 +165815,7 @@ func (ec *executionContext) _TaskOutput_valueInstant(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueInstant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165558,8 +165828,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueInstant(_ context.Conte return fc, nil } -func (ec *executionContext) _TaskOutput_valueExpression(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueExpression(ctx, field) +func (ec *executionContext) _TaskOutput_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueDateTime(ctx, field) if err != nil { return graphql.Null } @@ -165572,7 +165842,7 @@ func (ec *executionContext) _TaskOutput_valueExpression(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueExpression, nil + return obj.ValueDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -165581,37 +165851,19 @@ func (ec *executionContext) _TaskOutput_valueExpression(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Expression) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueExpression(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "expression": - return ec.fieldContext_Expression_expression(ctx, field) - case "extension": - return ec.fieldContext_Expression_extension(ctx, field) - case "id": - return ec.fieldContext_Expression_id(ctx, field) - case "language": - return ec.fieldContext_Expression_language(ctx, field) - case "name": - return ec.fieldContext_Expression_name(ctx, field) - case "reference": - return ec.fieldContext_Expression_reference(ctx, field) - case "resourceType": - return ec.fieldContext_Expression_resourceType(ctx, field) - case "description": - return ec.fieldContext_Expression_description(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Expression", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -165658,8 +165910,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueUnsignedInt(_ context.C return fc, nil } -func (ec *executionContext) _TaskOutput_type(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_type(ctx, field) +func (ec *executionContext) _TaskOutput_valueAddress(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueAddress(ctx, field) if err != nil { return graphql.Null } @@ -165672,7 +165924,7 @@ func (ec *executionContext) _TaskOutput_type(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.ValueAddress, nil }) if err != nil { ec.Error(ctx, err) @@ -165681,12 +165933,12 @@ func (ec *executionContext) _TaskOutput_type(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*model.Address) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165694,25 +165946,41 @@ func (ec *executionContext) fieldContext_TaskOutput_type(_ context.Context, fiel IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "country": + return ec.fieldContext_Address_country(ctx, field) case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) + return ec.fieldContext_Address_extension(ctx, field) + case "use": + return ec.fieldContext_Address_use(ctx, field) + case "district": + return ec.fieldContext_Address_district(ctx, field) + case "period": + return ec.fieldContext_Address_period(ctx, field) case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + return ec.fieldContext_Address_resourceType(ctx, field) + case "text": + return ec.fieldContext_Address_text(ctx, field) + case "city": + return ec.fieldContext_Address_city(ctx, field) + case "postalCode": + return ec.fieldContext_Address_postalCode(ctx, field) + case "line": + return ec.fieldContext_Address_line(ctx, field) + case "state": + return ec.fieldContext_Address_state(ctx, field) + case "type": + return ec.fieldContext_Address_type(ctx, field) + case "id": + return ec.fieldContext_Address_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueParameterDefinition(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueParameterDefinition(ctx, field) +func (ec *executionContext) _TaskOutput_valueTriggerDefinition(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueTriggerDefinition(ctx, field) if err != nil { return graphql.Null } @@ -165725,7 +165993,7 @@ func (ec *executionContext) _TaskOutput_valueParameterDefinition(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueParameterDefinition, nil + return obj.ValueTriggerDefinition, nil }) if err != nil { ec.Error(ctx, err) @@ -165734,12 +166002,12 @@ func (ec *executionContext) _TaskOutput_valueParameterDefinition(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ParameterDefinition) + res := resTmp.(*model.TriggerDefinition) fc.Result = res - return ec.marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx, field.Selections, res) + return ec.marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueParameterDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueTriggerDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165747,35 +166015,39 @@ func (ec *executionContext) fieldContext_TaskOutput_valueParameterDefinition(_ c IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_ParameterDefinition_profile(ctx, field) - case "min": - return ec.fieldContext_ParameterDefinition_min(ctx, field) + case "data": + return ec.fieldContext_TriggerDefinition_data(ctx, field) + case "id": + return ec.fieldContext_TriggerDefinition_id(ctx, field) case "name": - return ec.fieldContext_ParameterDefinition_name(ctx, field) - case "type": - return ec.fieldContext_ParameterDefinition_type(ctx, field) - case "documentation": - return ec.fieldContext_ParameterDefinition_documentation(ctx, field) + return ec.fieldContext_TriggerDefinition_name(ctx, field) + case "code": + return ec.fieldContext_TriggerDefinition_code(ctx, field) + case "condition": + return ec.fieldContext_TriggerDefinition_condition(ctx, field) + case "timingTiming": + return ec.fieldContext_TriggerDefinition_timingTiming(ctx, field) + case "subscriptionTopic": + return ec.fieldContext_TriggerDefinition_subscriptionTopic(ctx, field) + case "timingDate": + return ec.fieldContext_TriggerDefinition_timingDate(ctx, field) + case "timingDateTime": + return ec.fieldContext_TriggerDefinition_timingDateTime(ctx, field) case "extension": - return ec.fieldContext_ParameterDefinition_extension(ctx, field) - case "id": - return ec.fieldContext_ParameterDefinition_id(ctx, field) - case "max": - return ec.fieldContext_ParameterDefinition_max(ctx, field) + return ec.fieldContext_TriggerDefinition_extension(ctx, field) case "resourceType": - return ec.fieldContext_ParameterDefinition_resourceType(ctx, field) - case "use": - return ec.fieldContext_ParameterDefinition_use(ctx, field) + return ec.fieldContext_TriggerDefinition_resourceType(ctx, field) + case "type": + return ec.fieldContext_TriggerDefinition_type(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ParameterDefinition", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TriggerDefinition", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueMoney(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueMoney(ctx, field) +func (ec *executionContext) _TaskOutput_valueDataRequirement(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueDataRequirement(ctx, field) if err != nil { return graphql.Null } @@ -165788,7 +166060,7 @@ func (ec *executionContext) _TaskOutput_valueMoney(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueMoney, nil + return obj.ValueDataRequirement, nil }) if err != nil { ec.Error(ctx, err) @@ -165797,12 +166069,12 @@ func (ec *executionContext) _TaskOutput_valueMoney(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Money) + res := resTmp.(*model.DataRequirement) fc.Result = res - return ec.marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx, field.Selections, res) + return ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueMoney(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueDataRequirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165810,25 +166082,41 @@ func (ec *executionContext) fieldContext_TaskOutput_valueMoney(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "currency": - return ec.fieldContext_Money_currency(ctx, field) - case "extension": - return ec.fieldContext_Money_extension(ctx, field) + case "type": + return ec.fieldContext_DataRequirement_type(ctx, field) + case "valueFilter": + return ec.fieldContext_DataRequirement_valueFilter(ctx, field) case "id": - return ec.fieldContext_Money_id(ctx, field) + return ec.fieldContext_DataRequirement_id(ctx, field) + case "profile": + return ec.fieldContext_DataRequirement_profile(ctx, field) + case "subjectReference": + return ec.fieldContext_DataRequirement_subjectReference(ctx, field) + case "codeFilter": + return ec.fieldContext_DataRequirement_codeFilter(ctx, field) + case "limit": + return ec.fieldContext_DataRequirement_limit(ctx, field) + case "subjectCodeableConcept": + return ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) + case "mustSupport": + return ec.fieldContext_DataRequirement_mustSupport(ctx, field) + case "extension": + return ec.fieldContext_DataRequirement_extension(ctx, field) case "resourceType": - return ec.fieldContext_Money_resourceType(ctx, field) - case "value": - return ec.fieldContext_Money_value(ctx, field) + return ec.fieldContext_DataRequirement_resourceType(ctx, field) + case "sort": + return ec.fieldContext_DataRequirement_sort(ctx, field) + case "dateFilter": + return ec.fieldContext_DataRequirement_dateFilter(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Money", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DataRequirement", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_extension(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_extension(ctx, field) +func (ec *executionContext) _TaskOutput_valueParameterDefinition(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueParameterDefinition(ctx, field) if err != nil { return graphql.Null } @@ -165841,7 +166129,7 @@ func (ec *executionContext) _TaskOutput_extension(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ValueParameterDefinition, nil }) if err != nil { ec.Error(ctx, err) @@ -165850,12 +166138,12 @@ func (ec *executionContext) _TaskOutput_extension(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.ParameterDefinition) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueParameterDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -165863,129 +166151,35 @@ func (ec *executionContext) fieldContext_TaskOutput_extension(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "max": + return ec.fieldContext_ParameterDefinition_max(ctx, field) + case "name": + return ec.fieldContext_ParameterDefinition_name(ctx, field) + case "documentation": + return ec.fieldContext_ParameterDefinition_documentation(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_ParameterDefinition_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_ParameterDefinition_resourceType(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_ParameterDefinition_extension(ctx, field) + case "profile": + return ec.fieldContext_ParameterDefinition_profile(ctx, field) + case "use": + return ec.fieldContext_ParameterDefinition_use(ctx, field) + case "min": + return ec.fieldContext_ParameterDefinition_min(ctx, field) + case "type": + return ec.fieldContext_ParameterDefinition_type(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ParameterDefinition", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueExtendedContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueExtendedContactDetail(ctx, field) +func (ec *executionContext) _TaskOutput_valueMeta(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueMeta(ctx, field) if err != nil { return graphql.Null } @@ -165998,7 +166192,7 @@ func (ec *executionContext) _TaskOutput_valueExtendedContactDetail(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueExtendedContactDetail, nil + return obj.ValueMeta, nil }) if err != nil { ec.Error(ctx, err) @@ -166007,12 +166201,12 @@ func (ec *executionContext) _TaskOutput_valueExtendedContactDetail(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ExtendedContactDetail) + res := resTmp.(*model.Meta) fc.Result = res - return ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueExtendedContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueMeta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166020,26 +166214,26 @@ func (ec *executionContext) fieldContext_TaskOutput_valueExtendedContactDetail(_ IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_ExtendedContactDetail_name(ctx, field) - case "organization": - return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) - case "purpose": - return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) + case "lastUpdated": + return ec.fieldContext_Meta_lastUpdated(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) + case "extension": + return ec.fieldContext_Meta_extension(ctx, field) case "resourceType": - return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) - case "telecom": - return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) - case "address": - return ec.fieldContext_ExtendedContactDetail_address(ctx, field) + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) case "id": - return ec.fieldContext_ExtendedContactDetail_id(ctx, field) - case "extension": - return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) - case "period": - return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, } return fc, nil @@ -166086,8 +166280,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueCode(_ context.Context, return fc, nil } -func (ec *executionContext) _TaskOutput_valueIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueIdentifier(ctx, field) +func (ec *executionContext) _TaskOutput_valueExpression(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueExpression(ctx, field) if err != nil { return graphql.Null } @@ -166100,7 +166294,7 @@ func (ec *executionContext) _TaskOutput_valueIdentifier(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueIdentifier, nil + return obj.ValueExpression, nil }) if err != nil { ec.Error(ctx, err) @@ -166109,12 +166303,12 @@ func (ec *executionContext) _TaskOutput_valueIdentifier(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Identifier) + res := resTmp.(*model.Expression) fc.Result = res - return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueExpression(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166122,33 +166316,31 @@ func (ec *executionContext) fieldContext_TaskOutput_valueIdentifier(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) + case "expression": + return ec.fieldContext_Expression_expression(ctx, field) case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + return ec.fieldContext_Expression_extension(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Expression_id(ctx, field) + case "language": + return ec.fieldContext_Expression_language(ctx, field) + case "name": + return ec.fieldContext_Expression_name(ctx, field) + case "reference": + return ec.fieldContext_Expression_reference(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Expression_resourceType(ctx, field) + case "description": + return ec.fieldContext_Expression_description(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Expression", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueHumanName(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueHumanName(ctx, field) +func (ec *executionContext) _TaskOutput_valueSampledData(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueSampledData(ctx, field) if err != nil { return graphql.Null } @@ -166161,7 +166353,7 @@ func (ec *executionContext) _TaskOutput_valueHumanName(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueHumanName, nil + return obj.ValueSampledData, nil }) if err != nil { ec.Error(ctx, err) @@ -166170,12 +166362,12 @@ func (ec *executionContext) _TaskOutput_valueHumanName(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*model.HumanName) + res := resTmp.(*model.SampledData) fc.Result = res - return ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) + return ec.marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueHumanName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueSampledData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166183,35 +166375,41 @@ func (ec *executionContext) fieldContext_TaskOutput_valueHumanName(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "suffix": - return ec.fieldContext_HumanName_suffix(ctx, field) - case "use": - return ec.fieldContext_HumanName_use(ctx, field) - case "family": - return ec.fieldContext_HumanName_family(ctx, field) - case "given": - return ec.fieldContext_HumanName_given(ctx, field) + case "intervalUnit": + return ec.fieldContext_SampledData_intervalUnit(ctx, field) + case "resourceType": + return ec.fieldContext_SampledData_resourceType(ctx, field) + case "lowerLimit": + return ec.fieldContext_SampledData_lowerLimit(ctx, field) + case "factor": + return ec.fieldContext_SampledData_factor(ctx, field) case "id": - return ec.fieldContext_HumanName_id(ctx, field) - case "prefix": - return ec.fieldContext_HumanName_prefix(ctx, field) + return ec.fieldContext_SampledData_id(ctx, field) case "extension": - return ec.fieldContext_HumanName_extension(ctx, field) - case "resourceType": - return ec.fieldContext_HumanName_resourceType(ctx, field) - case "period": - return ec.fieldContext_HumanName_period(ctx, field) - case "text": - return ec.fieldContext_HumanName_text(ctx, field) + return ec.fieldContext_SampledData_extension(ctx, field) + case "upperLimit": + return ec.fieldContext_SampledData_upperLimit(ctx, field) + case "dimensions": + return ec.fieldContext_SampledData_dimensions(ctx, field) + case "interval": + return ec.fieldContext_SampledData_interval(ctx, field) + case "offsets": + return ec.fieldContext_SampledData_offsets(ctx, field) + case "origin": + return ec.fieldContext_SampledData_origin(ctx, field) + case "codeMap": + return ec.fieldContext_SampledData_codeMap(ctx, field) + case "data": + return ec.fieldContext_SampledData_data(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SampledData", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueDuration(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueDuration(ctx, field) +func (ec *executionContext) _TaskOutput_valueMarkdown(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueMarkdown(ctx, field) if err != nil { return graphql.Null } @@ -166224,7 +166422,7 @@ func (ec *executionContext) _TaskOutput_valueDuration(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDuration, nil + return obj.ValueMarkdown, nil }) if err != nil { ec.Error(ctx, err) @@ -166233,44 +166431,26 @@ func (ec *executionContext) _TaskOutput_valueDuration(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Duration) + res := resTmp.(*string) fc.Result = res - return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueMarkdown(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) - case "extension": - return ec.fieldContext_Duration_extension(ctx, field) - case "id": - return ec.fieldContext_Duration_id(ctx, field) - case "resourceType": - return ec.fieldContext_Duration_resourceType(ctx, field) - case "system": - return ec.fieldContext_Duration_system(ctx, field) - case "unit": - return ec.fieldContext_Duration_unit(ctx, field) - case "value": - return ec.fieldContext_Duration_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueInteger64(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueInteger64(ctx, field) +func (ec *executionContext) _TaskOutput_valueDecimal(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueDecimal(ctx, field) if err != nil { return graphql.Null } @@ -166283,7 +166463,7 @@ func (ec *executionContext) _TaskOutput_valueInteger64(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInteger64, nil + return obj.ValueDecimal, nil }) if err != nil { ec.Error(ctx, err) @@ -166297,7 +166477,7 @@ func (ec *executionContext) _TaskOutput_valueInteger64(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueInteger64(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueDecimal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166310,8 +166490,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueInteger64(_ context.Con return fc, nil } -func (ec *executionContext) _TaskOutput_valueUri(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueUri(ctx, field) +func (ec *executionContext) _TaskOutput_valueUrl(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueUrl(ctx, field) if err != nil { return graphql.Null } @@ -166324,7 +166504,7 @@ func (ec *executionContext) _TaskOutput_valueUri(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueURI, nil + return obj.ValueURL, nil }) if err != nil { ec.Error(ctx, err) @@ -166338,7 +166518,7 @@ func (ec *executionContext) _TaskOutput_valueUri(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166351,8 +166531,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueUri(_ context.Context, return fc, nil } -func (ec *executionContext) _TaskOutput_valueContactPoint(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueContactPoint(ctx, field) +func (ec *executionContext) _TaskOutput_valueHumanName(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueHumanName(ctx, field) if err != nil { return graphql.Null } @@ -166365,7 +166545,7 @@ func (ec *executionContext) _TaskOutput_valueContactPoint(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueContactPoint, nil + return obj.ValueHumanName, nil }) if err != nil { ec.Error(ctx, err) @@ -166374,12 +166554,12 @@ func (ec *executionContext) _TaskOutput_valueContactPoint(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ContactPoint) + res := resTmp.(*model.HumanName) fc.Result = res - return ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) + return ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueContactPoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueHumanName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166387,31 +166567,35 @@ func (ec *executionContext) fieldContext_TaskOutput_valueContactPoint(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_ContactPoint_extension(ctx, field) - case "id": - return ec.fieldContext_ContactPoint_id(ctx, field) - case "period": - return ec.fieldContext_ContactPoint_period(ctx, field) - case "rank": - return ec.fieldContext_ContactPoint_rank(ctx, field) + case "given": + return ec.fieldContext_HumanName_given(ctx, field) case "resourceType": - return ec.fieldContext_ContactPoint_resourceType(ctx, field) - case "system": - return ec.fieldContext_ContactPoint_system(ctx, field) + return ec.fieldContext_HumanName_resourceType(ctx, field) case "use": - return ec.fieldContext_ContactPoint_use(ctx, field) - case "value": - return ec.fieldContext_ContactPoint_value(ctx, field) + return ec.fieldContext_HumanName_use(ctx, field) + case "family": + return ec.fieldContext_HumanName_family(ctx, field) + case "suffix": + return ec.fieldContext_HumanName_suffix(ctx, field) + case "id": + return ec.fieldContext_HumanName_id(ctx, field) + case "period": + return ec.fieldContext_HumanName_period(ctx, field) + case "prefix": + return ec.fieldContext_HumanName_prefix(ctx, field) + case "extension": + return ec.fieldContext_HumanName_extension(ctx, field) + case "text": + return ec.fieldContext_HumanName_text(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) + return nil, fmt.Errorf("no field named %q was found under type HumanName", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueCount(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueCount(ctx, field) +func (ec *executionContext) _TaskOutput_valueRelatedArtifact(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueRelatedArtifact(ctx, field) if err != nil { return graphql.Null } @@ -166424,7 +166608,7 @@ func (ec *executionContext) _TaskOutput_valueCount(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCount, nil + return obj.ValueRelatedArtifact, nil }) if err != nil { ec.Error(ctx, err) @@ -166433,12 +166617,12 @@ func (ec *executionContext) _TaskOutput_valueCount(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Count) + res := resTmp.(*model.RelatedArtifact) fc.Result = res - return ec.marshalOCount2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCount(ctx, field.Selections, res) + return ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueRelatedArtifact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166446,31 +166630,41 @@ func (ec *executionContext) fieldContext_TaskOutput_valueCount(_ context.Context IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "type": + return ec.fieldContext_RelatedArtifact_type(ctx, field) + case "resource": + return ec.fieldContext_RelatedArtifact_resource(ctx, field) + case "resourceReference": + return ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) case "extension": - return ec.fieldContext_Count_extension(ctx, field) + return ec.fieldContext_RelatedArtifact_extension(ctx, field) case "id": - return ec.fieldContext_Count_id(ctx, field) + return ec.fieldContext_RelatedArtifact_id(ctx, field) + case "label": + return ec.fieldContext_RelatedArtifact_label(ctx, field) + case "document": + return ec.fieldContext_RelatedArtifact_document(ctx, field) + case "publicationStatus": + return ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) case "resourceType": - return ec.fieldContext_Count_resourceType(ctx, field) - case "system": - return ec.fieldContext_Count_system(ctx, field) - case "unit": - return ec.fieldContext_Count_unit(ctx, field) - case "value": - return ec.fieldContext_Count_value(ctx, field) - case "code": - return ec.fieldContext_Count_code(ctx, field) - case "comparator": - return ec.fieldContext_Count_comparator(ctx, field) + return ec.fieldContext_RelatedArtifact_resourceType(ctx, field) + case "classifier": + return ec.fieldContext_RelatedArtifact_classifier(ctx, field) + case "publicationDate": + return ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) + case "citation": + return ec.fieldContext_RelatedArtifact_citation(ctx, field) + case "display": + return ec.fieldContext_RelatedArtifact_display(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Count", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RelatedArtifact", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueCodeableReference(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueCodeableReference(ctx, field) +func (ec *executionContext) _TaskOutput_valueInteger64(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueInteger64(ctx, field) if err != nil { return graphql.Null } @@ -166483,7 +166677,7 @@ func (ec *executionContext) _TaskOutput_valueCodeableReference(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCodeableReference, nil + return obj.ValueInteger64, nil }) if err != nil { ec.Error(ctx, err) @@ -166492,36 +166686,26 @@ func (ec *executionContext) _TaskOutput_valueCodeableReference(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueCodeableReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueInteger64(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueRelatedArtifact(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueRelatedArtifact(ctx, field) +func (ec *executionContext) _TaskOutput_valueAnnotation(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueAnnotation(ctx, field) if err != nil { return graphql.Null } @@ -166534,63 +166718,49 @@ func (ec *executionContext) _TaskOutput_valueRelatedArtifact(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRelatedArtifact, nil + return obj.ValueAnnotation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.RelatedArtifact) + res := resTmp.(model.TaskOutputValueAnnotationUnion) fc.Result = res - return ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) + return ec.marshalNTaskOutputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueAnnotationUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueRelatedArtifact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueAnnotation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "display": - return ec.fieldContext_RelatedArtifact_display(ctx, field) - case "publicationDate": - return ec.fieldContext_RelatedArtifact_publicationDate(ctx, field) - case "publicationStatus": - return ec.fieldContext_RelatedArtifact_publicationStatus(ctx, field) - case "classifier": - return ec.fieldContext_RelatedArtifact_classifier(ctx, field) - case "document": - return ec.fieldContext_RelatedArtifact_document(ctx, field) - case "resourceReference": - return ec.fieldContext_RelatedArtifact_resourceReference(ctx, field) - case "extension": - return ec.fieldContext_RelatedArtifact_extension(ctx, field) - case "id": - return ec.fieldContext_RelatedArtifact_id(ctx, field) - case "label": - return ec.fieldContext_RelatedArtifact_label(ctx, field) - case "citation": - return ec.fieldContext_RelatedArtifact_citation(ctx, field) - case "resource": - return ec.fieldContext_RelatedArtifact_resource(ctx, field) - case "type": - return ec.fieldContext_RelatedArtifact_type(ctx, field) - case "resourceType": - return ec.fieldContext_RelatedArtifact_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RelatedArtifact", field.Name) + return nil, errors.New("field of type TaskOutputValueAnnotationUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskOutput_valueAnnotation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TaskOutput_valueId(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueId(ctx, field) +func (ec *executionContext) _TaskOutput_valueUsageContext(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueUsageContext(ctx, field) if err != nil { return graphql.Null } @@ -166603,30 +166773,44 @@ func (ec *executionContext) _TaskOutput_valueId(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueID, nil + return obj.ValueUsageContext, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.TaskOutputValueUsageContextUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNTaskOutputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueUsageContextUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueUsageContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type TaskOutputValueUsageContextUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskOutput_valueUsageContext_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } @@ -166666,42 +166850,42 @@ func (ec *executionContext) fieldContext_TaskOutput_valueDosage(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "asNeededFor": - return ec.fieldContext_Dosage_asNeededFor(ctx, field) case "doseAndRate": return ec.fieldContext_Dosage_doseAndRate(ctx, field) + case "additionalInstruction": + return ec.fieldContext_Dosage_additionalInstruction(ctx, field) case "route": return ec.fieldContext_Dosage_route(ctx, field) - case "method": - return ec.fieldContext_Dosage_method(ctx, field) + case "timing": + return ec.fieldContext_Dosage_timing(ctx, field) + case "id": + return ec.fieldContext_Dosage_id(ctx, field) case "modifierExtension": return ec.fieldContext_Dosage_modifierExtension(ctx, field) - case "patientInstruction": - return ec.fieldContext_Dosage_patientInstruction(ctx, field) + case "resourceType": + return ec.fieldContext_Dosage_resourceType(ctx, field) case "text": return ec.fieldContext_Dosage_text(ctx, field) - case "extension": - return ec.fieldContext_Dosage_extension(ctx, field) + case "sequence": + return ec.fieldContext_Dosage_sequence(ctx, field) + case "asNeeded": + return ec.fieldContext_Dosage_asNeeded(ctx, field) case "site": return ec.fieldContext_Dosage_site(ctx, field) - case "maxDosePerAdministration": - return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) + case "extension": + return ec.fieldContext_Dosage_extension(ctx, field) + case "patientInstruction": + return ec.fieldContext_Dosage_patientInstruction(ctx, field) + case "asNeededFor": + return ec.fieldContext_Dosage_asNeededFor(ctx, field) case "maxDosePerLifetime": return ec.fieldContext_Dosage_maxDosePerLifetime(ctx, field) - case "resourceType": - return ec.fieldContext_Dosage_resourceType(ctx, field) - case "additionalInstruction": - return ec.fieldContext_Dosage_additionalInstruction(ctx, field) - case "asNeeded": - return ec.fieldContext_Dosage_asNeeded(ctx, field) - case "timing": - return ec.fieldContext_Dosage_timing(ctx, field) - case "id": - return ec.fieldContext_Dosage_id(ctx, field) - case "sequence": - return ec.fieldContext_Dosage_sequence(ctx, field) + case "method": + return ec.fieldContext_Dosage_method(ctx, field) case "maxDosePerPeriod": return ec.fieldContext_Dosage_maxDosePerPeriod(ctx, field) + case "maxDosePerAdministration": + return ec.fieldContext_Dosage_maxDosePerAdministration(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Dosage", field.Name) }, @@ -166709,8 +166893,8 @@ func (ec *executionContext) fieldContext_TaskOutput_valueDosage(_ context.Contex return fc, nil } -func (ec *executionContext) _TaskOutput_valueBoolean(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueBoolean(ctx, field) +func (ec *executionContext) _TaskOutput_valueDistance(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueDistance(ctx, field) if err != nil { return graphql.Null } @@ -166723,7 +166907,7 @@ func (ec *executionContext) _TaskOutput_valueBoolean(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueBoolean, nil + return obj.ValueDistance, nil }) if err != nil { ec.Error(ctx, err) @@ -166732,26 +166916,44 @@ func (ec *executionContext) _TaskOutput_valueBoolean(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Distance) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueBoolean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueDistance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "comparator": + return ec.fieldContext_Distance_comparator(ctx, field) + case "extension": + return ec.fieldContext_Distance_extension(ctx, field) + case "id": + return ec.fieldContext_Distance_id(ctx, field) + case "resourceType": + return ec.fieldContext_Distance_resourceType(ctx, field) + case "system": + return ec.fieldContext_Distance_system(ctx, field) + case "unit": + return ec.fieldContext_Distance_unit(ctx, field) + case "value": + return ec.fieldContext_Distance_value(ctx, field) + case "code": + return ec.fieldContext_Distance_code(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Distance", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueAttachment(ctx, field) +func (ec *executionContext) _TaskOutput_valueAge(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueAge(ctx, field) if err != nil { return graphql.Null } @@ -166764,7 +166966,7 @@ func (ec *executionContext) _TaskOutput_valueAttachment(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAttachment, nil + return obj.ValueAge, nil }) if err != nil { ec.Error(ctx, err) @@ -166773,12 +166975,12 @@ func (ec *executionContext) _TaskOutput_valueAttachment(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Attachment) + res := resTmp.(*model.Age) fc.Result = res - return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) + return ec.marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueAge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166786,47 +166988,31 @@ func (ec *executionContext) fieldContext_TaskOutput_valueAttachment(_ context.Co IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "width": - return ec.fieldContext_Attachment_width(ctx, field) - case "pages": - return ec.fieldContext_Attachment_pages(ctx, field) + case "unit": + return ec.fieldContext_Age_unit(ctx, field) + case "value": + return ec.fieldContext_Age_value(ctx, field) + case "code": + return ec.fieldContext_Age_code(ctx, field) + case "comparator": + return ec.fieldContext_Age_comparator(ctx, field) case "extension": - return ec.fieldContext_Attachment_extension(ctx, field) - case "data": - return ec.fieldContext_Attachment_data(ctx, field) - case "size": - return ec.fieldContext_Attachment_size(ctx, field) - case "duration": - return ec.fieldContext_Attachment_duration(ctx, field) - case "title": - return ec.fieldContext_Attachment_title(ctx, field) - case "creation": - return ec.fieldContext_Attachment_creation(ctx, field) - case "height": - return ec.fieldContext_Attachment_height(ctx, field) - case "frames": - return ec.fieldContext_Attachment_frames(ctx, field) - case "hash": - return ec.fieldContext_Attachment_hash(ctx, field) - case "url": - return ec.fieldContext_Attachment_url(ctx, field) - case "resourceType": - return ec.fieldContext_Attachment_resourceType(ctx, field) + return ec.fieldContext_Age_extension(ctx, field) case "id": - return ec.fieldContext_Attachment_id(ctx, field) - case "contentType": - return ec.fieldContext_Attachment_contentType(ctx, field) - case "language": - return ec.fieldContext_Attachment_language(ctx, field) + return ec.fieldContext_Age_id(ctx, field) + case "resourceType": + return ec.fieldContext_Age_resourceType(ctx, field) + case "system": + return ec.fieldContext_Age_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Age", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueTriggerDefinition(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueTriggerDefinition(ctx, field) +func (ec *executionContext) _TaskOutput_valueRatio(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueRatio(ctx, field) if err != nil { return graphql.Null } @@ -166839,7 +167025,7 @@ func (ec *executionContext) _TaskOutput_valueTriggerDefinition(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueTriggerDefinition, nil + return obj.ValueRatio, nil }) if err != nil { ec.Error(ctx, err) @@ -166848,12 +167034,12 @@ func (ec *executionContext) _TaskOutput_valueTriggerDefinition(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.TriggerDefinition) + res := resTmp.(*model.Ratio) fc.Result = res - return ec.marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx, field.Selections, res) + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueTriggerDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueRatio(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166861,39 +167047,25 @@ func (ec *executionContext) fieldContext_TaskOutput_valueTriggerDefinition(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "condition": - return ec.fieldContext_TriggerDefinition_condition(ctx, field) - case "name": - return ec.fieldContext_TriggerDefinition_name(ctx, field) - case "data": - return ec.fieldContext_TriggerDefinition_data(ctx, field) + case "denominator": + return ec.fieldContext_Ratio_denominator(ctx, field) case "extension": - return ec.fieldContext_TriggerDefinition_extension(ctx, field) + return ec.fieldContext_Ratio_extension(ctx, field) case "id": - return ec.fieldContext_TriggerDefinition_id(ctx, field) - case "timingTiming": - return ec.fieldContext_TriggerDefinition_timingTiming(ctx, field) - case "code": - return ec.fieldContext_TriggerDefinition_code(ctx, field) - case "timingDateTime": - return ec.fieldContext_TriggerDefinition_timingDateTime(ctx, field) - case "type": - return ec.fieldContext_TriggerDefinition_type(ctx, field) + return ec.fieldContext_Ratio_id(ctx, field) + case "numerator": + return ec.fieldContext_Ratio_numerator(ctx, field) case "resourceType": - return ec.fieldContext_TriggerDefinition_resourceType(ctx, field) - case "timingDate": - return ec.fieldContext_TriggerDefinition_timingDate(ctx, field) - case "subscriptionTopic": - return ec.fieldContext_TriggerDefinition_subscriptionTopic(ctx, field) + return ec.fieldContext_Ratio_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TriggerDefinition", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Ratio", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_resourceType(ctx, field) +func (ec *executionContext) _TaskOutput_valueOid(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueOid(ctx, field) if err != nil { return graphql.Null } @@ -166906,7 +167078,7 @@ func (ec *executionContext) _TaskOutput_resourceType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ValueOid, nil }) if err != nil { ec.Error(ctx, err) @@ -166920,7 +167092,7 @@ func (ec *executionContext) _TaskOutput_resourceType(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueOid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -166933,8 +167105,8 @@ func (ec *executionContext) fieldContext_TaskOutput_resourceType(_ context.Conte return fc, nil } -func (ec *executionContext) _TaskOutput_valuePositiveInt(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valuePositiveInt(ctx, field) +func (ec *executionContext) _TaskOutput_valueExtendedContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueExtendedContactDetail(ctx, field) if err != nil { return graphql.Null } @@ -166947,7 +167119,7 @@ func (ec *executionContext) _TaskOutput_valuePositiveInt(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValuePositiveInt, nil + return obj.ValueExtendedContactDetail, nil }) if err != nil { ec.Error(ctx, err) @@ -166956,26 +167128,46 @@ func (ec *executionContext) _TaskOutput_valuePositiveInt(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ExtendedContactDetail) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valuePositiveInt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueExtendedContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "period": + return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + case "telecom": + return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) + case "address": + return ec.fieldContext_ExtendedContactDetail_address(ctx, field) + case "organization": + return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) + case "purpose": + return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) + case "resourceType": + return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) + case "name": + return ec.fieldContext_ExtendedContactDetail_name(ctx, field) + case "extension": + return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) + case "id": + return ec.fieldContext_ExtendedContactDetail_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueRange(ctx, field) +func (ec *executionContext) _TaskOutput_valueBase64Binary(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueBase64Binary(ctx, field) if err != nil { return graphql.Null } @@ -166988,7 +167180,7 @@ func (ec *executionContext) _TaskOutput_valueRange(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRange, nil + return obj.ValueBase64Binary, nil }) if err != nil { ec.Error(ctx, err) @@ -166997,38 +167189,26 @@ func (ec *executionContext) _TaskOutput_valueRange(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Range) + res := resTmp.(*string) fc.Result = res - return ec.marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueBase64Binary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_Range_resourceType(ctx, field) - case "extension": - return ec.fieldContext_Range_extension(ctx, field) - case "high": - return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueAddress(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueAddress(ctx, field) +func (ec *executionContext) _TaskOutput_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -167041,7 +167221,7 @@ func (ec *executionContext) _TaskOutput_valueAddress(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAddress, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -167050,12 +167230,12 @@ func (ec *executionContext) _TaskOutput_valueAddress(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Address) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -167063,41 +167243,129 @@ func (ec *executionContext) fieldContext_TaskOutput_valueAddress(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "text": - return ec.fieldContext_Address_text(ctx, field) - case "use": - return ec.fieldContext_Address_use(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Address_id(ctx, field) - case "line": - return ec.fieldContext_Address_line(ctx, field) - case "country": - return ec.fieldContext_Address_country(ctx, field) - case "postalCode": - return ec.fieldContext_Address_postalCode(ctx, field) - case "state": - return ec.fieldContext_Address_state(ctx, field) - case "city": - return ec.fieldContext_Address_city(ctx, field) - case "district": - return ec.fieldContext_Address_district(ctx, field) - case "period": - return ec.fieldContext_Address_period(ctx, field) - case "resourceType": - return ec.fieldContext_Address_resourceType(ctx, field) - case "type": - return ec.fieldContext_Address_type(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_Address_extension(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Address", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueInteger(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueInteger(ctx, field) +func (ec *executionContext) _TaskOutput_valueContactPoint(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueContactPoint(ctx, field) if err != nil { return graphql.Null } @@ -167110,7 +167378,7 @@ func (ec *executionContext) _TaskOutput_valueInteger(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueInteger, nil + return obj.ValueContactPoint, nil }) if err != nil { ec.Error(ctx, err) @@ -167119,26 +167387,44 @@ func (ec *executionContext) _TaskOutput_valueInteger(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ContactPoint) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueInteger(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueContactPoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_ContactPoint_resourceType(ctx, field) + case "system": + return ec.fieldContext_ContactPoint_system(ctx, field) + case "use": + return ec.fieldContext_ContactPoint_use(ctx, field) + case "value": + return ec.fieldContext_ContactPoint_value(ctx, field) + case "extension": + return ec.fieldContext_ContactPoint_extension(ctx, field) + case "id": + return ec.fieldContext_ContactPoint_id(ctx, field) + case "period": + return ec.fieldContext_ContactPoint_period(ctx, field) + case "rank": + return ec.fieldContext_ContactPoint_rank(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueAvailability(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueAvailability(ctx, field) +func (ec *executionContext) _TaskOutput_valueSignature(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueSignature(ctx, field) if err != nil { return graphql.Null } @@ -167151,47 +167437,49 @@ func (ec *executionContext) _TaskOutput_valueAvailability(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueAvailability, nil + return obj.ValueSignature, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.Availability) + res := resTmp.(model.TaskOutputValueSignatureUnion) fc.Result = res - return ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) + return ec.marshalNTaskOutputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueSignatureUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueAvailability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueSignature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "availableTime": - return ec.fieldContext_Availability_availableTime(ctx, field) - case "extension": - return ec.fieldContext_Availability_extension(ctx, field) - case "id": - return ec.fieldContext_Availability_id(ctx, field) - case "notAvailableTime": - return ec.fieldContext_Availability_notAvailableTime(ctx, field) - case "resourceType": - return ec.fieldContext_Availability_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Availability", field.Name) + return nil, errors.New("field of type TaskOutputValueSignatureUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskOutput_valueSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TaskOutput_valueUsageContext(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueUsageContext(ctx, field) +func (ec *executionContext) _TaskOutput_valueAvailability(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueAvailability(ctx, field) if err != nil { return graphql.Null } @@ -167204,7 +167492,7 @@ func (ec *executionContext) _TaskOutput_valueUsageContext(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueUsageContext, nil + return obj.ValueAvailability, nil }) if err != nil { ec.Error(ctx, err) @@ -167213,37 +167501,38 @@ func (ec *executionContext) _TaskOutput_valueUsageContext(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]model.TaskOutputValueUsageContextUnion) + res := resTmp.(*model.Availability) fc.Result = res - return ec.marshalOTaskOutputValueUsageContextUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueUsageContextUnion(ctx, field.Selections, res) + return ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueUsageContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueAvailability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskOutputValueUsageContextUnion does not have child fields") + switch field.Name { + case "notAvailableTime": + return ec.fieldContext_Availability_notAvailableTime(ctx, field) + case "resourceType": + return ec.fieldContext_Availability_resourceType(ctx, field) + case "availableTime": + return ec.fieldContext_Availability_availableTime(ctx, field) + case "extension": + return ec.fieldContext_Availability_extension(ctx, field) + case "id": + return ec.fieldContext_Availability_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Availability", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskOutput_valueUsageContext_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TaskOutput_valueDateTime(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueDateTime(ctx, field) +func (ec *executionContext) _TaskOutput_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valuePeriod(ctx, field) if err != nil { return graphql.Null } @@ -167256,7 +167545,7 @@ func (ec *executionContext) _TaskOutput_valueDateTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDateTime, nil + return obj.ValuePeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -167265,26 +167554,38 @@ func (ec *executionContext) _TaskOutput_valueDateTime(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valuePeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueDataRequirement(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueDataRequirement(ctx, field) +func (ec *executionContext) _TaskOutput_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueQuantity(ctx, field) if err != nil { return graphql.Null } @@ -167297,7 +167598,7 @@ func (ec *executionContext) _TaskOutput_valueDataRequirement(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDataRequirement, nil + return obj.ValueQuantity, nil }) if err != nil { ec.Error(ctx, err) @@ -167306,12 +167607,12 @@ func (ec *executionContext) _TaskOutput_valueDataRequirement(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.DataRequirement) + res := resTmp.(*model.Quantity) fc.Result = res - return ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) + return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueDataRequirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -167319,41 +167620,31 @@ func (ec *executionContext) fieldContext_TaskOutput_valueDataRequirement(_ conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_DataRequirement_type(ctx, field) - case "valueFilter": - return ec.fieldContext_DataRequirement_valueFilter(ctx, field) - case "dateFilter": - return ec.fieldContext_DataRequirement_dateFilter(ctx, field) - case "limit": - return ec.fieldContext_DataRequirement_limit(ctx, field) - case "subjectCodeableConcept": - return ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) + case "code": + return ec.fieldContext_Quantity_code(ctx, field) + case "comparator": + return ec.fieldContext_Quantity_comparator(ctx, field) case "extension": - return ec.fieldContext_DataRequirement_extension(ctx, field) - case "mustSupport": - return ec.fieldContext_DataRequirement_mustSupport(ctx, field) - case "sort": - return ec.fieldContext_DataRequirement_sort(ctx, field) + return ec.fieldContext_Quantity_extension(ctx, field) case "id": - return ec.fieldContext_DataRequirement_id(ctx, field) - case "profile": - return ec.fieldContext_DataRequirement_profile(ctx, field) - case "subjectReference": - return ec.fieldContext_DataRequirement_subjectReference(ctx, field) + return ec.fieldContext_Quantity_id(ctx, field) case "resourceType": - return ec.fieldContext_DataRequirement_resourceType(ctx, field) - case "codeFilter": - return ec.fieldContext_DataRequirement_codeFilter(ctx, field) + return ec.fieldContext_Quantity_resourceType(ctx, field) + case "system": + return ec.fieldContext_Quantity_system(ctx, field) + case "unit": + return ec.fieldContext_Quantity_unit(ctx, field) + case "value": + return ec.fieldContext_Quantity_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DataRequirement", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_modifierExtension(ctx, field) +func (ec *executionContext) _TaskOutput_valueCoding(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueCoding(ctx, field) if err != nil { return graphql.Null } @@ -167366,7 +167657,7 @@ func (ec *executionContext) _TaskOutput_modifierExtension(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ValueCoding, nil }) if err != nil { ec.Error(ctx, err) @@ -167375,12 +167666,12 @@ func (ec *executionContext) _TaskOutput_modifierExtension(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Coding) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueCoding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -167388,129 +167679,31 @@ func (ec *executionContext) fieldContext_TaskOutput_modifierExtension(_ context. IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "userSelected": + return ec.fieldContext_Coding_userSelected(ctx, field) + case "version": + return ec.fieldContext_Coding_version(ctx, field) + case "code": + return ec.fieldContext_Coding_code(ctx, field) + case "display": + return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Coding_id(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueCoding(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueCoding(ctx, field) +func (ec *executionContext) _TaskOutput_valueTiming(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueTiming(ctx, field) if err != nil { return graphql.Null } @@ -167523,7 +167716,7 @@ func (ec *executionContext) _TaskOutput_valueCoding(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueCoding, nil + return obj.ValueTiming, nil }) if err != nil { ec.Error(ctx, err) @@ -167532,12 +167725,12 @@ func (ec *executionContext) _TaskOutput_valueCoding(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Coding) + res := resTmp.(*model.Timing) fc.Result = res - return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) + return ec.marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueCoding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueTiming(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -167545,31 +167738,29 @@ func (ec *executionContext) fieldContext_TaskOutput_valueCoding(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "code": + return ec.fieldContext_Timing_code(ctx, field) + case "event": + return ec.fieldContext_Timing_event(ctx, field) case "extension": - return ec.fieldContext_Coding_extension(ctx, field) + return ec.fieldContext_Timing_extension(ctx, field) case "id": - return ec.fieldContext_Coding_id(ctx, field) + return ec.fieldContext_Timing_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_Timing_modifierExtension(ctx, field) + case "repeat": + return ec.fieldContext_Timing_repeat(ctx, field) case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) - case "userSelected": - return ec.fieldContext_Coding_userSelected(ctx, field) - case "version": - return ec.fieldContext_Coding_version(ctx, field) - case "code": - return ec.fieldContext_Coding_code(ctx, field) - case "display": - return ec.fieldContext_Coding_display(ctx, field) + return ec.fieldContext_Timing_resourceType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueRatioRange(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueRatioRange(ctx, field) +func (ec *executionContext) _TaskOutput_valueCanonical(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueCanonical(ctx, field) if err != nil { return graphql.Null } @@ -167582,7 +167773,7 @@ func (ec *executionContext) _TaskOutput_valueRatioRange(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueRatioRange, nil + return obj.ValueCanonical, nil }) if err != nil { ec.Error(ctx, err) @@ -167591,40 +167782,26 @@ func (ec *executionContext) _TaskOutput_valueRatioRange(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.RatioRange) + res := resTmp.(*string) fc.Result = res - return ec.marshalORatioRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatioRange(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueRatioRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "resourceType": - return ec.fieldContext_RatioRange_resourceType(ctx, field) - case "denominator": - return ec.fieldContext_RatioRange_denominator(ctx, field) - case "extension": - return ec.fieldContext_RatioRange_extension(ctx, field) - case "highNumerator": - return ec.fieldContext_RatioRange_highNumerator(ctx, field) - case "id": - return ec.fieldContext_RatioRange_id(ctx, field) - case "lowNumerator": - return ec.fieldContext_RatioRange_lowNumerator(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RatioRange", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueDecimal(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueDecimal(ctx, field) +func (ec *executionContext) _TaskOutput_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueAttachment(ctx, field) if err != nil { return graphql.Null } @@ -167637,7 +167814,7 @@ func (ec *executionContext) _TaskOutput_valueDecimal(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueDecimal, nil + return obj.ValueAttachment, nil }) if err != nil { ec.Error(ctx, err) @@ -167646,26 +167823,60 @@ func (ec *executionContext) _TaskOutput_valueDecimal(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Attachment) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueDecimal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueAttachment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "frames": + return ec.fieldContext_Attachment_frames(ctx, field) + case "size": + return ec.fieldContext_Attachment_size(ctx, field) + case "title": + return ec.fieldContext_Attachment_title(ctx, field) + case "creation": + return ec.fieldContext_Attachment_creation(ctx, field) + case "height": + return ec.fieldContext_Attachment_height(ctx, field) + case "data": + return ec.fieldContext_Attachment_data(ctx, field) + case "language": + return ec.fieldContext_Attachment_language(ctx, field) + case "hash": + return ec.fieldContext_Attachment_hash(ctx, field) + case "resourceType": + return ec.fieldContext_Attachment_resourceType(ctx, field) + case "extension": + return ec.fieldContext_Attachment_extension(ctx, field) + case "pages": + return ec.fieldContext_Attachment_pages(ctx, field) + case "duration": + return ec.fieldContext_Attachment_duration(ctx, field) + case "contentType": + return ec.fieldContext_Attachment_contentType(ctx, field) + case "id": + return ec.fieldContext_Attachment_id(ctx, field) + case "url": + return ec.fieldContext_Attachment_url(ctx, field) + case "width": + return ec.fieldContext_Attachment_width(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Attachment", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskOutput_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskOutput_valueQuantity(ctx, field) +func (ec *executionContext) _TaskOutput_extension(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_extension(ctx, field) if err != nil { return graphql.Null } @@ -167678,7 +167889,7 @@ func (ec *executionContext) _TaskOutput_valueQuantity(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ValueQuantity, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -167687,12 +167898,12 @@ func (ec *executionContext) _TaskOutput_valueQuantity(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Quantity) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskOutput_valueQuantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskOutput", Field: field, @@ -167700,31 +167911,129 @@ func (ec *executionContext) fieldContext_TaskOutput_valueQuantity(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "code": - return ec.fieldContext_Quantity_code(ctx, field) - case "comparator": - return ec.fieldContext_Quantity_comparator(ctx, field) - case "extension": - return ec.fieldContext_Quantity_extension(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Quantity_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Quantity_resourceType(ctx, field) - case "system": - return ec.fieldContext_Quantity_system(ctx, field) - case "unit": - return ec.fieldContext_Quantity_unit(ctx, field) - case "value": - return ec.fieldContext_Quantity_value(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Quantity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskPerformer_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskPerformer_id(ctx, field) +func (ec *executionContext) _TaskOutput_valueString(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueString(ctx, field) if err != nil { return graphql.Null } @@ -167737,7 +168046,7 @@ func (ec *executionContext) _TaskPerformer_id(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ValueString, nil }) if err != nil { ec.Error(ctx, err) @@ -167751,9 +168060,9 @@ func (ec *executionContext) _TaskPerformer_id(ctx context.Context, field graphql return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskPerformer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskPerformer", + Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, @@ -167764,8 +168073,8 @@ func (ec *executionContext) fieldContext_TaskPerformer_id(_ context.Context, fie return fc, nil } -func (ec *executionContext) _TaskPerformer_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskPerformer_modifierExtension(ctx, field) +func (ec *executionContext) _TaskOutput_valueUuid(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueUuid(ctx, field) if err != nil { return graphql.Null } @@ -167778,7 +168087,7 @@ func (ec *executionContext) _TaskPerformer_modifierExtension(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.ValueUUID, nil }) if err != nil { ec.Error(ctx, err) @@ -167787,142 +168096,26 @@ func (ec *executionContext) _TaskPerformer_modifierExtension(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskPerformer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueUuid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskPerformer", + Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskPerformer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskPerformer) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskPerformer_resourceType(ctx, field) +func (ec *executionContext) _TaskOutput_valueId(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueId(ctx, field) if err != nil { return graphql.Null } @@ -167935,7 +168128,7 @@ func (ec *executionContext) _TaskPerformer_resourceType(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ValueID, nil }) if err != nil { ec.Error(ctx, err) @@ -167949,9 +168142,9 @@ func (ec *executionContext) _TaskPerformer_resourceType(ctx context.Context, fie return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskPerformer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskOutput_valueId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskPerformer", + Object: "TaskOutput", Field: field, IsMethod: false, IsResolver: false, @@ -167983,11 +168176,14 @@ func (ec *executionContext) _TaskPerformer_actor(ctx context.Context, field grap return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.TaskPerformerActorUnion) + res := resTmp.(model.TaskPerformerActorUnion) fc.Result = res - return ec.marshalOTaskPerformerActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerActorUnion(ctx, field.Selections, res) + return ec.marshalNTaskPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerActorUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_TaskPerformer_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -168050,120 +168246,120 @@ func (ec *executionContext) fieldContext_TaskPerformer_extension(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -168207,6 +168403,8 @@ func (ec *executionContext) fieldContext_TaskPerformer_function(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -168215,8 +168413,6 @@ func (ec *executionContext) fieldContext_TaskPerformer_function(_ context.Contex return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -168224,8 +168420,8 @@ func (ec *executionContext) fieldContext_TaskPerformer_function(_ context.Contex return fc, nil } -func (ec *executionContext) _TaskRestriction_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskRestriction_resourceType(ctx, field) +func (ec *executionContext) _TaskPerformer_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskPerformer_id(ctx, field) if err != nil { return graphql.Null } @@ -168238,7 +168434,7 @@ func (ec *executionContext) _TaskRestriction_resourceType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -168252,9 +168448,9 @@ func (ec *executionContext) _TaskRestriction_resourceType(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskRestriction_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskPerformer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskRestriction", + Object: "TaskPerformer", Field: field, IsMethod: false, IsResolver: false, @@ -168265,8 +168461,8 @@ func (ec *executionContext) fieldContext_TaskRestriction_resourceType(_ context. return fc, nil } -func (ec *executionContext) _TaskRestriction_extension(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskRestriction_extension(ctx, field) +func (ec *executionContext) _TaskPerformer_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskPerformer_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -168279,7 +168475,7 @@ func (ec *executionContext) _TaskRestriction_extension(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -168293,128 +168489,128 @@ func (ec *executionContext) _TaskRestriction_extension(ctx context.Context, fiel return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskRestriction_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskPerformer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskRestriction", + Object: "TaskPerformer", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -168422,8 +168618,8 @@ func (ec *executionContext) fieldContext_TaskRestriction_extension(_ context.Con return fc, nil } -func (ec *executionContext) _TaskRestriction_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskRestriction_id(ctx, field) +func (ec *executionContext) _TaskPerformer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskPerformer_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -168436,7 +168632,7 @@ func (ec *executionContext) _TaskRestriction_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -168450,9 +168646,9 @@ func (ec *executionContext) _TaskRestriction_id(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskRestriction_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskPerformer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskRestriction", + Object: "TaskPerformer", Field: field, IsMethod: false, IsResolver: false, @@ -168463,8 +168659,8 @@ func (ec *executionContext) fieldContext_TaskRestriction_id(_ context.Context, f return fc, nil } -func (ec *executionContext) _TaskRestriction_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskRestriction_modifierExtension(ctx, field) +func (ec *executionContext) _TaskRestriction_repetitions(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskRestriction_repetitions(ctx, field) if err != nil { return graphql.Null } @@ -168477,7 +168673,7 @@ func (ec *executionContext) _TaskRestriction_modifierExtension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.Repetitions, nil }) if err != nil { ec.Error(ctx, err) @@ -168486,247 +168682,26 @@ func (ec *executionContext) _TaskRestriction_modifierExtension(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskRestriction_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskRestriction_repetitions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskRestriction", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskRestriction_period(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskRestriction_period(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Period, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Period) - fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaskRestriction_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskRestriction", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) - case "id": - return ec.fieldContext_Period_id(ctx, field) - case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskRestriction_recipient(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskRestriction_recipient(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Recipient, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]model.TaskRestrictionRecipientUnion) - fc.Result = res - return ec.marshalOTaskRestrictionRecipientUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionRecipientUnion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaskRestriction_recipient(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskRestriction", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskRestrictionRecipientUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskRestriction_recipient_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TaskRestriction_repetitions(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskRestriction_repetitions(ctx, field) +func (ec *executionContext) _TaskRestriction_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskRestriction_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -168739,7 +168714,7 @@ func (ec *executionContext) _TaskRestriction_repetitions(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Repetitions, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -168753,7 +168728,7 @@ func (ec *executionContext) _TaskRestriction_repetitions(ctx context.Context, fi return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskRestriction_repetitions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskRestriction_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskRestriction", Field: field, @@ -168766,8 +168741,8 @@ func (ec *executionContext) fieldContext_TaskRestriction_repetitions(_ context.C return fc, nil } -func (ec *executionContext) _TaskType_input(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_input(ctx, field) +func (ec *executionContext) _TaskRestriction_extension(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskRestriction_extension(ctx, field) if err != nil { return graphql.Null } @@ -168780,7 +168755,7 @@ func (ec *executionContext) _TaskType_input(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Input, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -168789,144 +168764,142 @@ func (ec *executionContext) _TaskType_input(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.TaskInput) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOTaskInput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInput(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_input(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskRestriction_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskType", + Object: "TaskRestriction", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueAddress": - return ec.fieldContext_TaskInput_valueAddress(ctx, field) - case "valueUrl": - return ec.fieldContext_TaskInput_valueUrl(ctx, field) - case "valueDosage": - return ec.fieldContext_TaskInput_valueDosage(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_TaskInput_valueRelatedArtifact(ctx, field) - case "valueDateTime": - return ec.fieldContext_TaskInput_valueDateTime(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) case "valueExpression": - return ec.fieldContext_TaskInput_valueExpression(ctx, field) - case "valueCanonical": - return ec.fieldContext_TaskInput_valueCanonical(ctx, field) - case "valueContactPoint": - return ec.fieldContext_TaskInput_valueContactPoint(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_TaskInput_valueUnsignedInt(ctx, field) - case "valueInstant": - return ec.fieldContext_TaskInput_valueInstant(ctx, field) - case "valueMoney": - return ec.fieldContext_TaskInput_valueMoney(ctx, field) + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) case "valueParameterDefinition": - return ec.fieldContext_TaskInput_valueParameterDefinition(ctx, field) - case "valueUuid": - return ec.fieldContext_TaskInput_valueUuid(ctx, field) - case "valueAttachment": - return ec.fieldContext_TaskInput_valueAttachment(ctx, field) + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) case "valueUsageContext": - return ec.fieldContext_TaskInput_valueUsageContext(ctx, field) - case "valueTime": - return ec.fieldContext_TaskInput_valueTime(ctx, field) - case "valueUri": - return ec.fieldContext_TaskInput_valueUri(ctx, field) - case "valueSignature": - return ec.fieldContext_TaskInput_valueSignature(ctx, field) - case "valueQuantity": - return ec.fieldContext_TaskInput_valueQuantity(ctx, field) - case "valueContactDetail": - return ec.fieldContext_TaskInput_valueContactDetail(ctx, field) + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) case "valueMeta": - return ec.fieldContext_TaskInput_valueMeta(ctx, field) - case "valueCode": - return ec.fieldContext_TaskInput_valueCode(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_TaskInput_valueTriggerDefinition(ctx, field) + return ec.fieldContext_Extension_valueMeta(ctx, field) case "valueOid": - return ec.fieldContext_TaskInput_valueOid(ctx, field) - case "valueInteger64": - return ec.fieldContext_TaskInput_valueInteger64(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_TaskInput_valueDataRequirement(ctx, field) - case "valueBoolean": - return ec.fieldContext_TaskInput_valueBoolean(ctx, field) - case "valueCoding": - return ec.fieldContext_TaskInput_valueCoding(ctx, field) - case "valueDecimal": - return ec.fieldContext_TaskInput_valueDecimal(ctx, field) - case "valueAnnotation": - return ec.fieldContext_TaskInput_valueAnnotation(ctx, field) - case "valueCount": - return ec.fieldContext_TaskInput_valueCount(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_TaskInput_valueBase64Binary(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_TaskInput_valueCodeableReference(ctx, field) - case "valueDistance": - return ec.fieldContext_TaskInput_valueDistance(ctx, field) - case "valueHumanName": - return ec.fieldContext_TaskInput_valueHumanName(ctx, field) - case "valueId": - return ec.fieldContext_TaskInput_valueId(ctx, field) - case "resourceType": - return ec.fieldContext_TaskInput_resourceType(ctx, field) - case "valueRatio": - return ec.fieldContext_TaskInput_valueRatio(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_TaskInput_valueExtendedContactDetail(ctx, field) - case "valueRatioRange": - return ec.fieldContext_TaskInput_valueRatioRange(ctx, field) - case "valueMarkdown": - return ec.fieldContext_TaskInput_valueMarkdown(ctx, field) - case "type": - return ec.fieldContext_TaskInput_type(ctx, field) + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_TaskInput_id(ctx, field) - case "valueSampledData": - return ec.fieldContext_TaskInput_valueSampledData(ctx, field) - case "extension": - return ec.fieldContext_TaskInput_extension(ctx, field) - case "modifierExtension": - return ec.fieldContext_TaskInput_modifierExtension(ctx, field) - case "valueTiming": - return ec.fieldContext_TaskInput_valueTiming(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) case "valueIdentifier": - return ec.fieldContext_TaskInput_valueIdentifier(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_TaskInput_valuePositiveInt(ctx, field) - case "valueAvailability": - return ec.fieldContext_TaskInput_valueAvailability(ctx, field) - case "valueDuration": - return ec.fieldContext_TaskInput_valueDuration(ctx, field) + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueString": - return ec.fieldContext_TaskInput_valueString(ctx, field) + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) case "valueCodeableConcept": - return ec.fieldContext_TaskInput_valueCodeableConcept(ctx, field) + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) case "valueAge": - return ec.fieldContext_TaskInput_valueAge(ctx, field) - case "valueDate": - return ec.fieldContext_TaskInput_valueDate(ctx, field) - case "valuePeriod": - return ec.fieldContext_TaskInput_valuePeriod(ctx, field) - case "valueInteger": - return ec.fieldContext_TaskInput_valueInteger(ctx, field) - case "valueRange": - return ec.fieldContext_TaskInput_valueRange(ctx, field) + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TaskInput", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_basedOn(ctx, field) +func (ec *executionContext) _TaskRestriction_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskRestriction_id(ctx, field) if err != nil { return graphql.Null } @@ -168939,7 +168912,7 @@ func (ec *executionContext) _TaskType_basedOn(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BasedOn, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -168948,37 +168921,26 @@ func (ec *executionContext) _TaskType_basedOn(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskRestriction_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskType", + Object: "TaskRestriction", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TaskType_output(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_output(ctx, field) +func (ec *executionContext) _TaskRestriction_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskRestriction_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -168991,7 +168953,7 @@ func (ec *executionContext) _TaskType_output(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Output, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -169000,144 +168962,142 @@ func (ec *executionContext) _TaskType_output(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.TaskOutput) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOTaskOutput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_output(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskRestriction_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskType", + Object: "TaskRestriction", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "valuePeriod": - return ec.fieldContext_TaskOutput_valuePeriod(ctx, field) - case "id": - return ec.fieldContext_TaskOutput_id(ctx, field) - case "valueString": - return ec.fieldContext_TaskOutput_valueString(ctx, field) - case "valueOid": - return ec.fieldContext_TaskOutput_valueOid(ctx, field) - case "valueRatio": - return ec.fieldContext_TaskOutput_valueRatio(ctx, field) - case "valueAge": - return ec.fieldContext_TaskOutput_valueAge(ctx, field) + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": - return ec.fieldContext_TaskOutput_valueSampledData(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_TaskOutput_valueBase64Binary(ctx, field) - case "valueMeta": - return ec.fieldContext_TaskOutput_valueMeta(ctx, field) - case "valueSignature": - return ec.fieldContext_TaskOutput_valueSignature(ctx, field) - case "valueTime": - return ec.fieldContext_TaskOutput_valueTime(ctx, field) - case "valueDistance": - return ec.fieldContext_TaskOutput_valueDistance(ctx, field) - case "valueDate": - return ec.fieldContext_TaskOutput_valueDate(ctx, field) - case "valueTiming": - return ec.fieldContext_TaskOutput_valueTiming(ctx, field) - case "valueAnnotation": - return ec.fieldContext_TaskOutput_valueAnnotation(ctx, field) - case "valueCanonical": - return ec.fieldContext_TaskOutput_valueCanonical(ctx, field) - case "valueMarkdown": - return ec.fieldContext_TaskOutput_valueMarkdown(ctx, field) - case "valueUrl": - return ec.fieldContext_TaskOutput_valueUrl(ctx, field) + return ec.fieldContext_Extension_valueSampledData(ctx, field) case "valueContactDetail": - return ec.fieldContext_TaskOutput_valueContactDetail(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_TaskOutput_valueCodeableConcept(ctx, field) - case "valueUuid": - return ec.fieldContext_TaskOutput_valueUuid(ctx, field) - case "valueInstant": - return ec.fieldContext_TaskOutput_valueInstant(ctx, field) - case "valueExpression": - return ec.fieldContext_TaskOutput_valueExpression(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_TaskOutput_valueUnsignedInt(ctx, field) - case "type": - return ec.fieldContext_TaskOutput_type(ctx, field) + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) case "valueParameterDefinition": - return ec.fieldContext_TaskOutput_valueParameterDefinition(ctx, field) - case "valueMoney": - return ec.fieldContext_TaskOutput_valueMoney(ctx, field) - case "extension": - return ec.fieldContext_TaskOutput_extension(ctx, field) + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) case "valueExtendedContactDetail": - return ec.fieldContext_TaskOutput_valueExtendedContactDetail(ctx, field) - case "valueCode": - return ec.fieldContext_TaskOutput_valueCode(ctx, field) + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) case "valueIdentifier": - return ec.fieldContext_TaskOutput_valueIdentifier(ctx, field) - case "valueHumanName": - return ec.fieldContext_TaskOutput_valueHumanName(ctx, field) + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": - return ec.fieldContext_TaskOutput_valueDuration(ctx, field) - case "valueInteger64": - return ec.fieldContext_TaskOutput_valueInteger64(ctx, field) - case "valueUri": - return ec.fieldContext_TaskOutput_valueUri(ctx, field) + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) case "valueContactPoint": - return ec.fieldContext_TaskOutput_valueContactPoint(ctx, field) - case "valueCount": - return ec.fieldContext_TaskOutput_valueCount(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_TaskOutput_valueCodeableReference(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_TaskOutput_valueRelatedArtifact(ctx, field) - case "valueId": - return ec.fieldContext_TaskOutput_valueId(ctx, field) + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": - return ec.fieldContext_TaskOutput_valueDosage(ctx, field) - case "valueBoolean": - return ec.fieldContext_TaskOutput_valueBoolean(ctx, field) - case "valueAttachment": - return ec.fieldContext_TaskOutput_valueAttachment(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_TaskOutput_valueTriggerDefinition(ctx, field) + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_TaskOutput_resourceType(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) case "valuePositiveInt": - return ec.fieldContext_TaskOutput_valuePositiveInt(ctx, field) - case "valueRange": - return ec.fieldContext_TaskOutput_valueRange(ctx, field) + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": - return ec.fieldContext_TaskOutput_valueAddress(ctx, field) - case "valueInteger": - return ec.fieldContext_TaskOutput_valueInteger(ctx, field) - case "valueAvailability": - return ec.fieldContext_TaskOutput_valueAvailability(ctx, field) - case "valueUsageContext": - return ec.fieldContext_TaskOutput_valueUsageContext(ctx, field) + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) case "valueDateTime": - return ec.fieldContext_TaskOutput_valueDateTime(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_TaskOutput_valueDataRequirement(ctx, field) - case "modifierExtension": - return ec.fieldContext_TaskOutput_modifierExtension(ctx, field) - case "valueCoding": - return ec.fieldContext_TaskOutput_valueCoding(ctx, field) + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) case "valueRatioRange": - return ec.fieldContext_TaskOutput_valueRatioRange(ctx, field) - case "valueDecimal": - return ec.fieldContext_TaskOutput_valueDecimal(ctx, field) - case "valueQuantity": - return ec.fieldContext_TaskOutput_valueQuantity(ctx, field) + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TaskOutput", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_lastModified(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_lastModified(ctx, field) +func (ec *executionContext) _TaskRestriction_period(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskRestriction_period(ctx, field) if err != nil { return graphql.Null } @@ -169150,7 +169110,7 @@ func (ec *executionContext) _TaskType_lastModified(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastModified, nil + return obj.Period, nil }) if err != nil { ec.Error(ctx, err) @@ -169159,26 +169119,38 @@ func (ec *executionContext) _TaskType_lastModified(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_lastModified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskRestriction_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskType", + Object: "TaskRestriction", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_authoredOn(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_authoredOn(ctx, field) +func (ec *executionContext) _TaskRestriction_recipient(ctx context.Context, field graphql.CollectedField, obj *model.TaskRestriction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskRestriction_recipient(ctx, field) if err != nil { return graphql.Null } @@ -169191,35 +169163,49 @@ func (ec *executionContext) _TaskType_authoredOn(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthoredOn, nil + return obj.Recipient, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.TaskRestrictionRecipientUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNTaskRestrictionRecipientUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionRecipientUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_authoredOn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskRestriction_recipient(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskType", + Object: "TaskRestriction", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type TaskRestrictionRecipientUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskRestriction_recipient_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TaskType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_modifierExtension(ctx, field) +func (ec *executionContext) _TaskType_instantiatesUri(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_instantiatesUri(ctx, field) if err != nil { return graphql.Null } @@ -169232,7 +169218,7 @@ func (ec *executionContext) _TaskType_modifierExtension(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ModifierExtension, nil + return obj.InstantiatesURI, nil }) if err != nil { ec.Error(ctx, err) @@ -169241,142 +169227,26 @@ func (ec *executionContext) _TaskType_modifierExtension(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_instantiatesUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskType_requester(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_requester(ctx, field) +func (ec *executionContext) _TaskType_owner(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_owner(ctx, field) if err != nil { return graphql.Null } @@ -169389,28 +169259,31 @@ func (ec *executionContext) _TaskType_requester(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Requester, nil + return obj.Owner, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.TaskRequesterUnion) + res := resTmp.(model.TaskOwnerUnion) fc.Result = res - return ec.marshalOTaskRequesterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRequesterUnion(ctx, field.Selections, res) + return ec.marshalNTaskOwnerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOwnerUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_requester(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_owner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskRequesterUnion does not have child fields") + return nil, errors.New("field of type TaskOwnerUnion does not have child fields") }, } defer func() { @@ -169420,15 +169293,15 @@ func (ec *executionContext) fieldContext_TaskType_requester(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskType_requester_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TaskType_owner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TaskType_intent(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_intent(ctx, field) +func (ec *executionContext) _TaskType_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_id(ctx, field) if err != nil { return graphql.Null } @@ -169441,7 +169314,7 @@ func (ec *executionContext) _TaskType_intent(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Intent, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -169455,7 +169328,7 @@ func (ec *executionContext) _TaskType_intent(ctx context.Context, field graphql. return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_intent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -169468,8 +169341,8 @@ func (ec *executionContext) fieldContext_TaskType_intent(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _TaskType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_partOf(ctx, field) +func (ec *executionContext) _TaskType_intent(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_intent(ctx, field) if err != nil { return graphql.Null } @@ -169482,7 +169355,7 @@ func (ec *executionContext) _TaskType_partOf(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PartOf, nil + return obj.Intent, nil }) if err != nil { ec.Error(ctx, err) @@ -169491,113 +169364,26 @@ func (ec *executionContext) _TaskType_partOf(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.TaskType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTaskType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_intent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "input": - return ec.fieldContext_TaskType_input(ctx, field) - case "basedOn": - return ec.fieldContext_TaskType_basedOn(ctx, field) - case "output": - return ec.fieldContext_TaskType_output(ctx, field) - case "lastModified": - return ec.fieldContext_TaskType_lastModified(ctx, field) - case "authoredOn": - return ec.fieldContext_TaskType_authoredOn(ctx, field) - case "modifierExtension": - return ec.fieldContext_TaskType_modifierExtension(ctx, field) - case "requester": - return ec.fieldContext_TaskType_requester(ctx, field) - case "intent": - return ec.fieldContext_TaskType_intent(ctx, field) - case "partOf": - return ec.fieldContext_TaskType_partOf(ctx, field) - case "businessStatus": - return ec.fieldContext_TaskType_businessStatus(ctx, field) - case "resourceType": - return ec.fieldContext_TaskType_resourceType(ctx, field) - case "code": - return ec.fieldContext_TaskType_code(ctx, field) - case "instantiatesUri": - return ec.fieldContext_TaskType_instantiatesUri(ctx, field) - case "instantiatesCanonical": - return ec.fieldContext_TaskType_instantiatesCanonical(ctx, field) - case "reason": - return ec.fieldContext_TaskType_reason(ctx, field) - case "contained": - return ec.fieldContext_TaskType_contained(ctx, field) - case "requestedPeriod": - return ec.fieldContext_TaskType_requestedPeriod(ctx, field) - case "groupIdentifier": - return ec.fieldContext_TaskType_groupIdentifier(ctx, field) - case "priority": - return ec.fieldContext_TaskType_priority(ctx, field) - case "text": - return ec.fieldContext_TaskType_text(ctx, field) - case "identifier": - return ec.fieldContext_TaskType_identifier(ctx, field) - case "description": - return ec.fieldContext_TaskType_description(ctx, field) - case "performer": - return ec.fieldContext_TaskType_performer(ctx, field) - case "id": - return ec.fieldContext_TaskType_id(ctx, field) - case "implicitRules": - return ec.fieldContext_TaskType_implicitRules(ctx, field) - case "meta": - return ec.fieldContext_TaskType_meta(ctx, field) - case "restriction": - return ec.fieldContext_TaskType_restriction(ctx, field) - case "note": - return ec.fieldContext_TaskType_note(ctx, field) - case "executionPeriod": - return ec.fieldContext_TaskType_executionPeriod(ctx, field) - case "language": - return ec.fieldContext_TaskType_language(ctx, field) - case "requestedPerformer": - return ec.fieldContext_TaskType_requestedPerformer(ctx, field) - case "status": - return ec.fieldContext_TaskType_status(ctx, field) - case "extension": - return ec.fieldContext_TaskType_extension(ctx, field) - case "focus": - return ec.fieldContext_TaskType_focus(ctx, field) - case "owner": - return ec.fieldContext_TaskType_owner(ctx, field) - case "statusReason": - return ec.fieldContext_TaskType_statusReason(ctx, field) - case "doNotPerform": - return ec.fieldContext_TaskType_doNotPerform(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TaskType_businessStatus(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_businessStatus(ctx, field) +func (ec *executionContext) _TaskType_code(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_code(ctx, field) if err != nil { return graphql.Null } @@ -169610,7 +169396,7 @@ func (ec *executionContext) _TaskType_businessStatus(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BusinessStatus, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -169624,7 +169410,7 @@ func (ec *executionContext) _TaskType_businessStatus(ctx context.Context, field return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_businessStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -169632,6 +169418,8 @@ func (ec *executionContext) fieldContext_TaskType_businessStatus(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -169640,8 +169428,6 @@ func (ec *executionContext) fieldContext_TaskType_businessStatus(_ context.Conte return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -169649,8 +169435,8 @@ func (ec *executionContext) fieldContext_TaskType_businessStatus(_ context.Conte return fc, nil } -func (ec *executionContext) _TaskType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_resourceType(ctx, field) +func (ec *executionContext) _TaskType_requestedPeriod(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_requestedPeriod(ctx, field) if err != nil { return graphql.Null } @@ -169663,7 +169449,7 @@ func (ec *executionContext) _TaskType_resourceType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.RequestedPeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -169672,26 +169458,38 @@ func (ec *executionContext) _TaskType_resourceType(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_requestedPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_code(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_code(ctx, field) +func (ec *executionContext) _TaskType_restriction(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_restriction(ctx, field) if err != nil { return graphql.Null } @@ -169704,47 +169502,49 @@ func (ec *executionContext) _TaskType_code(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.Restriction, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(model.TaskRestrictionUnion) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalNTaskRestrictionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_restriction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type TaskRestrictionUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskType_restriction_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TaskType_instantiatesUri(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_instantiatesUri(ctx, field) +func (ec *executionContext) _TaskType_authoredOn(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_authoredOn(ctx, field) if err != nil { return graphql.Null } @@ -169757,7 +169557,7 @@ func (ec *executionContext) _TaskType_instantiatesUri(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InstantiatesURI, nil + return obj.AuthoredOn, nil }) if err != nil { ec.Error(ctx, err) @@ -169771,7 +169571,7 @@ func (ec *executionContext) _TaskType_instantiatesUri(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_instantiatesUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_authoredOn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -169784,8 +169584,8 @@ func (ec *executionContext) fieldContext_TaskType_instantiatesUri(_ context.Cont return fc, nil } -func (ec *executionContext) _TaskType_instantiatesCanonical(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_instantiatesCanonical(ctx, field) +func (ec *executionContext) _TaskType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_modifierExtension(ctx, field) if err != nil { return graphql.Null } @@ -169798,7 +169598,7 @@ func (ec *executionContext) _TaskType_instantiatesCanonical(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InstantiatesCanonical, nil + return obj.ModifierExtension, nil }) if err != nil { ec.Error(ctx, err) @@ -169807,26 +169607,142 @@ func (ec *executionContext) _TaskType_instantiatesCanonical(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_instantiatesCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_reason(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_reason(ctx, field) +func (ec *executionContext) _TaskType_note(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_note(ctx, field) if err != nil { return graphql.Null } @@ -169839,45 +169755,49 @@ func (ec *executionContext) _TaskType_reason(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Reason, nil + return obj.Note, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.(model.TaskNoteUnion) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalNTaskNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskNoteUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type TaskNoteUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TaskType_contained(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_contained(ctx, field) +func (ec *executionContext) _TaskType_doNotPerform(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_doNotPerform(ctx, field) if err != nil { return graphql.Null } @@ -169890,7 +169810,7 @@ func (ec *executionContext) _TaskType_contained(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contained, nil + return obj.DoNotPerform, nil }) if err != nil { ec.Error(ctx, err) @@ -169899,26 +169819,26 @@ func (ec *executionContext) _TaskType_contained(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]model.ResourceUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_doNotPerform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskType_requestedPeriod(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_requestedPeriod(ctx, field) +func (ec *executionContext) _TaskType_text(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_text(ctx, field) if err != nil { return graphql.Null } @@ -169931,7 +169851,7 @@ func (ec *executionContext) _TaskType_requestedPeriod(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RequestedPeriod, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -169940,12 +169860,12 @@ func (ec *executionContext) _TaskType_requestedPeriod(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*model.Narrative) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_requestedPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -169954,24 +169874,24 @@ func (ec *executionContext) fieldContext_TaskType_requestedPeriod(_ context.Cont Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "extension": - return ec.fieldContext_Period_extension(ctx, field) + return ec.fieldContext_Narrative_extension(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_Narrative_resourceType(ctx, field) + case "status": + return ec.fieldContext_Narrative_status(ctx, field) + case "div": + return ec.fieldContext_Narrative_div(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_groupIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_groupIdentifier(ctx, field) +func (ec *executionContext) _TaskType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_identifier(ctx, field) if err != nil { return graphql.Null } @@ -169984,7 +169904,7 @@ func (ec *executionContext) _TaskType_groupIdentifier(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupIdentifier, nil + return obj.Identifier, nil }) if err != nil { ec.Error(ctx, err) @@ -169993,12 +169913,12 @@ func (ec *executionContext) _TaskType_groupIdentifier(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Identifier) + res := resTmp.([]*model.Identifier) fc.Result = res - return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_groupIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -170006,24 +169926,24 @@ func (ec *executionContext) fieldContext_TaskType_groupIdentifier(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) case "extension": return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) case "period": return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) case "value": return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) case "id": return ec.fieldContext_Identifier_id(ctx, field) - case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) }, @@ -170031,8 +169951,8 @@ func (ec *executionContext) fieldContext_TaskType_groupIdentifier(_ context.Cont return fc, nil } -func (ec *executionContext) _TaskType_priority(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_priority(ctx, field) +func (ec *executionContext) _TaskType_language(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_language(ctx, field) if err != nil { return graphql.Null } @@ -170045,7 +169965,7 @@ func (ec *executionContext) _TaskType_priority(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Priority, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -170059,7 +169979,7 @@ func (ec *executionContext) _TaskType_priority(ctx context.Context, field graphq return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -170072,8 +169992,8 @@ func (ec *executionContext) fieldContext_TaskType_priority(_ context.Context, fi return fc, nil } -func (ec *executionContext) _TaskType_text(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_text(ctx, field) +func (ec *executionContext) _TaskType_output(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_output(ctx, field) if err != nil { return graphql.Null } @@ -170086,7 +170006,7 @@ func (ec *executionContext) _TaskType_text(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Output, nil }) if err != nil { ec.Error(ctx, err) @@ -170095,12 +170015,12 @@ func (ec *executionContext) _TaskType_text(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Narrative) + res := resTmp.([]*model.TaskOutput) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx, field.Selections, res) + return ec.marshalOTaskOutput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_output(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -170108,25 +170028,131 @@ func (ec *executionContext) fieldContext_TaskType_text(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "div": - return ec.fieldContext_Narrative_div(ctx, field) - case "extension": - return ec.fieldContext_Narrative_extension(ctx, field) + case "type": + return ec.fieldContext_TaskOutput_type(ctx, field) + case "valueIdentifier": + return ec.fieldContext_TaskOutput_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_TaskOutput_valueRange(ctx, field) + case "valueUri": + return ec.fieldContext_TaskOutput_valueUri(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_TaskOutput_valueCodeableConcept(ctx, field) + case "valueContactDetail": + return ec.fieldContext_TaskOutput_valueContactDetail(ctx, field) + case "valueInstant": + return ec.fieldContext_TaskOutput_valueInstant(ctx, field) + case "valueDuration": + return ec.fieldContext_TaskOutput_valueDuration(ctx, field) case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_TaskOutput_id(ctx, field) + case "valueTime": + return ec.fieldContext_TaskOutput_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_TaskOutput_valueMoney(ctx, field) + case "valueRatioRange": + return ec.fieldContext_TaskOutput_valueRatioRange(ctx, field) + case "valueInteger": + return ec.fieldContext_TaskOutput_valueInteger(ctx, field) + case "valueDate": + return ec.fieldContext_TaskOutput_valueDate(ctx, field) + case "valueCount": + return ec.fieldContext_TaskOutput_valueCount(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_TaskOutput_valueCodeableReference(ctx, field) + case "valueBoolean": + return ec.fieldContext_TaskOutput_valueBoolean(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_TaskOutput_valuePositiveInt(ctx, field) case "resourceType": - return ec.fieldContext_Narrative_resourceType(ctx, field) - case "status": - return ec.fieldContext_Narrative_status(ctx, field) + return ec.fieldContext_TaskOutput_resourceType(ctx, field) + case "valueDateTime": + return ec.fieldContext_TaskOutput_valueDateTime(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_TaskOutput_valueUnsignedInt(ctx, field) + case "valueAddress": + return ec.fieldContext_TaskOutput_valueAddress(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_TaskOutput_valueTriggerDefinition(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_TaskOutput_valueDataRequirement(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_TaskOutput_valueParameterDefinition(ctx, field) + case "valueMeta": + return ec.fieldContext_TaskOutput_valueMeta(ctx, field) + case "valueCode": + return ec.fieldContext_TaskOutput_valueCode(ctx, field) + case "valueExpression": + return ec.fieldContext_TaskOutput_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_TaskOutput_valueSampledData(ctx, field) + case "valueMarkdown": + return ec.fieldContext_TaskOutput_valueMarkdown(ctx, field) + case "valueDecimal": + return ec.fieldContext_TaskOutput_valueDecimal(ctx, field) + case "valueUrl": + return ec.fieldContext_TaskOutput_valueUrl(ctx, field) + case "valueHumanName": + return ec.fieldContext_TaskOutput_valueHumanName(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_TaskOutput_valueRelatedArtifact(ctx, field) + case "valueInteger64": + return ec.fieldContext_TaskOutput_valueInteger64(ctx, field) + case "valueAnnotation": + return ec.fieldContext_TaskOutput_valueAnnotation(ctx, field) + case "valueUsageContext": + return ec.fieldContext_TaskOutput_valueUsageContext(ctx, field) + case "valueDosage": + return ec.fieldContext_TaskOutput_valueDosage(ctx, field) + case "valueDistance": + return ec.fieldContext_TaskOutput_valueDistance(ctx, field) + case "valueAge": + return ec.fieldContext_TaskOutput_valueAge(ctx, field) + case "valueRatio": + return ec.fieldContext_TaskOutput_valueRatio(ctx, field) + case "valueOid": + return ec.fieldContext_TaskOutput_valueOid(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_TaskOutput_valueExtendedContactDetail(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_TaskOutput_valueBase64Binary(ctx, field) + case "modifierExtension": + return ec.fieldContext_TaskOutput_modifierExtension(ctx, field) + case "valueContactPoint": + return ec.fieldContext_TaskOutput_valueContactPoint(ctx, field) + case "valueSignature": + return ec.fieldContext_TaskOutput_valueSignature(ctx, field) + case "valueAvailability": + return ec.fieldContext_TaskOutput_valueAvailability(ctx, field) + case "valuePeriod": + return ec.fieldContext_TaskOutput_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_TaskOutput_valueQuantity(ctx, field) + case "valueCoding": + return ec.fieldContext_TaskOutput_valueCoding(ctx, field) + case "valueTiming": + return ec.fieldContext_TaskOutput_valueTiming(ctx, field) + case "valueCanonical": + return ec.fieldContext_TaskOutput_valueCanonical(ctx, field) + case "valueAttachment": + return ec.fieldContext_TaskOutput_valueAttachment(ctx, field) + case "extension": + return ec.fieldContext_TaskOutput_extension(ctx, field) + case "valueString": + return ec.fieldContext_TaskOutput_valueString(ctx, field) + case "valueUuid": + return ec.fieldContext_TaskOutput_valueUuid(ctx, field) + case "valueId": + return ec.fieldContext_TaskOutput_valueId(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TaskOutput", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_identifier(ctx, field) +func (ec *executionContext) _TaskType_extension(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_extension(ctx, field) if err != nil { return graphql.Null } @@ -170139,7 +170165,7 @@ func (ec *executionContext) _TaskType_identifier(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Identifier, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -170148,12 +170174,12 @@ func (ec *executionContext) _TaskType_identifier(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Identifier) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -170161,33 +170187,129 @@ func (ec *executionContext) fieldContext_TaskType_identifier(_ context.Context, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_Identifier_type(ctx, field) - case "extension": - return ec.fieldContext_Identifier_extension(ctx, field) - case "period": - return ec.fieldContext_Identifier_period(ctx, field) - case "system": - return ec.fieldContext_Identifier_system(ctx, field) - case "value": - return ec.fieldContext_Identifier_value(ctx, field) - case "assigner": - return ec.fieldContext_Identifier_assigner(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_Identifier_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) case "resourceType": - return ec.fieldContext_Identifier_resourceType(ctx, field) - case "use": - return ec.fieldContext_Identifier_use(ctx, field) + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_description(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_description(ctx, field) +func (ec *executionContext) _TaskType_instantiatesCanonical(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_instantiatesCanonical(ctx, field) if err != nil { return graphql.Null } @@ -170200,7 +170322,7 @@ func (ec *executionContext) _TaskType_description(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.InstantiatesCanonical, nil }) if err != nil { ec.Error(ctx, err) @@ -170214,7 +170336,7 @@ func (ec *executionContext) _TaskType_description(ctx context.Context, field gra return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_instantiatesCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -170227,8 +170349,8 @@ func (ec *executionContext) fieldContext_TaskType_description(_ context.Context, return fc, nil } -func (ec *executionContext) _TaskType_performer(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_performer(ctx, field) +func (ec *executionContext) _TaskType_status(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_status(ctx, field) if err != nil { return graphql.Null } @@ -170241,7 +170363,7 @@ func (ec *executionContext) _TaskType_performer(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Performer, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -170250,37 +170372,26 @@ func (ec *executionContext) _TaskType_performer(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]model.TaskPerformerUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTaskPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskPerformerUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskType_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TaskType_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_id(ctx, field) +func (ec *executionContext) _TaskType_businessStatus(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_businessStatus(ctx, field) if err != nil { return graphql.Null } @@ -170293,7 +170404,7 @@ func (ec *executionContext) _TaskType_id(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.BusinessStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -170302,26 +170413,38 @@ func (ec *executionContext) _TaskType_id(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_businessStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) + case "extension": + return ec.fieldContext_CodeableConcept_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableConcept_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_implicitRules(ctx, field) +func (ec *executionContext) _TaskType_executionPeriod(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_executionPeriod(ctx, field) if err != nil { return graphql.Null } @@ -170334,7 +170457,7 @@ func (ec *executionContext) _TaskType_implicitRules(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplicitRules, nil + return obj.ExecutionPeriod, nil }) if err != nil { ec.Error(ctx, err) @@ -170343,19 +170466,31 @@ func (ec *executionContext) _TaskType_implicitRules(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Period) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_executionPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) + case "extension": + return ec.fieldContext_Period_extension(ctx, field) + case "id": + return ec.fieldContext_Period_id(ctx, field) + case "resourceType": + return ec.fieldContext_Period_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, } return fc, nil @@ -170397,24 +170532,24 @@ func (ec *executionContext) fieldContext_TaskType_meta(_ context.Context, field IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "profile": - return ec.fieldContext_Meta_profile(ctx, field) - case "security": - return ec.fieldContext_Meta_security(ctx, field) - case "source": - return ec.fieldContext_Meta_source(ctx, field) - case "tag": - return ec.fieldContext_Meta_tag(ctx, field) - case "versionId": - return ec.fieldContext_Meta_versionId(ctx, field) case "lastUpdated": return ec.fieldContext_Meta_lastUpdated(ctx, field) - case "resourceType": - return ec.fieldContext_Meta_resourceType(ctx, field) + case "security": + return ec.fieldContext_Meta_security(ctx, field) case "extension": return ec.fieldContext_Meta_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Meta_resourceType(ctx, field) + case "versionId": + return ec.fieldContext_Meta_versionId(ctx, field) + case "tag": + return ec.fieldContext_Meta_tag(ctx, field) case "id": return ec.fieldContext_Meta_id(ctx, field) + case "profile": + return ec.fieldContext_Meta_profile(ctx, field) + case "source": + return ec.fieldContext_Meta_source(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Meta", field.Name) }, @@ -170422,8 +170557,8 @@ func (ec *executionContext) fieldContext_TaskType_meta(_ context.Context, field return fc, nil } -func (ec *executionContext) _TaskType_restriction(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_restriction(ctx, field) +func (ec *executionContext) _TaskType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_implicitRules(ctx, field) if err != nil { return graphql.Null } @@ -170436,7 +170571,7 @@ func (ec *executionContext) _TaskType_restriction(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Restriction, nil + return obj.ImplicitRules, nil }) if err != nil { ec.Error(ctx, err) @@ -170445,37 +170580,26 @@ func (ec *executionContext) _TaskType_restriction(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]model.TaskRestrictionUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTaskRestrictionUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_restriction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_implicitRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskRestrictionUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskType_restriction_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TaskType_note(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_note(ctx, field) +func (ec *executionContext) _TaskType_basedOn(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_basedOn(ctx, field) if err != nil { return graphql.Null } @@ -170488,28 +170612,31 @@ func (ec *executionContext) _TaskType_note(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Note, nil + return obj.BasedOn, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.TaskNoteUnion) + res := resTmp.(model.ResourceUnion) fc.Result = res - return ec.marshalOTaskNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskNoteUnion(ctx, field.Selections, res) + return ec.marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_basedOn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskNoteUnion does not have child fields") + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } defer func() { @@ -170519,15 +170646,15 @@ func (ec *executionContext) fieldContext_TaskType_note(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskType_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TaskType_basedOn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TaskType_executionPeriod(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_executionPeriod(ctx, field) +func (ec *executionContext) _TaskType_partOf(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_partOf(ctx, field) if err != nil { return graphql.Null } @@ -170540,21 +170667,24 @@ func (ec *executionContext) _TaskType_executionPeriod(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExecutionPeriod, nil + return obj.PartOf, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.Period) + res := resTmp.(*model.TaskType) fc.Result = res - return ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, field.Selections, res) + return ec.marshalNTaskType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_executionPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_partOf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -170562,25 +170692,100 @@ func (ec *executionContext) fieldContext_TaskType_executionPeriod(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Period_extension(ctx, field) + case "instantiatesUri": + return ec.fieldContext_TaskType_instantiatesUri(ctx, field) + case "owner": + return ec.fieldContext_TaskType_owner(ctx, field) case "id": - return ec.fieldContext_Period_id(ctx, field) + return ec.fieldContext_TaskType_id(ctx, field) + case "intent": + return ec.fieldContext_TaskType_intent(ctx, field) + case "code": + return ec.fieldContext_TaskType_code(ctx, field) + case "requestedPeriod": + return ec.fieldContext_TaskType_requestedPeriod(ctx, field) + case "restriction": + return ec.fieldContext_TaskType_restriction(ctx, field) + case "authoredOn": + return ec.fieldContext_TaskType_authoredOn(ctx, field) + case "modifierExtension": + return ec.fieldContext_TaskType_modifierExtension(ctx, field) + case "note": + return ec.fieldContext_TaskType_note(ctx, field) + case "doNotPerform": + return ec.fieldContext_TaskType_doNotPerform(ctx, field) + case "text": + return ec.fieldContext_TaskType_text(ctx, field) + case "identifier": + return ec.fieldContext_TaskType_identifier(ctx, field) + case "language": + return ec.fieldContext_TaskType_language(ctx, field) + case "output": + return ec.fieldContext_TaskType_output(ctx, field) + case "extension": + return ec.fieldContext_TaskType_extension(ctx, field) + case "instantiatesCanonical": + return ec.fieldContext_TaskType_instantiatesCanonical(ctx, field) + case "status": + return ec.fieldContext_TaskType_status(ctx, field) + case "businessStatus": + return ec.fieldContext_TaskType_businessStatus(ctx, field) + case "executionPeriod": + return ec.fieldContext_TaskType_executionPeriod(ctx, field) + case "meta": + return ec.fieldContext_TaskType_meta(ctx, field) + case "implicitRules": + return ec.fieldContext_TaskType_implicitRules(ctx, field) + case "basedOn": + return ec.fieldContext_TaskType_basedOn(ctx, field) + case "partOf": + return ec.fieldContext_TaskType_partOf(ctx, field) + case "statusReason": + return ec.fieldContext_TaskType_statusReason(ctx, field) + case "contained": + return ec.fieldContext_TaskType_contained(ctx, field) + case "performer": + return ec.fieldContext_TaskType_performer(ctx, field) + case "input": + return ec.fieldContext_TaskType_input(ctx, field) + case "requester": + return ec.fieldContext_TaskType_requester(ctx, field) + case "description": + return ec.fieldContext_TaskType_description(ctx, field) + case "groupIdentifier": + return ec.fieldContext_TaskType_groupIdentifier(ctx, field) + case "focus": + return ec.fieldContext_TaskType_focus(ctx, field) + case "priority": + return ec.fieldContext_TaskType_priority(ctx, field) + case "lastModified": + return ec.fieldContext_TaskType_lastModified(ctx, field) case "resourceType": - return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) + return ec.fieldContext_TaskType_resourceType(ctx, field) + case "requestedPerformer": + return ec.fieldContext_TaskType_requestedPerformer(ctx, field) + case "reason": + return ec.fieldContext_TaskType_reason(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TaskType", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskType_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TaskType_language(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_language(ctx, field) +func (ec *executionContext) _TaskType_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_statusReason(ctx, field) if err != nil { return graphql.Null } @@ -170593,7 +170798,7 @@ func (ec *executionContext) _TaskType_language(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.StatusReason, nil }) if err != nil { ec.Error(ctx, err) @@ -170602,26 +170807,36 @@ func (ec *executionContext) _TaskType_language(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_requestedPerformer(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_requestedPerformer(ctx, field) +func (ec *executionContext) _TaskType_contained(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_contained(ctx, field) if err != nil { return graphql.Null } @@ -170634,7 +170849,7 @@ func (ec *executionContext) _TaskType_requestedPerformer(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RequestedPerformer, nil + return obj.Contained, nil }) if err != nil { ec.Error(ctx, err) @@ -170643,36 +170858,26 @@ func (ec *executionContext) _TaskType_requestedPerformer(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.CodeableReference) + res := resTmp.([]model.ResourceUnion) fc.Result = res - return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_requestedPerformer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_contained(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskType_status(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_status(ctx, field) +func (ec *executionContext) _TaskType_performer(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_performer(ctx, field) if err != nil { return graphql.Null } @@ -170685,35 +170890,49 @@ func (ec *executionContext) _TaskType_status(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Performer, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(model.TaskPerformerUnion) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNTaskPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_performer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type TaskPerformerUnion does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TaskType_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TaskType_extension(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_extension(ctx, field) +func (ec *executionContext) _TaskType_input(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_input(ctx, field) if err != nil { return graphql.Null } @@ -170726,7 +170945,7 @@ func (ec *executionContext) _TaskType_extension(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Input, nil }) if err != nil { ec.Error(ctx, err) @@ -170735,12 +170954,12 @@ func (ec *executionContext) _TaskType_extension(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.([]*model.TaskInput) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOTaskInput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInput(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_input(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -170748,129 +170967,131 @@ func (ec *executionContext) fieldContext_TaskType_extension(_ context.Context, f IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_TaskInput_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_TaskInput_valueCode(ctx, field) case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) + return ec.fieldContext_TaskInput_valueTriggerDefinition(ctx, field) + case "valueUsageContext": + return ec.fieldContext_TaskInput_valueUsageContext(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_TaskInput_valueDataRequirement(ctx, field) case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) + return ec.fieldContext_TaskInput_valueUuid(ctx, field) case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) + return ec.fieldContext_TaskInput_valueOid(ctx, field) + case "valueRatio": + return ec.fieldContext_TaskInput_valueRatio(ctx, field) + case "type": + return ec.fieldContext_TaskInput_type(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_TaskInput_valueCodeableReference(ctx, field) + case "valueId": + return ec.fieldContext_TaskInput_valueId(ctx, field) case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) + return ec.fieldContext_TaskInput_valueInstant(ctx, field) + case "valueHumanName": + return ec.fieldContext_TaskInput_valueHumanName(ctx, field) case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) + return ec.fieldContext_TaskInput_valueMoney(ctx, field) + case "valueSignature": + return ec.fieldContext_TaskInput_valueSignature(ctx, field) + case "valueAvailability": + return ec.fieldContext_TaskInput_valueAvailability(ctx, field) case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) + return ec.fieldContext_TaskInput_valueUnsignedInt(ctx, field) + case "valueMarkdown": + return ec.fieldContext_TaskInput_valueMarkdown(ctx, field) + case "valueString": + return ec.fieldContext_TaskInput_valueString(ctx, field) + case "valueSampledData": + return ec.fieldContext_TaskInput_valueSampledData(ctx, field) case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) + return ec.fieldContext_TaskInput_valueDistance(ctx, field) + case "valueAge": + return ec.fieldContext_TaskInput_valueAge(ctx, field) + case "valueTime": + return ec.fieldContext_TaskInput_valueTime(ctx, field) + case "valueRange": + return ec.fieldContext_TaskInput_valueRange(ctx, field) + case "valueAnnotation": + return ec.fieldContext_TaskInput_valueAnnotation(ctx, field) case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) + return ec.fieldContext_TaskInput_valueUrl(ctx, field) + case "modifierExtension": + return ec.fieldContext_TaskInput_modifierExtension(ctx, field) + case "valueInteger64": + return ec.fieldContext_TaskInput_valueInteger64(ctx, field) + case "valueAttachment": + return ec.fieldContext_TaskInput_valueAttachment(ctx, field) + case "valueInteger": + return ec.fieldContext_TaskInput_valueInteger(ctx, field) + case "valueDosage": + return ec.fieldContext_TaskInput_valueDosage(ctx, field) + case "valueExpression": + return ec.fieldContext_TaskInput_valueExpression(ctx, field) + case "valueContactPoint": + return ec.fieldContext_TaskInput_valueContactPoint(ctx, field) case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + return ec.fieldContext_TaskInput_valueMeta(ctx, field) + case "resourceType": + return ec.fieldContext_TaskInput_resourceType(ctx, field) + case "valueDate": + return ec.fieldContext_TaskInput_valueDate(ctx, field) + case "valueDateTime": + return ec.fieldContext_TaskInput_valueDateTime(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_TaskInput_valueExtendedContactDetail(ctx, field) + case "valueRatioRange": + return ec.fieldContext_TaskInput_valueRatioRange(ctx, field) case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_TaskInput_valueAddress(ctx, field) + case "id": + return ec.fieldContext_TaskInput_id(ctx, field) + case "valueQuantity": + return ec.fieldContext_TaskInput_valueQuantity(ctx, field) + case "valueTiming": + return ec.fieldContext_TaskInput_valueTiming(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_TaskInput_valuePositiveInt(ctx, field) + case "valuePeriod": + return ec.fieldContext_TaskInput_valuePeriod(ctx, field) + case "valueCount": + return ec.fieldContext_TaskInput_valueCount(ctx, field) + case "valueDuration": + return ec.fieldContext_TaskInput_valueDuration(ctx, field) + case "valueCanonical": + return ec.fieldContext_TaskInput_valueCanonical(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_TaskInput_valueParameterDefinition(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_TaskInput_valueRelatedArtifact(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_TaskInput_extension(ctx, field) + case "valueContactDetail": + return ec.fieldContext_TaskInput_valueContactDetail(ctx, field) + case "valueUri": + return ec.fieldContext_TaskInput_valueUri(ctx, field) + case "valueDecimal": + return ec.fieldContext_TaskInput_valueDecimal(ctx, field) + case "valueBoolean": + return ec.fieldContext_TaskInput_valueBoolean(ctx, field) + case "valueIdentifier": + return ec.fieldContext_TaskInput_valueIdentifier(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_TaskInput_valueCodeableConcept(ctx, field) + case "valueCoding": + return ec.fieldContext_TaskInput_valueCoding(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TaskInput", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskType_focus(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_focus(ctx, field) +func (ec *executionContext) _TaskType_requester(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_requester(ctx, field) if err != nil { return graphql.Null } @@ -170883,28 +171104,31 @@ func (ec *executionContext) _TaskType_focus(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Focus, nil + return obj.Requester, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(model.ResourceUnion) + res := resTmp.(model.TaskRequesterUnion) fc.Result = res - return ec.marshalOResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) + return ec.marshalNTaskRequesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRequesterUnion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_focus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_requester(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ResourceUnion does not have child fields") + return nil, errors.New("field of type TaskRequesterUnion does not have child fields") }, } defer func() { @@ -170914,15 +171138,15 @@ func (ec *executionContext) fieldContext_TaskType_focus(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskType_focus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TaskType_requester_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TaskType_owner(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_owner(ctx, field) +func (ec *executionContext) _TaskType_description(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_description(ctx, field) if err != nil { return graphql.Null } @@ -170935,7 +171159,7 @@ func (ec *executionContext) _TaskType_owner(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -170944,19 +171168,124 @@ func (ec *executionContext) _TaskType_owner(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.([]model.TaskOwnerUnion) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTaskOwnerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOwnerUnion(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_owner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskOwnerUnion does not have child fields") + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaskType_groupIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_groupIdentifier(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupIdentifier, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Identifier) + fc.Result = res + return ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskType_groupIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "extension": + return ec.fieldContext_Identifier_extension(ctx, field) + case "resourceType": + return ec.fieldContext_Identifier_resourceType(ctx, field) + case "use": + return ec.fieldContext_Identifier_use(ctx, field) + case "assigner": + return ec.fieldContext_Identifier_assigner(ctx, field) + case "period": + return ec.fieldContext_Identifier_period(ctx, field) + case "type": + return ec.fieldContext_Identifier_type(ctx, field) + case "value": + return ec.fieldContext_Identifier_value(ctx, field) + case "id": + return ec.fieldContext_Identifier_id(ctx, field) + case "system": + return ec.fieldContext_Identifier_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Identifier", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaskType_focus(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_focus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Focus, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.ResourceUnion) + fc.Result = res + return ec.marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskType_focus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ResourceUnion does not have child fields") }, } defer func() { @@ -170966,15 +171295,15 @@ func (ec *executionContext) fieldContext_TaskType_owner(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TaskType_owner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TaskType_focus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TaskType_statusReason(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_statusReason(ctx, field) +func (ec *executionContext) _TaskType_priority(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_priority(ctx, field) if err != nil { return graphql.Null } @@ -170987,7 +171316,7 @@ func (ec *executionContext) _TaskType_statusReason(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StatusReason, nil + return obj.Priority, nil }) if err != nil { ec.Error(ctx, err) @@ -170996,36 +171325,26 @@ func (ec *executionContext) _TaskType_statusReason(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableReference) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_statusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_CodeableReference_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableReference_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableReference_resourceType(ctx, field) - case "concept": - return ec.fieldContext_CodeableReference_concept(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskType_doNotPerform(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskType_doNotPerform(ctx, field) +func (ec *executionContext) _TaskType_lastModified(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_lastModified(ctx, field) if err != nil { return graphql.Null } @@ -171038,7 +171357,7 @@ func (ec *executionContext) _TaskType_doNotPerform(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DoNotPerform, nil + return obj.LastModified, nil }) if err != nil { ec.Error(ctx, err) @@ -171052,7 +171371,7 @@ func (ec *executionContext) _TaskType_doNotPerform(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskType_doNotPerform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_lastModified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TaskType", Field: field, @@ -171065,8 +171384,8 @@ func (ec *executionContext) fieldContext_TaskType_doNotPerform(_ context.Context return fc, nil } -func (ec *executionContext) _Timing_repeat(ctx context.Context, field graphql.CollectedField, obj *model.Timing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Timing_repeat(ctx, field) +func (ec *executionContext) _TaskType_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -171079,7 +171398,7 @@ func (ec *executionContext) _Timing_repeat(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Repeat, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -171088,68 +171407,77 @@ func (ec *executionContext) _Timing_repeat(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.TimingRepeat) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTimingRepeat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTimingRepeat(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Timing_repeat(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Timing", + Object: "TaskType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaskType_requestedPerformer(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_requestedPerformer(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RequestedPerformer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.CodeableReference) + fc.Result = res + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskType_requestedPerformer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "boundsRange": - return ec.fieldContext_TimingRepeat_boundsRange(ctx, field) - case "countMax": - return ec.fieldContext_TimingRepeat_countMax(ctx, field) - case "durationUnit": - return ec.fieldContext_TimingRepeat_durationUnit(ctx, field) - case "duration": - return ec.fieldContext_TimingRepeat_duration(ctx, field) - case "periodUnit": - return ec.fieldContext_TimingRepeat_periodUnit(ctx, field) case "resourceType": - return ec.fieldContext_TimingRepeat_resourceType(ctx, field) - case "count": - return ec.fieldContext_TimingRepeat_count(ctx, field) + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) case "extension": - return ec.fieldContext_TimingRepeat_extension(ctx, field) - case "when": - return ec.fieldContext_TimingRepeat_when(ctx, field) + return ec.fieldContext_CodeableReference_extension(ctx, field) case "id": - return ec.fieldContext_TimingRepeat_id(ctx, field) - case "durationMax": - return ec.fieldContext_TimingRepeat_durationMax(ctx, field) - case "period": - return ec.fieldContext_TimingRepeat_period(ctx, field) - case "boundsDuration": - return ec.fieldContext_TimingRepeat_boundsDuration(ctx, field) - case "frequencyMax": - return ec.fieldContext_TimingRepeat_frequencyMax(ctx, field) - case "frequency": - return ec.fieldContext_TimingRepeat_frequency(ctx, field) - case "periodMax": - return ec.fieldContext_TimingRepeat_periodMax(ctx, field) - case "boundsPeriod": - return ec.fieldContext_TimingRepeat_boundsPeriod(ctx, field) - case "dayOfWeek": - return ec.fieldContext_TimingRepeat_dayOfWeek(ctx, field) - case "timeOfDay": - return ec.fieldContext_TimingRepeat_timeOfDay(ctx, field) - case "offset": - return ec.fieldContext_TimingRepeat_offset(ctx, field) + return ec.fieldContext_CodeableReference_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TimingRepeat", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil } -func (ec *executionContext) _Timing_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Timing) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Timing_resourceType(ctx, field) +func (ec *executionContext) _TaskType_reason(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_reason(ctx, field) if err != nil { return graphql.Null } @@ -171162,7 +171490,7 @@ func (ec *executionContext) _Timing_resourceType(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Reason, nil }) if err != nil { ec.Error(ctx, err) @@ -171171,19 +171499,29 @@ func (ec *executionContext) _Timing_resourceType(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.CodeableReference) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Timing_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskType_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Timing", + Object: "TaskType", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableReference_resourceType(ctx, field) + case "concept": + return ec.fieldContext_CodeableReference_concept(ctx, field) + case "extension": + return ec.fieldContext_CodeableReference_extension(ctx, field) + case "id": + return ec.fieldContext_CodeableReference_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CodeableReference", field.Name) }, } return fc, nil @@ -171225,6 +171563,8 @@ func (ec *executionContext) fieldContext_Timing_code(_ context.Context, field gr IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -171233,8 +171573,6 @@ func (ec *executionContext) fieldContext_Timing_code(_ context.Context, field gr return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -171319,120 +171657,120 @@ func (ec *executionContext) fieldContext_Timing_extension(_ context.Context, fie IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) case "valueDecimal": return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) case "valueAddress": return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, @@ -171517,122 +171855,287 @@ func (ec *executionContext) fieldContext_Timing_modifierExtension(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) case "valueSampledData": return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) case "valueContactDetail": return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) case "valueCodeableReference": return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) case "valueRatio": return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) case "valueDuration": return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) case "valueDosage": return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) case "valueBase64Binary": return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) case "valueCode": return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) case "valuePositiveInt": return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) case "valueTime": return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) case "valueDistance": return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Timing_repeat(ctx context.Context, field graphql.CollectedField, obj *model.Timing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Timing_repeat(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Repeat, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.TimingRepeat) + fc.Result = res + return ec.marshalOTimingRepeat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTimingRepeat(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Timing_repeat(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Timing", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_TimingRepeat_resourceType(ctx, field) + case "boundsRange": + return ec.fieldContext_TimingRepeat_boundsRange(ctx, field) + case "countMax": + return ec.fieldContext_TimingRepeat_countMax(ctx, field) + case "boundsDuration": + return ec.fieldContext_TimingRepeat_boundsDuration(ctx, field) + case "durationUnit": + return ec.fieldContext_TimingRepeat_durationUnit(ctx, field) + case "count": + return ec.fieldContext_TimingRepeat_count(ctx, field) + case "frequencyMax": + return ec.fieldContext_TimingRepeat_frequencyMax(ctx, field) + case "periodMax": + return ec.fieldContext_TimingRepeat_periodMax(ctx, field) + case "when": + return ec.fieldContext_TimingRepeat_when(ctx, field) + case "durationMax": + return ec.fieldContext_TimingRepeat_durationMax(ctx, field) + case "id": + return ec.fieldContext_TimingRepeat_id(ctx, field) + case "timeOfDay": + return ec.fieldContext_TimingRepeat_timeOfDay(ctx, field) + case "period": + return ec.fieldContext_TimingRepeat_period(ctx, field) + case "dayOfWeek": + return ec.fieldContext_TimingRepeat_dayOfWeek(ctx, field) + case "offset": + return ec.fieldContext_TimingRepeat_offset(ctx, field) + case "frequency": + return ec.fieldContext_TimingRepeat_frequency(ctx, field) + case "duration": + return ec.fieldContext_TimingRepeat_duration(ctx, field) + case "boundsPeriod": + return ec.fieldContext_TimingRepeat_boundsPeriod(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_TimingRepeat_extension(ctx, field) + case "periodUnit": + return ec.fieldContext_TimingRepeat_periodUnit(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TimingRepeat", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Timing_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Timing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Timing_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Timing_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Timing", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TimingRepeat_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_resourceType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResourceType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TimingRepeat_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TimingRepeat", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -171674,16 +172177,16 @@ func (ec *executionContext) fieldContext_TimingRepeat_boundsRange(_ context.Cont IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": return ec.fieldContext_Range_resourceType(ctx, field) case "extension": return ec.fieldContext_Range_extension(ctx, field) case "high": return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, @@ -171732,6 +172235,65 @@ func (ec *executionContext) fieldContext_TimingRepeat_countMax(_ context.Context return fc, nil } +func (ec *executionContext) _TimingRepeat_boundsDuration(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_boundsDuration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BoundsDuration, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Duration) + fc.Result = res + return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TimingRepeat_boundsDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TimingRepeat", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Duration_id(ctx, field) + case "resourceType": + return ec.fieldContext_Duration_resourceType(ctx, field) + case "system": + return ec.fieldContext_Duration_system(ctx, field) + case "unit": + return ec.fieldContext_Duration_unit(ctx, field) + case "value": + return ec.fieldContext_Duration_value(ctx, field) + case "code": + return ec.fieldContext_Duration_code(ctx, field) + case "comparator": + return ec.fieldContext_Duration_comparator(ctx, field) + case "extension": + return ec.fieldContext_Duration_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _TimingRepeat_durationUnit(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { fc, err := ec.fieldContext_TimingRepeat_durationUnit(ctx, field) if err != nil { @@ -171773,8 +172335,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_durationUnit(_ context.Con return fc, nil } -func (ec *executionContext) _TimingRepeat_duration(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_duration(ctx, field) +func (ec *executionContext) _TimingRepeat_count(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_count(ctx, field) if err != nil { return graphql.Null } @@ -171787,7 +172349,7 @@ func (ec *executionContext) _TimingRepeat_duration(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Duration, nil + return obj.Count, nil }) if err != nil { ec.Error(ctx, err) @@ -171801,7 +172363,7 @@ func (ec *executionContext) _TimingRepeat_duration(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_duration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_count(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, @@ -171814,8 +172376,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_duration(_ context.Context return fc, nil } -func (ec *executionContext) _TimingRepeat_periodUnit(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_periodUnit(ctx, field) +func (ec *executionContext) _TimingRepeat_frequencyMax(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_frequencyMax(ctx, field) if err != nil { return graphql.Null } @@ -171828,7 +172390,7 @@ func (ec *executionContext) _TimingRepeat_periodUnit(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PeriodUnit, nil + return obj.FrequencyMax, nil }) if err != nil { ec.Error(ctx, err) @@ -171842,7 +172404,7 @@ func (ec *executionContext) _TimingRepeat_periodUnit(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_periodUnit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_frequencyMax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, @@ -171855,8 +172417,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_periodUnit(_ context.Conte return fc, nil } -func (ec *executionContext) _TimingRepeat_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_resourceType(ctx, field) +func (ec *executionContext) _TimingRepeat_periodMax(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_periodMax(ctx, field) if err != nil { return graphql.Null } @@ -171869,7 +172431,7 @@ func (ec *executionContext) _TimingRepeat_resourceType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.PeriodMax, nil }) if err != nil { ec.Error(ctx, err) @@ -171883,7 +172445,7 @@ func (ec *executionContext) _TimingRepeat_resourceType(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_periodMax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, @@ -171896,8 +172458,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_resourceType(_ context.Con return fc, nil } -func (ec *executionContext) _TimingRepeat_count(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_count(ctx, field) +func (ec *executionContext) _TimingRepeat_when(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_when(ctx, field) if err != nil { return graphql.Null } @@ -171910,7 +172472,7 @@ func (ec *executionContext) _TimingRepeat_count(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Count, nil + return obj.When, nil }) if err != nil { ec.Error(ctx, err) @@ -171924,7 +172486,7 @@ func (ec *executionContext) _TimingRepeat_count(ctx context.Context, field graph return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_count(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_when(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, @@ -171937,8 +172499,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_count(_ context.Context, f return fc, nil } -func (ec *executionContext) _TimingRepeat_extension(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_extension(ctx, field) +func (ec *executionContext) _TimingRepeat_durationMax(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_durationMax(ctx, field) if err != nil { return graphql.Null } @@ -171951,7 +172513,7 @@ func (ec *executionContext) _TimingRepeat_extension(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.DurationMax, nil }) if err != nil { ec.Error(ctx, err) @@ -171960,169 +172522,12 @@ func (ec *executionContext) _TimingRepeat_extension(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TimingRepeat", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TimingRepeat_when(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_when(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.When, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TimingRepeat_when(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_durationMax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, @@ -172176,8 +172581,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_id(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _TimingRepeat_durationMax(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_durationMax(ctx, field) +func (ec *executionContext) _TimingRepeat_timeOfDay(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_timeOfDay(ctx, field) if err != nil { return graphql.Null } @@ -172190,7 +172595,7 @@ func (ec *executionContext) _TimingRepeat_durationMax(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DurationMax, nil + return obj.TimeOfDay, nil }) if err != nil { ec.Error(ctx, err) @@ -172204,7 +172609,7 @@ func (ec *executionContext) _TimingRepeat_durationMax(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_durationMax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_timeOfDay(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, @@ -172258,8 +172663,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_period(_ context.Context, return fc, nil } -func (ec *executionContext) _TimingRepeat_boundsDuration(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_boundsDuration(ctx, field) +func (ec *executionContext) _TimingRepeat_dayOfWeek(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_dayOfWeek(ctx, field) if err != nil { return graphql.Null } @@ -172272,7 +172677,7 @@ func (ec *executionContext) _TimingRepeat_boundsDuration(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BoundsDuration, nil + return obj.DayOfWeek, nil }) if err != nil { ec.Error(ctx, err) @@ -172281,44 +172686,26 @@ func (ec *executionContext) _TimingRepeat_boundsDuration(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Duration) + res := resTmp.(*string) fc.Result = res - return ec.marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_boundsDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_dayOfWeek(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "code": - return ec.fieldContext_Duration_code(ctx, field) - case "comparator": - return ec.fieldContext_Duration_comparator(ctx, field) - case "extension": - return ec.fieldContext_Duration_extension(ctx, field) - case "id": - return ec.fieldContext_Duration_id(ctx, field) - case "resourceType": - return ec.fieldContext_Duration_resourceType(ctx, field) - case "system": - return ec.fieldContext_Duration_system(ctx, field) - case "unit": - return ec.fieldContext_Duration_unit(ctx, field) - case "value": - return ec.fieldContext_Duration_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Duration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TimingRepeat_frequencyMax(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_frequencyMax(ctx, field) +func (ec *executionContext) _TimingRepeat_offset(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_offset(ctx, field) if err != nil { return graphql.Null } @@ -172331,7 +172718,7 @@ func (ec *executionContext) _TimingRepeat_frequencyMax(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FrequencyMax, nil + return obj.Offset, nil }) if err != nil { ec.Error(ctx, err) @@ -172345,7 +172732,7 @@ func (ec *executionContext) _TimingRepeat_frequencyMax(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_frequencyMax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_offset(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, @@ -172399,8 +172786,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_frequency(_ context.Contex return fc, nil } -func (ec *executionContext) _TimingRepeat_periodMax(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_periodMax(ctx, field) +func (ec *executionContext) _TimingRepeat_duration(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_duration(ctx, field) if err != nil { return graphql.Null } @@ -172413,7 +172800,7 @@ func (ec *executionContext) _TimingRepeat_periodMax(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PeriodMax, nil + return obj.Duration, nil }) if err != nil { ec.Error(ctx, err) @@ -172427,7 +172814,7 @@ func (ec *executionContext) _TimingRepeat_periodMax(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_periodMax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_duration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, @@ -172476,16 +172863,16 @@ func (ec *executionContext) fieldContext_TimingRepeat_boundsPeriod(_ context.Con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "start": + return ec.fieldContext_Period_start(ctx, field) + case "end": + return ec.fieldContext_Period_end(ctx, field) case "extension": return ec.fieldContext_Period_extension(ctx, field) case "id": return ec.fieldContext_Period_id(ctx, field) case "resourceType": return ec.fieldContext_Period_resourceType(ctx, field) - case "start": - return ec.fieldContext_Period_start(ctx, field) - case "end": - return ec.fieldContext_Period_end(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Period", field.Name) }, @@ -172493,8 +172880,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_boundsPeriod(_ context.Con return fc, nil } -func (ec *executionContext) _TimingRepeat_dayOfWeek(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_dayOfWeek(ctx, field) +func (ec *executionContext) _TimingRepeat_extension(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_extension(ctx, field) if err != nil { return graphql.Null } @@ -172507,7 +172894,7 @@ func (ec *executionContext) _TimingRepeat_dayOfWeek(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DayOfWeek, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -172516,26 +172903,142 @@ func (ec *executionContext) _TimingRepeat_dayOfWeek(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_dayOfWeek(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _TimingRepeat_timeOfDay(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_timeOfDay(ctx, field) +func (ec *executionContext) _TimingRepeat_periodUnit(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_periodUnit(ctx, field) if err != nil { return graphql.Null } @@ -172548,7 +173051,7 @@ func (ec *executionContext) _TimingRepeat_timeOfDay(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TimeOfDay, nil + return obj.PeriodUnit, nil }) if err != nil { ec.Error(ctx, err) @@ -172562,7 +173065,7 @@ func (ec *executionContext) _TimingRepeat_timeOfDay(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_timeOfDay(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TimingRepeat_periodUnit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TimingRepeat", Field: field, @@ -172575,8 +173078,8 @@ func (ec *executionContext) fieldContext_TimingRepeat_timeOfDay(_ context.Contex return fc, nil } -func (ec *executionContext) _TimingRepeat_offset(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TimingRepeat_offset(ctx, field) +func (ec *executionContext) _TriggerDefinition_data(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_data(ctx, field) if err != nil { return graphql.Null } @@ -172589,7 +173092,7 @@ func (ec *executionContext) _TimingRepeat_offset(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Offset, nil + return obj.Data, nil }) if err != nil { ec.Error(ctx, err) @@ -172598,26 +173101,54 @@ func (ec *executionContext) _TimingRepeat_offset(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.DataRequirement) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalODataRequirement2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TimingRepeat_offset(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TimingRepeat", + Object: "TriggerDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "type": + return ec.fieldContext_DataRequirement_type(ctx, field) + case "valueFilter": + return ec.fieldContext_DataRequirement_valueFilter(ctx, field) + case "id": + return ec.fieldContext_DataRequirement_id(ctx, field) + case "profile": + return ec.fieldContext_DataRequirement_profile(ctx, field) + case "subjectReference": + return ec.fieldContext_DataRequirement_subjectReference(ctx, field) + case "codeFilter": + return ec.fieldContext_DataRequirement_codeFilter(ctx, field) + case "limit": + return ec.fieldContext_DataRequirement_limit(ctx, field) + case "subjectCodeableConcept": + return ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) + case "mustSupport": + return ec.fieldContext_DataRequirement_mustSupport(ctx, field) + case "extension": + return ec.fieldContext_DataRequirement_extension(ctx, field) + case "resourceType": + return ec.fieldContext_DataRequirement_resourceType(ctx, field) + case "sort": + return ec.fieldContext_DataRequirement_sort(ctx, field) + case "dateFilter": + return ec.fieldContext_DataRequirement_dateFilter(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DataRequirement", field.Name) }, } return fc, nil } -func (ec *executionContext) _TriggerDefinition_condition(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_condition(ctx, field) +func (ec *executionContext) _TriggerDefinition_id(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_id(ctx, field) if err != nil { return graphql.Null } @@ -172630,7 +173161,7 @@ func (ec *executionContext) _TriggerDefinition_condition(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Condition, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -172639,37 +173170,19 @@ func (ec *executionContext) _TriggerDefinition_condition(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Expression) + res := resTmp.(*string) fc.Result = res - return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TriggerDefinition_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TriggerDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "expression": - return ec.fieldContext_Expression_expression(ctx, field) - case "extension": - return ec.fieldContext_Expression_extension(ctx, field) - case "id": - return ec.fieldContext_Expression_id(ctx, field) - case "language": - return ec.fieldContext_Expression_language(ctx, field) - case "name": - return ec.fieldContext_Expression_name(ctx, field) - case "reference": - return ec.fieldContext_Expression_reference(ctx, field) - case "resourceType": - return ec.fieldContext_Expression_resourceType(ctx, field) - case "description": - return ec.fieldContext_Expression_description(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Expression", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil @@ -172716,8 +173229,8 @@ func (ec *executionContext) fieldContext_TriggerDefinition_name(_ context.Contex return fc, nil } -func (ec *executionContext) _TriggerDefinition_data(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_data(ctx, field) +func (ec *executionContext) _TriggerDefinition_code(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_code(ctx, field) if err != nil { return graphql.Null } @@ -172730,7 +173243,7 @@ func (ec *executionContext) _TriggerDefinition_data(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Data, nil + return obj.Code, nil }) if err != nil { ec.Error(ctx, err) @@ -172739,12 +173252,12 @@ func (ec *executionContext) _TriggerDefinition_data(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.DataRequirement) + res := resTmp.(*model.CodeableConcept) fc.Result = res - return ec.marshalODataRequirement2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TriggerDefinition_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TriggerDefinition", Field: field, @@ -172752,41 +173265,25 @@ func (ec *executionContext) fieldContext_TriggerDefinition_data(_ context.Contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "type": - return ec.fieldContext_DataRequirement_type(ctx, field) - case "valueFilter": - return ec.fieldContext_DataRequirement_valueFilter(ctx, field) - case "dateFilter": - return ec.fieldContext_DataRequirement_dateFilter(ctx, field) - case "limit": - return ec.fieldContext_DataRequirement_limit(ctx, field) - case "subjectCodeableConcept": - return ec.fieldContext_DataRequirement_subjectCodeableConcept(ctx, field) + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) + case "text": + return ec.fieldContext_CodeableConcept_text(ctx, field) + case "coding": + return ec.fieldContext_CodeableConcept_coding(ctx, field) case "extension": - return ec.fieldContext_DataRequirement_extension(ctx, field) - case "mustSupport": - return ec.fieldContext_DataRequirement_mustSupport(ctx, field) - case "sort": - return ec.fieldContext_DataRequirement_sort(ctx, field) + return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": - return ec.fieldContext_DataRequirement_id(ctx, field) - case "profile": - return ec.fieldContext_DataRequirement_profile(ctx, field) - case "subjectReference": - return ec.fieldContext_DataRequirement_subjectReference(ctx, field) - case "resourceType": - return ec.fieldContext_DataRequirement_resourceType(ctx, field) - case "codeFilter": - return ec.fieldContext_DataRequirement_codeFilter(ctx, field) + return ec.fieldContext_CodeableConcept_id(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DataRequirement", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, } return fc, nil } -func (ec *executionContext) _TriggerDefinition_extension(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_extension(ctx, field) +func (ec *executionContext) _TriggerDefinition_condition(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_condition(ctx, field) if err != nil { return graphql.Null } @@ -172799,7 +173296,7 @@ func (ec *executionContext) _TriggerDefinition_extension(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.Condition, nil }) if err != nil { ec.Error(ctx, err) @@ -172808,12 +173305,12 @@ func (ec *executionContext) _TriggerDefinition_extension(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.Expression) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TriggerDefinition_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_condition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TriggerDefinition", Field: field, @@ -172821,163 +173318,24 @@ func (ec *executionContext) fieldContext_TriggerDefinition_extension(_ context.C IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "expression": + return ec.fieldContext_Expression_expression(ctx, field) + case "extension": + return ec.fieldContext_Expression_extension(ctx, field) case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) + return ec.fieldContext_Expression_id(ctx, field) + case "language": + return ec.fieldContext_Expression_language(ctx, field) + case "name": + return ec.fieldContext_Expression_name(ctx, field) + case "reference": + return ec.fieldContext_Expression_reference(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_Expression_resourceType(ctx, field) + case "description": + return ec.fieldContext_Expression_description(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TriggerDefinition_id(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TriggerDefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TriggerDefinition", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type Expression", field.Name) }, } return fc, nil @@ -173019,10 +173377,6 @@ func (ec *executionContext) fieldContext_TriggerDefinition_timingTiming(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "repeat": - return ec.fieldContext_Timing_repeat(ctx, field) - case "resourceType": - return ec.fieldContext_Timing_resourceType(ctx, field) case "code": return ec.fieldContext_Timing_code(ctx, field) case "event": @@ -173033,6 +173387,10 @@ func (ec *executionContext) fieldContext_TriggerDefinition_timingTiming(_ contex return ec.fieldContext_Timing_id(ctx, field) case "modifierExtension": return ec.fieldContext_Timing_modifierExtension(ctx, field) + case "repeat": + return ec.fieldContext_Timing_repeat(ctx, field) + case "resourceType": + return ec.fieldContext_Timing_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Timing", field.Name) }, @@ -173040,8 +173398,8 @@ func (ec *executionContext) fieldContext_TriggerDefinition_timingTiming(_ contex return fc, nil } -func (ec *executionContext) _TriggerDefinition_code(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_code(ctx, field) +func (ec *executionContext) _TriggerDefinition_subscriptionTopic(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_subscriptionTopic(ctx, field) if err != nil { return graphql.Null } @@ -173054,7 +173412,7 @@ func (ec *executionContext) _TriggerDefinition_code(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Code, nil + return obj.SubscriptionTopic, nil }) if err != nil { ec.Error(ctx, err) @@ -173063,38 +173421,26 @@ func (ec *executionContext) _TriggerDefinition_code(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.CodeableConcept) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TriggerDefinition_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_subscriptionTopic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TriggerDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "text": - return ec.fieldContext_CodeableConcept_text(ctx, field) - case "coding": - return ec.fieldContext_CodeableConcept_coding(ctx, field) - case "extension": - return ec.fieldContext_CodeableConcept_extension(ctx, field) - case "id": - return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TriggerDefinition_timingDateTime(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_timingDateTime(ctx, field) +func (ec *executionContext) _TriggerDefinition_timingDate(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_timingDate(ctx, field) if err != nil { return graphql.Null } @@ -173107,7 +173453,7 @@ func (ec *executionContext) _TriggerDefinition_timingDateTime(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TimingDateTime, nil + return obj.TimingDate, nil }) if err != nil { ec.Error(ctx, err) @@ -173121,7 +173467,7 @@ func (ec *executionContext) _TriggerDefinition_timingDateTime(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TriggerDefinition_timingDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_timingDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TriggerDefinition", Field: field, @@ -173134,8 +173480,8 @@ func (ec *executionContext) fieldContext_TriggerDefinition_timingDateTime(_ cont return fc, nil } -func (ec *executionContext) _TriggerDefinition_type(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_type(ctx, field) +func (ec *executionContext) _TriggerDefinition_timingDateTime(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_timingDateTime(ctx, field) if err != nil { return graphql.Null } @@ -173148,7 +173494,7 @@ func (ec *executionContext) _TriggerDefinition_type(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.TimingDateTime, nil }) if err != nil { ec.Error(ctx, err) @@ -173162,7 +173508,7 @@ func (ec *executionContext) _TriggerDefinition_type(ctx context.Context, field g return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TriggerDefinition_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_timingDateTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TriggerDefinition", Field: field, @@ -173175,8 +173521,8 @@ func (ec *executionContext) fieldContext_TriggerDefinition_type(_ context.Contex return fc, nil } -func (ec *executionContext) _TriggerDefinition_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_resourceType(ctx, field) +func (ec *executionContext) _TriggerDefinition_extension(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_extension(ctx, field) if err != nil { return graphql.Null } @@ -173189,7 +173535,7 @@ func (ec *executionContext) _TriggerDefinition_resourceType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -173198,26 +173544,142 @@ func (ec *executionContext) _TriggerDefinition_resourceType(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TriggerDefinition_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TriggerDefinition", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil } -func (ec *executionContext) _TriggerDefinition_timingDate(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_timingDate(ctx, field) +func (ec *executionContext) _TriggerDefinition_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -173230,7 +173692,7 @@ func (ec *executionContext) _TriggerDefinition_timingDate(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TimingDate, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -173244,7 +173706,7 @@ func (ec *executionContext) _TriggerDefinition_timingDate(ctx context.Context, f return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TriggerDefinition_timingDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TriggerDefinition", Field: field, @@ -173257,8 +173719,8 @@ func (ec *executionContext) fieldContext_TriggerDefinition_timingDate(_ context. return fc, nil } -func (ec *executionContext) _TriggerDefinition_subscriptionTopic(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TriggerDefinition_subscriptionTopic(ctx, field) +func (ec *executionContext) _TriggerDefinition_type(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_type(ctx, field) if err != nil { return graphql.Null } @@ -173271,7 +173733,7 @@ func (ec *executionContext) _TriggerDefinition_subscriptionTopic(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubscriptionTopic, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -173285,7 +173747,7 @@ func (ec *executionContext) _TriggerDefinition_subscriptionTopic(ctx context.Con return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TriggerDefinition_subscriptionTopic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TriggerDefinition_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "TriggerDefinition", Field: field, @@ -173298,163 +173760,6 @@ func (ec *executionContext) fieldContext_TriggerDefinition_subscriptionTopic(_ c return fc, nil } -func (ec *executionContext) _UsageContext_extension(ctx context.Context, field graphql.CollectedField, obj *model.UsageContext) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UsageContext_extension(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Extension, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Extension) - fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UsageContext_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UsageContext", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) - case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) - case "extension": - return ec.fieldContext_Extension_extension(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) - }, - } - return fc, nil -} - func (ec *executionContext) _UsageContext_id(ctx context.Context, field graphql.CollectedField, obj *model.UsageContext) (ret graphql.Marshaler) { fc, err := ec.fieldContext_UsageContext_id(ctx, field) if err != nil { @@ -173573,6 +173878,8 @@ func (ec *executionContext) fieldContext_UsageContext_valueCodeableConcept(_ con IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "resourceType": + return ec.fieldContext_CodeableConcept_resourceType(ctx, field) case "text": return ec.fieldContext_CodeableConcept_text(ctx, field) case "coding": @@ -173581,8 +173888,6 @@ func (ec *executionContext) fieldContext_UsageContext_valueCodeableConcept(_ con return ec.fieldContext_CodeableConcept_extension(ctx, field) case "id": return ec.fieldContext_CodeableConcept_id(ctx, field) - case "resourceType": - return ec.fieldContext_CodeableConcept_resourceType(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type CodeableConcept", field.Name) }, @@ -173685,16 +173990,16 @@ func (ec *executionContext) fieldContext_UsageContext_valueRange(_ context.Conte IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_Range_id(ctx, field) + case "low": + return ec.fieldContext_Range_low(ctx, field) case "resourceType": return ec.fieldContext_Range_resourceType(ctx, field) case "extension": return ec.fieldContext_Range_extension(ctx, field) case "high": return ec.fieldContext_Range_high(ctx, field) - case "id": - return ec.fieldContext_Range_id(ctx, field) - case "low": - return ec.fieldContext_Range_low(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Range", field.Name) }, @@ -173723,11 +174028,14 @@ func (ec *executionContext) _UsageContext_valueReference(ctx context.Context, fi return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]model.UsageContextValueReferenceUnion) + res := resTmp.(model.UsageContextValueReferenceUnion) fc.Result = res - return ec.marshalOUsageContextValueReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐUsageContextValueReferenceUnion(ctx, field.Selections, res) + return ec.marshalNUsageContextValueReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐUsageContextValueReferenceUnion(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_UsageContext_valueReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -173790,14 +174098,6 @@ func (ec *executionContext) fieldContext_UsageContext_code(_ context.Context, fi IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) case "userSelected": return ec.fieldContext_Coding_userSelected(ctx, field) case "version": @@ -173806,6 +174106,14 @@ func (ec *executionContext) fieldContext_UsageContext_code(_ context.Context, fi return ec.fieldContext_Coding_code(ctx, field) case "display": return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, @@ -173813,8 +174121,8 @@ func (ec *executionContext) fieldContext_UsageContext_code(_ context.Context, fi return fc, nil } -func (ec *executionContext) _VirtualServiceDetail_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VirtualServiceDetail_resourceType(ctx, field) +func (ec *executionContext) _UsageContext_extension(ctx context.Context, field graphql.CollectedField, obj *model.UsageContext) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UsageContext_extension(ctx, field) if err != nil { return graphql.Null } @@ -173827,7 +174135,164 @@ func (ec *executionContext) _VirtualServiceDetail_resourceType(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ResourceType, nil + return obj.Extension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Extension) + fc.Result = res + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UsageContext_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UsageContext", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) + case "id": + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) + case "extension": + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _VirtualServiceDetail_maxParticipants(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_maxParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MaxParticipants, nil }) if err != nil { ec.Error(ctx, err) @@ -173841,7 +174306,7 @@ func (ec *executionContext) _VirtualServiceDetail_resourceType(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VirtualServiceDetail_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VirtualServiceDetail_maxParticipants(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "VirtualServiceDetail", Field: field, @@ -173854,8 +174319,8 @@ func (ec *executionContext) fieldContext_VirtualServiceDetail_resourceType(_ con return fc, nil } -func (ec *executionContext) _VirtualServiceDetail_additionalInfo(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VirtualServiceDetail_additionalInfo(ctx, field) +func (ec *executionContext) _VirtualServiceDetail_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_resourceType(ctx, field) if err != nil { return graphql.Null } @@ -173868,7 +174333,7 @@ func (ec *executionContext) _VirtualServiceDetail_additionalInfo(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AdditionalInfo, nil + return obj.ResourceType, nil }) if err != nil { ec.Error(ctx, err) @@ -173882,7 +174347,7 @@ func (ec *executionContext) _VirtualServiceDetail_additionalInfo(ctx context.Con return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VirtualServiceDetail_additionalInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VirtualServiceDetail_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "VirtualServiceDetail", Field: field, @@ -173895,8 +174360,8 @@ func (ec *executionContext) fieldContext_VirtualServiceDetail_additionalInfo(_ c return fc, nil } -func (ec *executionContext) _VirtualServiceDetail_addressContactPoint(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VirtualServiceDetail_addressContactPoint(ctx, field) +func (ec *executionContext) _VirtualServiceDetail_additionalInfo(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_additionalInfo(ctx, field) if err != nil { return graphql.Null } @@ -173909,7 +174374,7 @@ func (ec *executionContext) _VirtualServiceDetail_addressContactPoint(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AddressContactPoint, nil + return obj.AdditionalInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -173918,44 +174383,26 @@ func (ec *executionContext) _VirtualServiceDetail_addressContactPoint(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ContactPoint) + res := resTmp.(*string) fc.Result = res - return ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VirtualServiceDetail_addressContactPoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VirtualServiceDetail_additionalInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "VirtualServiceDetail", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_ContactPoint_extension(ctx, field) - case "id": - return ec.fieldContext_ContactPoint_id(ctx, field) - case "period": - return ec.fieldContext_ContactPoint_period(ctx, field) - case "rank": - return ec.fieldContext_ContactPoint_rank(ctx, field) - case "resourceType": - return ec.fieldContext_ContactPoint_resourceType(ctx, field) - case "system": - return ec.fieldContext_ContactPoint_system(ctx, field) - case "use": - return ec.fieldContext_ContactPoint_use(ctx, field) - case "value": - return ec.fieldContext_ContactPoint_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _VirtualServiceDetail_addressExtendedContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VirtualServiceDetail_addressExtendedContactDetail(ctx, field) +func (ec *executionContext) _VirtualServiceDetail_extension(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_extension(ctx, field) if err != nil { return graphql.Null } @@ -173968,7 +174415,7 @@ func (ec *executionContext) _VirtualServiceDetail_addressExtendedContactDetail(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AddressExtendedContactDetail, nil + return obj.Extension, nil }) if err != nil { ec.Error(ctx, err) @@ -173977,12 +174424,12 @@ func (ec *executionContext) _VirtualServiceDetail_addressExtendedContactDetail(c if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ExtendedContactDetail) + res := resTmp.([]*model.Extension) fc.Result = res - return ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) + return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VirtualServiceDetail_addressExtendedContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VirtualServiceDetail_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "VirtualServiceDetail", Field: field, @@ -173990,26 +174437,122 @@ func (ec *executionContext) fieldContext_VirtualServiceDetail_addressExtendedCon IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_ExtendedContactDetail_name(ctx, field) - case "organization": - return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) - case "purpose": - return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) - case "resourceType": - return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) - case "telecom": - return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) - case "address": - return ec.fieldContext_ExtendedContactDetail_address(ctx, field) + case "valuePeriod": + return ec.fieldContext_Extension_valuePeriod(ctx, field) + case "valueQuantity": + return ec.fieldContext_Extension_valueQuantity(ctx, field) + case "valueExpression": + return ec.fieldContext_Extension_valueExpression(ctx, field) + case "valueSampledData": + return ec.fieldContext_Extension_valueSampledData(ctx, field) + case "valueContactDetail": + return ec.fieldContext_Extension_valueContactDetail(ctx, field) + case "valueCodeableReference": + return ec.fieldContext_Extension_valueCodeableReference(ctx, field) + case "valueRelatedArtifact": + return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) + case "valueParameterDefinition": + return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) + case "valueInstant": + return ec.fieldContext_Extension_valueInstant(ctx, field) + case "valueExtendedContactDetail": + return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) + case "valueId": + return ec.fieldContext_Extension_valueId(ctx, field) + case "valueCount": + return ec.fieldContext_Extension_valueCount(ctx, field) + case "valueCoding": + return ec.fieldContext_Extension_valueCoding(ctx, field) + case "valueUsageContext": + return ec.fieldContext_Extension_valueUsageContext(ctx, field) + case "valueInteger": + return ec.fieldContext_Extension_valueInteger(ctx, field) + case "valueUuid": + return ec.fieldContext_Extension_valueUuid(ctx, field) + case "valueMeta": + return ec.fieldContext_Extension_valueMeta(ctx, field) + case "valueOid": + return ec.fieldContext_Extension_valueOid(ctx, field) + case "valueTriggerDefinition": + return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) case "id": - return ec.fieldContext_ExtendedContactDetail_id(ctx, field) + return ec.fieldContext_Extension_id(ctx, field) + case "valueMarkdown": + return ec.fieldContext_Extension_valueMarkdown(ctx, field) + case "valueIdentifier": + return ec.fieldContext_Extension_valueIdentifier(ctx, field) + case "valueRange": + return ec.fieldContext_Extension_valueRange(ctx, field) + case "valueAttachment": + return ec.fieldContext_Extension_valueAttachment(ctx, field) + case "valueDate": + return ec.fieldContext_Extension_valueDate(ctx, field) + case "valueRatio": + return ec.fieldContext_Extension_valueRatio(ctx, field) + case "valueBoolean": + return ec.fieldContext_Extension_valueBoolean(ctx, field) + case "valueString": + return ec.fieldContext_Extension_valueString(ctx, field) + case "valueDuration": + return ec.fieldContext_Extension_valueDuration(ctx, field) + case "valueDataRequirement": + return ec.fieldContext_Extension_valueDataRequirement(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) + case "valueContactPoint": + return ec.fieldContext_Extension_valueContactPoint(ctx, field) + case "valueAvailability": + return ec.fieldContext_Extension_valueAvailability(ctx, field) + case "valueDosage": + return ec.fieldContext_Extension_valueDosage(ctx, field) + case "valueUnsignedInt": + return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) + case "valueAge": + return ec.fieldContext_Extension_valueAge(ctx, field) + case "valueHumanName": + return ec.fieldContext_Extension_valueHumanName(ctx, field) + case "valueInteger64": + return ec.fieldContext_Extension_valueInteger64(ctx, field) + case "valueUrl": + return ec.fieldContext_Extension_valueUrl(ctx, field) case "extension": - return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) - case "period": - return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + return ec.fieldContext_Extension_extension(ctx, field) + case "valueBase64Binary": + return ec.fieldContext_Extension_valueBase64Binary(ctx, field) + case "valueCode": + return ec.fieldContext_Extension_valueCode(ctx, field) + case "resourceType": + return ec.fieldContext_Extension_resourceType(ctx, field) + case "valueDecimal": + return ec.fieldContext_Extension_valueDecimal(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_Extension_valuePositiveInt(ctx, field) + case "valueAddress": + return ec.fieldContext_Extension_valueAddress(ctx, field) + case "valueUri": + return ec.fieldContext_Extension_valueUri(ctx, field) + case "valueSignature": + return ec.fieldContext_Extension_valueSignature(ctx, field) + case "valueDateTime": + return ec.fieldContext_Extension_valueDateTime(ctx, field) + case "valueTime": + return ec.fieldContext_Extension_valueTime(ctx, field) + case "valueMoney": + return ec.fieldContext_Extension_valueMoney(ctx, field) + case "valueDistance": + return ec.fieldContext_Extension_valueDistance(ctx, field) + case "valueTiming": + return ec.fieldContext_Extension_valueTiming(ctx, field) + case "valueRatioRange": + return ec.fieldContext_Extension_valueRatioRange(ctx, field) + case "valueCanonical": + return ec.fieldContext_Extension_valueCanonical(ctx, field) + case "url": + return ec.fieldContext_Extension_url(ctx, field) + case "valueAnnotation": + return ec.fieldContext_Extension_valueAnnotation(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) }, } return fc, nil @@ -174056,8 +174599,8 @@ func (ec *executionContext) fieldContext_VirtualServiceDetail_sessionKey(_ conte return fc, nil } -func (ec *executionContext) _VirtualServiceDetail_extension(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VirtualServiceDetail_extension(ctx, field) +func (ec *executionContext) _VirtualServiceDetail_addressContactPoint(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_addressContactPoint(ctx, field) if err != nil { return graphql.Null } @@ -174070,7 +174613,7 @@ func (ec *executionContext) _VirtualServiceDetail_extension(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Extension, nil + return obj.AddressContactPoint, nil }) if err != nil { ec.Error(ctx, err) @@ -174079,12 +174622,12 @@ func (ec *executionContext) _VirtualServiceDetail_extension(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.Extension) + res := resTmp.(*model.ContactPoint) fc.Result = res - return ec.marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, field.Selections, res) + return ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VirtualServiceDetail_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VirtualServiceDetail_addressContactPoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "VirtualServiceDetail", Field: field, @@ -174092,129 +174635,31 @@ func (ec *executionContext) fieldContext_VirtualServiceDetail_extension(_ contex IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "valueUri": - return ec.fieldContext_Extension_valueUri(ctx, field) - case "valueInteger": - return ec.fieldContext_Extension_valueInteger(ctx, field) - case "valueAttachment": - return ec.fieldContext_Extension_valueAttachment(ctx, field) - case "valueParameterDefinition": - return ec.fieldContext_Extension_valueParameterDefinition(ctx, field) - case "valueInteger64": - return ec.fieldContext_Extension_valueInteger64(ctx, field) - case "valueHumanName": - return ec.fieldContext_Extension_valueHumanName(ctx, field) - case "valueAge": - return ec.fieldContext_Extension_valueAge(ctx, field) - case "valueCodeableConcept": - return ec.fieldContext_Extension_valueCodeableConcept(ctx, field) - case "valueSampledData": - return ec.fieldContext_Extension_valueSampledData(ctx, field) - case "valueDateTime": - return ec.fieldContext_Extension_valueDateTime(ctx, field) - case "valueExtendedContactDetail": - return ec.fieldContext_Extension_valueExtendedContactDetail(ctx, field) - case "valueMarkdown": - return ec.fieldContext_Extension_valueMarkdown(ctx, field) - case "valueTriggerDefinition": - return ec.fieldContext_Extension_valueTriggerDefinition(ctx, field) - case "valueString": - return ec.fieldContext_Extension_valueString(ctx, field) - case "valueContactPoint": - return ec.fieldContext_Extension_valueContactPoint(ctx, field) - case "valueAnnotation": - return ec.fieldContext_Extension_valueAnnotation(ctx, field) - case "valueContactDetail": - return ec.fieldContext_Extension_valueContactDetail(ctx, field) - case "valueQuantity": - return ec.fieldContext_Extension_valueQuantity(ctx, field) - case "valueUuid": - return ec.fieldContext_Extension_valueUuid(ctx, field) - case "valueRange": - return ec.fieldContext_Extension_valueRange(ctx, field) - case "valueCanonical": - return ec.fieldContext_Extension_valueCanonical(ctx, field) - case "valueCodeableReference": - return ec.fieldContext_Extension_valueCodeableReference(ctx, field) - case "id": - return ec.fieldContext_Extension_id(ctx, field) - case "valueRatio": - return ec.fieldContext_Extension_valueRatio(ctx, field) - case "valueOid": - return ec.fieldContext_Extension_valueOid(ctx, field) - case "valueRatioRange": - return ec.fieldContext_Extension_valueRatioRange(ctx, field) - case "valueInstant": - return ec.fieldContext_Extension_valueInstant(ctx, field) - case "valueDuration": - return ec.fieldContext_Extension_valueDuration(ctx, field) - case "valueRelatedArtifact": - return ec.fieldContext_Extension_valueRelatedArtifact(ctx, field) - case "valueSignature": - return ec.fieldContext_Extension_valueSignature(ctx, field) - case "valueDate": - return ec.fieldContext_Extension_valueDate(ctx, field) - case "valueDosage": - return ec.fieldContext_Extension_valueDosage(ctx, field) - case "valueBase64Binary": - return ec.fieldContext_Extension_valueBase64Binary(ctx, field) - case "valuePeriod": - return ec.fieldContext_Extension_valuePeriod(ctx, field) - case "valueMoney": - return ec.fieldContext_Extension_valueMoney(ctx, field) - case "valueIdentifier": - return ec.fieldContext_Extension_valueIdentifier(ctx, field) - case "url": - return ec.fieldContext_Extension_url(ctx, field) - case "valueCode": - return ec.fieldContext_Extension_valueCode(ctx, field) - case "valuePositiveInt": - return ec.fieldContext_Extension_valuePositiveInt(ctx, field) - case "valueId": - return ec.fieldContext_Extension_valueId(ctx, field) - case "valueUnsignedInt": - return ec.fieldContext_Extension_valueUnsignedInt(ctx, field) - case "valueDataRequirement": - return ec.fieldContext_Extension_valueDataRequirement(ctx, field) - case "valueTime": - return ec.fieldContext_Extension_valueTime(ctx, field) - case "valueCoding": - return ec.fieldContext_Extension_valueCoding(ctx, field) - case "valueTiming": - return ec.fieldContext_Extension_valueTiming(ctx, field) - case "valueExpression": - return ec.fieldContext_Extension_valueExpression(ctx, field) - case "valueDistance": - return ec.fieldContext_Extension_valueDistance(ctx, field) - case "valueCount": - return ec.fieldContext_Extension_valueCount(ctx, field) case "resourceType": - return ec.fieldContext_Extension_resourceType(ctx, field) - case "valueAvailability": - return ec.fieldContext_Extension_valueAvailability(ctx, field) - case "valueUrl": - return ec.fieldContext_Extension_valueUrl(ctx, field) - case "valueBoolean": - return ec.fieldContext_Extension_valueBoolean(ctx, field) - case "valueDecimal": - return ec.fieldContext_Extension_valueDecimal(ctx, field) - case "valueMeta": - return ec.fieldContext_Extension_valueMeta(ctx, field) - case "valueAddress": - return ec.fieldContext_Extension_valueAddress(ctx, field) - case "valueUsageContext": - return ec.fieldContext_Extension_valueUsageContext(ctx, field) + return ec.fieldContext_ContactPoint_resourceType(ctx, field) + case "system": + return ec.fieldContext_ContactPoint_system(ctx, field) + case "use": + return ec.fieldContext_ContactPoint_use(ctx, field) + case "value": + return ec.fieldContext_ContactPoint_value(ctx, field) case "extension": - return ec.fieldContext_Extension_extension(ctx, field) + return ec.fieldContext_ContactPoint_extension(ctx, field) + case "id": + return ec.fieldContext_ContactPoint_id(ctx, field) + case "period": + return ec.fieldContext_ContactPoint_period(ctx, field) + case "rank": + return ec.fieldContext_ContactPoint_rank(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Extension", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactPoint", field.Name) }, } return fc, nil } -func (ec *executionContext) _VirtualServiceDetail_id(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VirtualServiceDetail_id(ctx, field) +func (ec *executionContext) _VirtualServiceDetail_addressString(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_addressString(ctx, field) if err != nil { return graphql.Null } @@ -174227,7 +174672,7 @@ func (ec *executionContext) _VirtualServiceDetail_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.AddressString, nil }) if err != nil { ec.Error(ctx, err) @@ -174241,7 +174686,7 @@ func (ec *executionContext) _VirtualServiceDetail_id(ctx context.Context, field return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VirtualServiceDetail_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VirtualServiceDetail_addressString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "VirtualServiceDetail", Field: field, @@ -174254,8 +174699,8 @@ func (ec *executionContext) fieldContext_VirtualServiceDetail_id(_ context.Conte return fc, nil } -func (ec *executionContext) _VirtualServiceDetail_addressString(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VirtualServiceDetail_addressString(ctx, field) +func (ec *executionContext) _VirtualServiceDetail_addressExtendedContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_addressExtendedContactDetail(ctx, field) if err != nil { return graphql.Null } @@ -174268,7 +174713,7 @@ func (ec *executionContext) _VirtualServiceDetail_addressString(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AddressString, nil + return obj.AddressExtendedContactDetail, nil }) if err != nil { ec.Error(ctx, err) @@ -174277,19 +174722,39 @@ func (ec *executionContext) _VirtualServiceDetail_addressString(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ExtendedContactDetail) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VirtualServiceDetail_addressString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VirtualServiceDetail_addressExtendedContactDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "VirtualServiceDetail", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "period": + return ec.fieldContext_ExtendedContactDetail_period(ctx, field) + case "telecom": + return ec.fieldContext_ExtendedContactDetail_telecom(ctx, field) + case "address": + return ec.fieldContext_ExtendedContactDetail_address(ctx, field) + case "organization": + return ec.fieldContext_ExtendedContactDetail_organization(ctx, field) + case "purpose": + return ec.fieldContext_ExtendedContactDetail_purpose(ctx, field) + case "resourceType": + return ec.fieldContext_ExtendedContactDetail_resourceType(ctx, field) + case "name": + return ec.fieldContext_ExtendedContactDetail_name(ctx, field) + case "extension": + return ec.fieldContext_ExtendedContactDetail_extension(ctx, field) + case "id": + return ec.fieldContext_ExtendedContactDetail_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExtendedContactDetail", field.Name) }, } return fc, nil @@ -174336,8 +174801,8 @@ func (ec *executionContext) fieldContext_VirtualServiceDetail_addressUrl(_ conte return fc, nil } -func (ec *executionContext) _VirtualServiceDetail_channelType(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VirtualServiceDetail_channelType(ctx, field) +func (ec *executionContext) _VirtualServiceDetail_id(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_id(ctx, field) if err != nil { return graphql.Null } @@ -174350,7 +174815,7 @@ func (ec *executionContext) _VirtualServiceDetail_channelType(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChannelType, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -174359,44 +174824,26 @@ func (ec *executionContext) _VirtualServiceDetail_channelType(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.Coding) + res := resTmp.(*string) fc.Result = res - return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VirtualServiceDetail_channelType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VirtualServiceDetail_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "VirtualServiceDetail", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "extension": - return ec.fieldContext_Coding_extension(ctx, field) - case "id": - return ec.fieldContext_Coding_id(ctx, field) - case "resourceType": - return ec.fieldContext_Coding_resourceType(ctx, field) - case "system": - return ec.fieldContext_Coding_system(ctx, field) - case "userSelected": - return ec.fieldContext_Coding_userSelected(ctx, field) - case "version": - return ec.fieldContext_Coding_version(ctx, field) - case "code": - return ec.fieldContext_Coding_code(ctx, field) - case "display": - return ec.fieldContext_Coding_display(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _VirtualServiceDetail_maxParticipants(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_VirtualServiceDetail_maxParticipants(ctx, field) +func (ec *executionContext) _VirtualServiceDetail_channelType(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_channelType(ctx, field) if err != nil { return graphql.Null } @@ -174409,7 +174856,7 @@ func (ec *executionContext) _VirtualServiceDetail_maxParticipants(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxParticipants, nil + return obj.ChannelType, nil }) if err != nil { ec.Error(ctx, err) @@ -174418,19 +174865,37 @@ func (ec *executionContext) _VirtualServiceDetail_maxParticipants(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.Coding) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_VirtualServiceDetail_maxParticipants(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VirtualServiceDetail_channelType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "VirtualServiceDetail", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "userSelected": + return ec.fieldContext_Coding_userSelected(ctx, field) + case "version": + return ec.fieldContext_Coding_version(ctx, field) + case "code": + return ec.fieldContext_Coding_code(ctx, field) + case "display": + return ec.fieldContext_Coding_display(ctx, field) + case "extension": + return ec.fieldContext_Coding_extension(ctx, field) + case "id": + return ec.fieldContext_Coding_id(ctx, field) + case "resourceType": + return ec.fieldContext_Coding_resourceType(ctx, field) + case "system": + return ec.fieldContext_Coding_system(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Coding", field.Name) }, } return fc, nil @@ -179682,32 +180147,32 @@ func (ec *executionContext) _Address(ctx context.Context, sel ast.SelectionSet, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Address") - case "text": - out.Values[i] = ec._Address_text(ctx, field, obj) - case "use": - out.Values[i] = ec._Address_use(ctx, field, obj) - case "id": - out.Values[i] = ec._Address_id(ctx, field, obj) - case "line": - out.Values[i] = ec._Address_line(ctx, field, obj) case "country": out.Values[i] = ec._Address_country(ctx, field, obj) - case "postalCode": - out.Values[i] = ec._Address_postalCode(ctx, field, obj) - case "state": - out.Values[i] = ec._Address_state(ctx, field, obj) - case "city": - out.Values[i] = ec._Address_city(ctx, field, obj) + case "extension": + out.Values[i] = ec._Address_extension(ctx, field, obj) + case "use": + out.Values[i] = ec._Address_use(ctx, field, obj) case "district": out.Values[i] = ec._Address_district(ctx, field, obj) case "period": out.Values[i] = ec._Address_period(ctx, field, obj) case "resourceType": out.Values[i] = ec._Address_resourceType(ctx, field, obj) + case "text": + out.Values[i] = ec._Address_text(ctx, field, obj) + case "city": + out.Values[i] = ec._Address_city(ctx, field, obj) + case "postalCode": + out.Values[i] = ec._Address_postalCode(ctx, field, obj) + case "line": + out.Values[i] = ec._Address_line(ctx, field, obj) + case "state": + out.Values[i] = ec._Address_state(ctx, field, obj) case "type": out.Values[i] = ec._Address_type(ctx, field, obj) - case "extension": - out.Values[i] = ec._Address_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Address_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -179742,6 +180207,10 @@ func (ec *executionContext) _Age(ctx context.Context, sel ast.SelectionSet, obj switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Age") + case "unit": + out.Values[i] = ec._Age_unit(ctx, field, obj) + case "value": + out.Values[i] = ec._Age_value(ctx, field, obj) case "code": out.Values[i] = ec._Age_code(ctx, field, obj) case "comparator": @@ -179754,10 +180223,6 @@ func (ec *executionContext) _Age(ctx context.Context, sel ast.SelectionSet, obj out.Values[i] = ec._Age_resourceType(ctx, field, obj) case "system": out.Values[i] = ec._Age_system(ctx, field, obj) - case "unit": - out.Values[i] = ec._Age_unit(ctx, field, obj) - case "value": - out.Values[i] = ec._Age_value(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -179792,12 +180257,6 @@ func (ec *executionContext) _Annotation(ctx context.Context, sel ast.SelectionSe switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Annotation") - case "authorString": - out.Values[i] = ec._Annotation_authorString(ctx, field, obj) - case "extension": - out.Values[i] = ec._Annotation_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._Annotation_id(ctx, field, obj) case "resourceType": out.Values[i] = ec._Annotation_resourceType(ctx, field, obj) case "text": @@ -179806,6 +180265,15 @@ func (ec *executionContext) _Annotation(ctx context.Context, sel ast.SelectionSe out.Values[i] = ec._Annotation_time(ctx, field, obj) case "authorReference": out.Values[i] = ec._Annotation_authorReference(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "authorString": + out.Values[i] = ec._Annotation_authorString(ctx, field, obj) + case "extension": + out.Values[i] = ec._Annotation_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Annotation_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -179840,38 +180308,38 @@ func (ec *executionContext) _Attachment(ctx context.Context, sel ast.SelectionSe switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Attachment") - case "width": - out.Values[i] = ec._Attachment_width(ctx, field, obj) - case "pages": - out.Values[i] = ec._Attachment_pages(ctx, field, obj) - case "extension": - out.Values[i] = ec._Attachment_extension(ctx, field, obj) - case "data": - out.Values[i] = ec._Attachment_data(ctx, field, obj) + case "frames": + out.Values[i] = ec._Attachment_frames(ctx, field, obj) case "size": out.Values[i] = ec._Attachment_size(ctx, field, obj) - case "duration": - out.Values[i] = ec._Attachment_duration(ctx, field, obj) case "title": out.Values[i] = ec._Attachment_title(ctx, field, obj) case "creation": out.Values[i] = ec._Attachment_creation(ctx, field, obj) case "height": out.Values[i] = ec._Attachment_height(ctx, field, obj) - case "frames": - out.Values[i] = ec._Attachment_frames(ctx, field, obj) + case "data": + out.Values[i] = ec._Attachment_data(ctx, field, obj) + case "language": + out.Values[i] = ec._Attachment_language(ctx, field, obj) case "hash": out.Values[i] = ec._Attachment_hash(ctx, field, obj) - case "url": - out.Values[i] = ec._Attachment_url(ctx, field, obj) case "resourceType": out.Values[i] = ec._Attachment_resourceType(ctx, field, obj) - case "id": - out.Values[i] = ec._Attachment_id(ctx, field, obj) + case "extension": + out.Values[i] = ec._Attachment_extension(ctx, field, obj) + case "pages": + out.Values[i] = ec._Attachment_pages(ctx, field, obj) + case "duration": + out.Values[i] = ec._Attachment_duration(ctx, field, obj) case "contentType": out.Values[i] = ec._Attachment_contentType(ctx, field, obj) - case "language": - out.Values[i] = ec._Attachment_language(ctx, field, obj) + case "id": + out.Values[i] = ec._Attachment_id(ctx, field, obj) + case "url": + out.Values[i] = ec._Attachment_url(ctx, field, obj) + case "width": + out.Values[i] = ec._Attachment_width(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -179906,16 +180374,16 @@ func (ec *executionContext) _Availability(ctx context.Context, sel ast.Selection switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Availability") + case "notAvailableTime": + out.Values[i] = ec._Availability_notAvailableTime(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Availability_resourceType(ctx, field, obj) case "availableTime": out.Values[i] = ec._Availability_availableTime(ctx, field, obj) case "extension": out.Values[i] = ec._Availability_extension(ctx, field, obj) case "id": out.Values[i] = ec._Availability_id(ctx, field, obj) - case "notAvailableTime": - out.Values[i] = ec._Availability_notAvailableTime(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._Availability_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -179998,16 +180466,16 @@ func (ec *executionContext) _AvailabilityNotAvailableTime(ctx context.Context, s switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("AvailabilityNotAvailableTime") - case "resourceType": - out.Values[i] = ec._AvailabilityNotAvailableTime_resourceType(ctx, field, obj) - case "description": - out.Values[i] = ec._AvailabilityNotAvailableTime_description(ctx, field, obj) case "during": out.Values[i] = ec._AvailabilityNotAvailableTime_during(ctx, field, obj) case "extension": out.Values[i] = ec._AvailabilityNotAvailableTime_extension(ctx, field, obj) case "id": out.Values[i] = ec._AvailabilityNotAvailableTime_id(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._AvailabilityNotAvailableTime_resourceType(ctx, field, obj) + case "description": + out.Values[i] = ec._AvailabilityNotAvailableTime_description(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180042,10 +180510,6 @@ func (ec *executionContext) _BodyStructureIncludedStructure(ctx context.Context, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("BodyStructureIncludedStructure") - case "extension": - out.Values[i] = ec._BodyStructureIncludedStructure_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._BodyStructureIncludedStructure_id(ctx, field, obj) case "laterality": out.Values[i] = ec._BodyStructureIncludedStructure_laterality(ctx, field, obj) case "modifierExtension": @@ -180058,6 +180522,10 @@ func (ec *executionContext) _BodyStructureIncludedStructure(ctx context.Context, out.Values[i] = ec._BodyStructureIncludedStructure_structure(ctx, field, obj) case "bodyLandmarkOrientation": out.Values[i] = ec._BodyStructureIncludedStructure_bodyLandmarkOrientation(ctx, field, obj) + case "extension": + out.Values[i] = ec._BodyStructureIncludedStructure_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._BodyStructureIncludedStructure_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180092,12 +180560,6 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("BodyStructureIncludedStructureBodyLandmarkOrientation") - case "id": - out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_id(ctx, field, obj) - case "landmarkDescription": - out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_resourceType(ctx, field, obj) case "surfaceOrientation": @@ -180108,6 +180570,12 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_distanceFromLandmark(ctx, field, obj) case "extension": out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_id(ctx, field, obj) + case "landmarkDescription": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180142,10 +180610,6 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark") - case "device": - out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(ctx, field, obj) - case "extension": - out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(ctx, field, obj) case "id": out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_id(ctx, field, obj) case "modifierExtension": @@ -180154,6 +180618,10 @@ func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientati out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_resourceType(ctx, field, obj) case "value": out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_value(ctx, field, obj) + case "device": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(ctx, field, obj) + case "extension": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180188,40 +180656,43 @@ func (ec *executionContext) _BodyStructureType(ctx context.Context, sel ast.Sele switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("BodyStructureType") + case "description": + out.Values[i] = ec._BodyStructureType_description(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._BodyStructureType_implicitRules(ctx, field, obj) case "patient": out.Values[i] = ec._BodyStructureType_patient(ctx, field, obj) - case "contained": - out.Values[i] = ec._BodyStructureType_contained(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "language": + out.Values[i] = ec._BodyStructureType_language(ctx, field, obj) + case "meta": + out.Values[i] = ec._BodyStructureType_meta(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._BodyStructureType_modifierExtension(ctx, field, obj) - case "active": - out.Values[i] = ec._BodyStructureType_active(ctx, field, obj) - case "identifier": - out.Values[i] = ec._BodyStructureType_identifier(ctx, field, obj) - case "image": - out.Values[i] = ec._BodyStructureType_image(ctx, field, obj) - case "extension": - out.Values[i] = ec._BodyStructureType_extension(ctx, field, obj) + case "includedStructure": + out.Values[i] = ec._BodyStructureType_includedStructure(ctx, field, obj) + case "text": + out.Values[i] = ec._BodyStructureType_text(ctx, field, obj) + case "contained": + out.Values[i] = ec._BodyStructureType_contained(ctx, field, obj) case "excludedStructure": out.Values[i] = ec._BodyStructureType_excludedStructure(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._BodyStructureType_resourceType(ctx, field, obj) + case "identifier": + out.Values[i] = ec._BodyStructureType_identifier(ctx, field, obj) case "id": out.Values[i] = ec._BodyStructureType_id(ctx, field, obj) - case "meta": - out.Values[i] = ec._BodyStructureType_meta(ctx, field, obj) - case "includedStructure": - out.Values[i] = ec._BodyStructureType_includedStructure(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._BodyStructureType_implicitRules(ctx, field, obj) + case "active": + out.Values[i] = ec._BodyStructureType_active(ctx, field, obj) case "morphology": out.Values[i] = ec._BodyStructureType_morphology(ctx, field, obj) - case "text": - out.Values[i] = ec._BodyStructureType_text(ctx, field, obj) - case "description": - out.Values[i] = ec._BodyStructureType_description(ctx, field, obj) - case "language": - out.Values[i] = ec._BodyStructureType_language(ctx, field, obj) + case "extension": + out.Values[i] = ec._BodyStructureType_extension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._BodyStructureType_resourceType(ctx, field, obj) + case "image": + out.Values[i] = ec._BodyStructureType_image(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180256,6 +180727,8 @@ func (ec *executionContext) _CodeableConcept(ctx context.Context, sel ast.Select switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("CodeableConcept") + case "resourceType": + out.Values[i] = ec._CodeableConcept_resourceType(ctx, field, obj) case "text": out.Values[i] = ec._CodeableConcept_text(ctx, field, obj) case "coding": @@ -180264,8 +180737,6 @@ func (ec *executionContext) _CodeableConcept(ctx context.Context, sel ast.Select out.Values[i] = ec._CodeableConcept_extension(ctx, field, obj) case "id": out.Values[i] = ec._CodeableConcept_id(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._CodeableConcept_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180300,14 +180771,14 @@ func (ec *executionContext) _CodeableReference(ctx context.Context, sel ast.Sele switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("CodeableReference") - case "extension": - out.Values[i] = ec._CodeableReference_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._CodeableReference_id(ctx, field, obj) case "resourceType": out.Values[i] = ec._CodeableReference_resourceType(ctx, field, obj) case "concept": out.Values[i] = ec._CodeableReference_concept(ctx, field, obj) + case "extension": + out.Values[i] = ec._CodeableReference_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._CodeableReference_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180342,14 +180813,6 @@ func (ec *executionContext) _Coding(ctx context.Context, sel ast.SelectionSet, o switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Coding") - case "extension": - out.Values[i] = ec._Coding_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._Coding_id(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._Coding_resourceType(ctx, field, obj) - case "system": - out.Values[i] = ec._Coding_system(ctx, field, obj) case "userSelected": out.Values[i] = ec._Coding_userSelected(ctx, field, obj) case "version": @@ -180358,100 +180821,114 @@ func (ec *executionContext) _Coding(ctx context.Context, sel ast.SelectionSet, o out.Values[i] = ec._Coding_code(ctx, field, obj) case "display": out.Values[i] = ec._Coding_display(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var conditionParticipantImplementors = []string{"ConditionParticipant"} - -func (ec *executionContext) _ConditionParticipant(ctx context.Context, sel ast.SelectionSet, obj *model.ConditionParticipant) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, conditionParticipantImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ConditionParticipant") - case "modifierExtension": - out.Values[i] = ec._ConditionParticipant_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ConditionParticipant_resourceType(ctx, field, obj) - case "actor": - out.Values[i] = ec._ConditionParticipant_actor(ctx, field, obj) case "extension": - out.Values[i] = ec._ConditionParticipant_extension(ctx, field, obj) - case "function": - out.Values[i] = ec._ConditionParticipant_function(ctx, field, obj) + out.Values[i] = ec._Coding_extension(ctx, field, obj) case "id": - out.Values[i] = ec._ConditionParticipant_id(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var conditionStageImplementors = []string{"ConditionStage"} - -func (ec *executionContext) _ConditionStage(ctx context.Context, sel ast.SelectionSet, obj *model.ConditionStage) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, conditionStageImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ConditionStage") + out.Values[i] = ec._Coding_id(ctx, field, obj) case "resourceType": - out.Values[i] = ec._ConditionStage_resourceType(ctx, field, obj) - case "summary": - out.Values[i] = ec._ConditionStage_summary(ctx, field, obj) - case "type": - out.Values[i] = ec._ConditionStage_type(ctx, field, obj) - case "assessment": - out.Values[i] = ec._ConditionStage_assessment(ctx, field, obj) - case "extension": - out.Values[i] = ec._ConditionStage_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._ConditionStage_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._ConditionStage_modifierExtension(ctx, field, obj) + out.Values[i] = ec._Coding_resourceType(ctx, field, obj) + case "system": + out.Values[i] = ec._Coding_system(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var conditionParticipantImplementors = []string{"ConditionParticipant"} + +func (ec *executionContext) _ConditionParticipant(ctx context.Context, sel ast.SelectionSet, obj *model.ConditionParticipant) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, conditionParticipantImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ConditionParticipant") + case "modifierExtension": + out.Values[i] = ec._ConditionParticipant_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ConditionParticipant_resourceType(ctx, field, obj) + case "actor": + out.Values[i] = ec._ConditionParticipant_actor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "extension": + out.Values[i] = ec._ConditionParticipant_extension(ctx, field, obj) + case "function": + out.Values[i] = ec._ConditionParticipant_function(ctx, field, obj) + case "id": + out.Values[i] = ec._ConditionParticipant_id(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var conditionStageImplementors = []string{"ConditionStage"} + +func (ec *executionContext) _ConditionStage(ctx context.Context, sel ast.SelectionSet, obj *model.ConditionStage) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, conditionStageImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ConditionStage") + case "resourceType": + out.Values[i] = ec._ConditionStage_resourceType(ctx, field, obj) + case "summary": + out.Values[i] = ec._ConditionStage_summary(ctx, field, obj) + case "type": + out.Values[i] = ec._ConditionStage_type(ctx, field, obj) + case "assessment": + out.Values[i] = ec._ConditionStage_assessment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "extension": + out.Values[i] = ec._ConditionStage_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._ConditionStage_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ConditionStage_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180486,70 +180963,82 @@ func (ec *executionContext) _ConditionType(ctx context.Context, sel ast.Selectio switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ConditionType") - case "contained": - out.Values[i] = ec._ConditionType_contained(ctx, field, obj) - case "abatementAge": - out.Values[i] = ec._ConditionType_abatementAge(ctx, field, obj) - case "onsetDateTime": - out.Values[i] = ec._ConditionType_onsetDateTime(ctx, field, obj) + case "bodySite": + out.Values[i] = ec._ConditionType_bodySite(ctx, field, obj) case "verificationStatus": out.Values[i] = ec._ConditionType_verificationStatus(ctx, field, obj) - case "code": - out.Values[i] = ec._ConditionType_code(ctx, field, obj) + case "contained": + out.Values[i] = ec._ConditionType_contained(ctx, field, obj) + case "identifier": + out.Values[i] = ec._ConditionType_identifier(ctx, field, obj) + case "onsetRange": + out.Values[i] = ec._ConditionType_onsetRange(ctx, field, obj) + case "category": + out.Values[i] = ec._ConditionType_category(ctx, field, obj) case "language": out.Values[i] = ec._ConditionType_language(ctx, field, obj) - case "text": - out.Values[i] = ec._ConditionType_text(ctx, field, obj) - case "abatementString": - out.Values[i] = ec._ConditionType_abatementString(ctx, field, obj) + case "abatementAge": + out.Values[i] = ec._ConditionType_abatementAge(ctx, field, obj) + case "id": + out.Values[i] = ec._ConditionType_id(ctx, field, obj) + case "onsetAge": + out.Values[i] = ec._ConditionType_onsetAge(ctx, field, obj) case "clinicalStatus": out.Values[i] = ec._ConditionType_clinicalStatus(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._ConditionType_modifierExtension(ctx, field, obj) - case "abatementRange": - out.Values[i] = ec._ConditionType_abatementRange(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ConditionType_resourceType(ctx, field, obj) - case "recordedDate": - out.Values[i] = ec._ConditionType_recordedDate(ctx, field, obj) - case "severity": - out.Values[i] = ec._ConditionType_severity(ctx, field, obj) + case "abatementPeriod": + out.Values[i] = ec._ConditionType_abatementPeriod(ctx, field, obj) case "implicitRules": out.Values[i] = ec._ConditionType_implicitRules(ctx, field, obj) - case "onsetAge": - out.Values[i] = ec._ConditionType_onsetAge(ctx, field, obj) - case "evidence": - out.Values[i] = ec._ConditionType_evidence(ctx, field, obj) - case "meta": - out.Values[i] = ec._ConditionType_meta(ctx, field, obj) + case "recordedDate": + out.Values[i] = ec._ConditionType_recordedDate(ctx, field, obj) case "stage": out.Values[i] = ec._ConditionType_stage(ctx, field, obj) - case "category": - out.Values[i] = ec._ConditionType_category(ctx, field, obj) - case "onsetRange": - out.Values[i] = ec._ConditionType_onsetRange(ctx, field, obj) - case "subject": - out.Values[i] = ec._ConditionType_subject(ctx, field, obj) - case "abatementPeriod": - out.Values[i] = ec._ConditionType_abatementPeriod(ctx, field, obj) - case "id": - out.Values[i] = ec._ConditionType_id(ctx, field, obj) - case "bodySite": - out.Values[i] = ec._ConditionType_bodySite(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "onsetDateTime": + out.Values[i] = ec._ConditionType_onsetDateTime(ctx, field, obj) case "onsetString": out.Values[i] = ec._ConditionType_onsetString(ctx, field, obj) - case "abatementDateTime": - out.Values[i] = ec._ConditionType_abatementDateTime(ctx, field, obj) - case "extension": - out.Values[i] = ec._ConditionType_extension(ctx, field, obj) - case "participant": - out.Values[i] = ec._ConditionType_participant(ctx, field, obj) + case "meta": + out.Values[i] = ec._ConditionType_meta(ctx, field, obj) + case "subject": + out.Values[i] = ec._ConditionType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "code": + out.Values[i] = ec._ConditionType_code(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ConditionType_resourceType(ctx, field, obj) case "note": out.Values[i] = ec._ConditionType_note(ctx, field, obj) - case "identifier": - out.Values[i] = ec._ConditionType_identifier(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "evidence": + out.Values[i] = ec._ConditionType_evidence(ctx, field, obj) case "onsetPeriod": out.Values[i] = ec._ConditionType_onsetPeriod(ctx, field, obj) + case "abatementString": + out.Values[i] = ec._ConditionType_abatementString(ctx, field, obj) + case "severity": + out.Values[i] = ec._ConditionType_severity(ctx, field, obj) + case "text": + out.Values[i] = ec._ConditionType_text(ctx, field, obj) + case "abatementDateTime": + out.Values[i] = ec._ConditionType_abatementDateTime(ctx, field, obj) + case "abatementRange": + out.Values[i] = ec._ConditionType_abatementRange(ctx, field, obj) + case "participant": + out.Values[i] = ec._ConditionType_participant(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "extension": + out.Values[i] = ec._ConditionType_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180584,8 +181073,6 @@ func (ec *executionContext) _ContactDetail(ctx context.Context, sel ast.Selectio switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ContactDetail") - case "telecom": - out.Values[i] = ec._ContactDetail_telecom(ctx, field, obj) case "extension": out.Values[i] = ec._ContactDetail_extension(ctx, field, obj) case "id": @@ -180594,6 +181081,8 @@ func (ec *executionContext) _ContactDetail(ctx context.Context, sel ast.Selectio out.Values[i] = ec._ContactDetail_name(ctx, field, obj) case "resourceType": out.Values[i] = ec._ContactDetail_resourceType(ctx, field, obj) + case "telecom": + out.Values[i] = ec._ContactDetail_telecom(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180628,14 +181117,6 @@ func (ec *executionContext) _ContactPoint(ctx context.Context, sel ast.Selection switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ContactPoint") - case "extension": - out.Values[i] = ec._ContactPoint_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._ContactPoint_id(ctx, field, obj) - case "period": - out.Values[i] = ec._ContactPoint_period(ctx, field, obj) - case "rank": - out.Values[i] = ec._ContactPoint_rank(ctx, field, obj) case "resourceType": out.Values[i] = ec._ContactPoint_resourceType(ctx, field, obj) case "system": @@ -180644,6 +181125,14 @@ func (ec *executionContext) _ContactPoint(ctx context.Context, sel ast.Selection out.Values[i] = ec._ContactPoint_use(ctx, field, obj) case "value": out.Values[i] = ec._ContactPoint_value(ctx, field, obj) + case "extension": + out.Values[i] = ec._ContactPoint_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._ContactPoint_id(ctx, field, obj) + case "period": + out.Values[i] = ec._ContactPoint_period(ctx, field, obj) + case "rank": + out.Values[i] = ec._ContactPoint_rank(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180678,8 +181167,6 @@ func (ec *executionContext) _Count(ctx context.Context, sel ast.SelectionSet, ob switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Count") - case "extension": - out.Values[i] = ec._Count_extension(ctx, field, obj) case "id": out.Values[i] = ec._Count_id(ctx, field, obj) case "resourceType": @@ -180694,6 +181181,8 @@ func (ec *executionContext) _Count(ctx context.Context, sel ast.SelectionSet, ob out.Values[i] = ec._Count_code(ctx, field, obj) case "comparator": out.Values[i] = ec._Count_comparator(ctx, field, obj) + case "extension": + out.Values[i] = ec._Count_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180732,28 +181221,31 @@ func (ec *executionContext) _DataRequirement(ctx context.Context, sel ast.Select out.Values[i] = ec._DataRequirement_type(ctx, field, obj) case "valueFilter": out.Values[i] = ec._DataRequirement_valueFilter(ctx, field, obj) - case "dateFilter": - out.Values[i] = ec._DataRequirement_dateFilter(ctx, field, obj) - case "limit": - out.Values[i] = ec._DataRequirement_limit(ctx, field, obj) - case "subjectCodeableConcept": - out.Values[i] = ec._DataRequirement_subjectCodeableConcept(ctx, field, obj) - case "extension": - out.Values[i] = ec._DataRequirement_extension(ctx, field, obj) - case "mustSupport": - out.Values[i] = ec._DataRequirement_mustSupport(ctx, field, obj) - case "sort": - out.Values[i] = ec._DataRequirement_sort(ctx, field, obj) case "id": out.Values[i] = ec._DataRequirement_id(ctx, field, obj) case "profile": out.Values[i] = ec._DataRequirement_profile(ctx, field, obj) case "subjectReference": out.Values[i] = ec._DataRequirement_subjectReference(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._DataRequirement_resourceType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "codeFilter": out.Values[i] = ec._DataRequirement_codeFilter(ctx, field, obj) + case "limit": + out.Values[i] = ec._DataRequirement_limit(ctx, field, obj) + case "subjectCodeableConcept": + out.Values[i] = ec._DataRequirement_subjectCodeableConcept(ctx, field, obj) + case "mustSupport": + out.Values[i] = ec._DataRequirement_mustSupport(ctx, field, obj) + case "extension": + out.Values[i] = ec._DataRequirement_extension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._DataRequirement_resourceType(ctx, field, obj) + case "sort": + out.Values[i] = ec._DataRequirement_sort(ctx, field, obj) + case "dateFilter": + out.Values[i] = ec._DataRequirement_dateFilter(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180788,8 +181280,6 @@ func (ec *executionContext) _DataRequirementCodeFilter(ctx context.Context, sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DataRequirementCodeFilter") - case "extension": - out.Values[i] = ec._DataRequirementCodeFilter_extension(ctx, field, obj) case "id": out.Values[i] = ec._DataRequirementCodeFilter_id(ctx, field, obj) case "path": @@ -180802,6 +181292,8 @@ func (ec *executionContext) _DataRequirementCodeFilter(ctx context.Context, sel out.Values[i] = ec._DataRequirementCodeFilter_valueSet(ctx, field, obj) case "code": out.Values[i] = ec._DataRequirementCodeFilter_code(ctx, field, obj) + case "extension": + out.Values[i] = ec._DataRequirementCodeFilter_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180836,10 +181328,6 @@ func (ec *executionContext) _DataRequirementDateFilter(ctx context.Context, sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DataRequirementDateFilter") - case "id": - out.Values[i] = ec._DataRequirementDateFilter_id(ctx, field, obj) - case "path": - out.Values[i] = ec._DataRequirementDateFilter_path(ctx, field, obj) case "resourceType": out.Values[i] = ec._DataRequirementDateFilter_resourceType(ctx, field, obj) case "searchParam": @@ -180852,6 +181340,10 @@ func (ec *executionContext) _DataRequirementDateFilter(ctx context.Context, sel out.Values[i] = ec._DataRequirementDateFilter_valuePeriod(ctx, field, obj) case "extension": out.Values[i] = ec._DataRequirementDateFilter_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._DataRequirementDateFilter_id(ctx, field, obj) + case "path": + out.Values[i] = ec._DataRequirementDateFilter_path(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180886,16 +181378,16 @@ func (ec *executionContext) _DataRequirementSort(ctx context.Context, sel ast.Se switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DataRequirementSort") + case "path": + out.Values[i] = ec._DataRequirementSort_path(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._DataRequirementSort_resourceType(ctx, field, obj) case "direction": out.Values[i] = ec._DataRequirementSort_direction(ctx, field, obj) case "extension": out.Values[i] = ec._DataRequirementSort_extension(ctx, field, obj) case "id": out.Values[i] = ec._DataRequirementSort_id(ctx, field, obj) - case "path": - out.Values[i] = ec._DataRequirementSort_path(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._DataRequirementSort_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -180930,22 +181422,22 @@ func (ec *executionContext) _DataRequirementValueFilter(ctx context.Context, sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DataRequirementValueFilter") + case "comparator": + out.Values[i] = ec._DataRequirementValueFilter_comparator(ctx, field, obj) case "extension": out.Values[i] = ec._DataRequirementValueFilter_extension(ctx, field, obj) case "id": out.Values[i] = ec._DataRequirementValueFilter_id(ctx, field, obj) - case "path": - out.Values[i] = ec._DataRequirementValueFilter_path(ctx, field, obj) - case "comparator": - out.Values[i] = ec._DataRequirementValueFilter_comparator(ctx, field, obj) case "resourceType": out.Values[i] = ec._DataRequirementValueFilter_resourceType(ctx, field, obj) case "searchParam": out.Values[i] = ec._DataRequirementValueFilter_searchParam(ctx, field, obj) - case "valueDateTime": - out.Values[i] = ec._DataRequirementValueFilter_valueDateTime(ctx, field, obj) case "valueDuration": out.Values[i] = ec._DataRequirementValueFilter_valueDuration(ctx, field, obj) + case "path": + out.Values[i] = ec._DataRequirementValueFilter_path(ctx, field, obj) + case "valueDateTime": + out.Values[i] = ec._DataRequirementValueFilter_valueDateTime(ctx, field, obj) case "valuePeriod": out.Values[i] = ec._DataRequirementValueFilter_valuePeriod(ctx, field, obj) default: @@ -180982,10 +181474,6 @@ func (ec *executionContext) _DiagnosticReportMedia(ctx context.Context, sel ast. switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DiagnosticReportMedia") - case "modifierExtension": - out.Values[i] = ec._DiagnosticReportMedia_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._DiagnosticReportMedia_resourceType(ctx, field, obj) case "comment": out.Values[i] = ec._DiagnosticReportMedia_comment(ctx, field, obj) case "extension": @@ -180994,6 +181482,13 @@ func (ec *executionContext) _DiagnosticReportMedia(ctx context.Context, sel ast. out.Values[i] = ec._DiagnosticReportMedia_id(ctx, field, obj) case "link": out.Values[i] = ec._DiagnosticReportMedia_link(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "modifierExtension": + out.Values[i] = ec._DiagnosticReportMedia_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._DiagnosticReportMedia_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181028,18 +181523,21 @@ func (ec *executionContext) _DiagnosticReportSupportingInfo(ctx context.Context, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DiagnosticReportSupportingInfo") - case "id": - out.Values[i] = ec._DiagnosticReportSupportingInfo_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._DiagnosticReportSupportingInfo_modifierExtension(ctx, field, obj) - case "reference": - out.Values[i] = ec._DiagnosticReportSupportingInfo_reference(ctx, field, obj) case "resourceType": out.Values[i] = ec._DiagnosticReportSupportingInfo_resourceType(ctx, field, obj) case "type": out.Values[i] = ec._DiagnosticReportSupportingInfo_type(ctx, field, obj) case "extension": out.Values[i] = ec._DiagnosticReportSupportingInfo_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._DiagnosticReportSupportingInfo_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._DiagnosticReportSupportingInfo_modifierExtension(ctx, field, obj) + case "reference": + out.Values[i] = ec._DiagnosticReportSupportingInfo_reference(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181063,7 +181561,7 @@ func (ec *executionContext) _DiagnosticReportSupportingInfo(ctx context.Context, return out } -var diagnosticReportTypeImplementors = []string{"DiagnosticReportType", "ConditionStageUnion", "ProcedureReportUnion", "ConditionStageAssessmentUnion", "ResearchStudyResultUnion", "DiagnosticReportSupportingInfoUnion", "DiagnosticReportSupportingInfoReferenceUnion", "ResourceUnion"} +var diagnosticReportTypeImplementors = []string{"DiagnosticReportType", "ConditionStageUnion", "ResearchStudyResultUnion", "ConditionStageAssessmentUnion", "DiagnosticReportSupportingInfoUnion", "DiagnosticReportSupportingInfoReferenceUnion", "ProcedureReportUnion", "ResourceUnion"} func (ec *executionContext) _DiagnosticReportType(ctx context.Context, sel ast.SelectionSet, obj *model.DiagnosticReportType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, diagnosticReportTypeImplementors) @@ -181074,64 +181572,91 @@ func (ec *executionContext) _DiagnosticReportType(ctx context.Context, sel ast.S switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DiagnosticReportType") - case "result": - out.Values[i] = ec._DiagnosticReportType_result(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._DiagnosticReportType_implicitRules(ctx, field, obj) - case "language": - out.Values[i] = ec._DiagnosticReportType_language(ctx, field, obj) - case "performer": - out.Values[i] = ec._DiagnosticReportType_performer(ctx, field, obj) - case "presentedForm": - out.Values[i] = ec._DiagnosticReportType_presentedForm(ctx, field, obj) - case "text": - out.Values[i] = ec._DiagnosticReportType_text(ctx, field, obj) - case "subject": - out.Values[i] = ec._DiagnosticReportType_subject(ctx, field, obj) + case "supportingInfo": + out.Values[i] = ec._DiagnosticReportType_supportingInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "specimen": out.Values[i] = ec._DiagnosticReportType_specimen(ctx, field, obj) - case "identifier": - out.Values[i] = ec._DiagnosticReportType_identifier(ctx, field, obj) - case "code": - out.Values[i] = ec._DiagnosticReportType_code(ctx, field, obj) - case "effectiveDateTime": - out.Values[i] = ec._DiagnosticReportType_effectiveDateTime(ctx, field, obj) - case "media": - out.Values[i] = ec._DiagnosticReportType_media(ctx, field, obj) - case "effectivePeriod": - out.Values[i] = ec._DiagnosticReportType_effectivePeriod(ctx, field, obj) - case "study": - out.Values[i] = ec._DiagnosticReportType_study(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._DiagnosticReportType_resourceType(ctx, field, obj) - case "meta": - out.Values[i] = ec._DiagnosticReportType_meta(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "contained": out.Values[i] = ec._DiagnosticReportType_contained(ctx, field, obj) + case "language": + out.Values[i] = ec._DiagnosticReportType_language(ctx, field, obj) + case "meta": + out.Values[i] = ec._DiagnosticReportType_meta(ctx, field, obj) + case "resultsInterpreter": + out.Values[i] = ec._DiagnosticReportType_resultsInterpreter(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "id": out.Values[i] = ec._DiagnosticReportType_id(ctx, field, obj) + case "basedOn": + out.Values[i] = ec._DiagnosticReportType_basedOn(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "note": out.Values[i] = ec._DiagnosticReportType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "modifierExtension": out.Values[i] = ec._DiagnosticReportType_modifierExtension(ctx, field, obj) - case "basedOn": - out.Values[i] = ec._DiagnosticReportType_basedOn(ctx, field, obj) - case "conclusionCode": - out.Values[i] = ec._DiagnosticReportType_conclusionCode(ctx, field, obj) - case "supportingInfo": - out.Values[i] = ec._DiagnosticReportType_supportingInfo(ctx, field, obj) - case "conclusion": - out.Values[i] = ec._DiagnosticReportType_conclusion(ctx, field, obj) - case "status": - out.Values[i] = ec._DiagnosticReportType_status(ctx, field, obj) - case "extension": - out.Values[i] = ec._DiagnosticReportType_extension(ctx, field, obj) + case "effectiveDateTime": + out.Values[i] = ec._DiagnosticReportType_effectiveDateTime(ctx, field, obj) case "category": out.Values[i] = ec._DiagnosticReportType_category(ctx, field, obj) + case "identifier": + out.Values[i] = ec._DiagnosticReportType_identifier(ctx, field, obj) + case "effectivePeriod": + out.Values[i] = ec._DiagnosticReportType_effectivePeriod(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._DiagnosticReportType_resourceType(ctx, field, obj) + case "code": + out.Values[i] = ec._DiagnosticReportType_code(ctx, field, obj) + case "extension": + out.Values[i] = ec._DiagnosticReportType_extension(ctx, field, obj) + case "presentedForm": + out.Values[i] = ec._DiagnosticReportType_presentedForm(ctx, field, obj) + case "subject": + out.Values[i] = ec._DiagnosticReportType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "study": + out.Values[i] = ec._DiagnosticReportType_study(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "media": + out.Values[i] = ec._DiagnosticReportType_media(ctx, field, obj) + case "text": + out.Values[i] = ec._DiagnosticReportType_text(ctx, field, obj) + case "conclusionCode": + out.Values[i] = ec._DiagnosticReportType_conclusionCode(ctx, field, obj) + case "result": + out.Values[i] = ec._DiagnosticReportType_result(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "implicitRules": + out.Values[i] = ec._DiagnosticReportType_implicitRules(ctx, field, obj) case "issued": out.Values[i] = ec._DiagnosticReportType_issued(ctx, field, obj) - case "resultsInterpreter": - out.Values[i] = ec._DiagnosticReportType_resultsInterpreter(ctx, field, obj) + case "performer": + out.Values[i] = ec._DiagnosticReportType_performer(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._DiagnosticReportType_status(ctx, field, obj) + case "conclusion": + out.Values[i] = ec._DiagnosticReportType_conclusion(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181166,6 +181691,12 @@ func (ec *executionContext) _Distance(ctx context.Context, sel ast.SelectionSet, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Distance") + case "comparator": + out.Values[i] = ec._Distance_comparator(ctx, field, obj) + case "extension": + out.Values[i] = ec._Distance_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Distance_id(ctx, field, obj) case "resourceType": out.Values[i] = ec._Distance_resourceType(ctx, field, obj) case "system": @@ -181176,12 +181707,6 @@ func (ec *executionContext) _Distance(ctx context.Context, sel ast.SelectionSet, out.Values[i] = ec._Distance_value(ctx, field, obj) case "code": out.Values[i] = ec._Distance_code(ctx, field, obj) - case "comparator": - out.Values[i] = ec._Distance_comparator(ctx, field, obj) - case "extension": - out.Values[i] = ec._Distance_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._Distance_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181216,6 +181741,10 @@ func (ec *executionContext) _DocumentReferenceAttester(ctx context.Context, sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DocumentReferenceAttester") + case "time": + out.Values[i] = ec._DocumentReferenceAttester_time(ctx, field, obj) + case "extension": + out.Values[i] = ec._DocumentReferenceAttester_extension(ctx, field, obj) case "id": out.Values[i] = ec._DocumentReferenceAttester_id(ctx, field, obj) case "mode": @@ -181224,12 +181753,11 @@ func (ec *executionContext) _DocumentReferenceAttester(ctx context.Context, sel out.Values[i] = ec._DocumentReferenceAttester_modifierExtension(ctx, field, obj) case "party": out.Values[i] = ec._DocumentReferenceAttester_party(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "resourceType": out.Values[i] = ec._DocumentReferenceAttester_resourceType(ctx, field, obj) - case "time": - out.Values[i] = ec._DocumentReferenceAttester_time(ctx, field, obj) - case "extension": - out.Values[i] = ec._DocumentReferenceAttester_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181264,8 +181792,6 @@ func (ec *executionContext) _DocumentReferenceContent(ctx context.Context, sel a switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DocumentReferenceContent") - case "attachment": - out.Values[i] = ec._DocumentReferenceContent_attachment(ctx, field, obj) case "extension": out.Values[i] = ec._DocumentReferenceContent_extension(ctx, field, obj) case "id": @@ -181276,6 +181802,8 @@ func (ec *executionContext) _DocumentReferenceContent(ctx context.Context, sel a out.Values[i] = ec._DocumentReferenceContent_profile(ctx, field, obj) case "resourceType": out.Values[i] = ec._DocumentReferenceContent_resourceType(ctx, field, obj) + case "attachment": + out.Values[i] = ec._DocumentReferenceContent_attachment(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181310,8 +181838,6 @@ func (ec *executionContext) _DocumentReferenceContentProfile(ctx context.Context switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DocumentReferenceContentProfile") - case "valueUri": - out.Values[i] = ec._DocumentReferenceContentProfile_valueUri(ctx, field, obj) case "extension": out.Values[i] = ec._DocumentReferenceContentProfile_extension(ctx, field, obj) case "id": @@ -181324,6 +181850,8 @@ func (ec *executionContext) _DocumentReferenceContentProfile(ctx context.Context out.Values[i] = ec._DocumentReferenceContentProfile_valueCanonical(ctx, field, obj) case "valueCoding": out.Values[i] = ec._DocumentReferenceContentProfile_valueCoding(ctx, field, obj) + case "valueUri": + out.Values[i] = ec._DocumentReferenceContentProfile_valueUri(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181358,18 +181886,21 @@ func (ec *executionContext) _DocumentReferenceRelatesTo(ctx context.Context, sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DocumentReferenceRelatesTo") - case "modifierExtension": - out.Values[i] = ec._DocumentReferenceRelatesTo_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._DocumentReferenceRelatesTo_resourceType(ctx, field, obj) - case "target": - out.Values[i] = ec._DocumentReferenceRelatesTo_target(ctx, field, obj) case "code": out.Values[i] = ec._DocumentReferenceRelatesTo_code(ctx, field, obj) case "extension": out.Values[i] = ec._DocumentReferenceRelatesTo_extension(ctx, field, obj) case "id": out.Values[i] = ec._DocumentReferenceRelatesTo_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._DocumentReferenceRelatesTo_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._DocumentReferenceRelatesTo_resourceType(ctx, field, obj) + case "target": + out.Values[i] = ec._DocumentReferenceRelatesTo_target(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181393,7 +181924,7 @@ func (ec *executionContext) _DocumentReferenceRelatesTo(ctx context.Context, sel return out } -var documentReferenceTypeImplementors = []string{"DocumentReferenceType", "ObservationDerivedFromUnion", "ProcedureReportUnion", "ResourceUnion"} +var documentReferenceTypeImplementors = []string{"DocumentReferenceType", "ProcedureReportUnion", "ObservationDerivedFromUnion", "ResourceUnion"} func (ec *executionContext) _DocumentReferenceType(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentReferenceType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, documentReferenceTypeImplementors) @@ -181404,68 +181935,83 @@ func (ec *executionContext) _DocumentReferenceType(ctx context.Context, sel ast. switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DocumentReferenceType") - case "version": - out.Values[i] = ec._DocumentReferenceType_version(ctx, field, obj) - case "language": - out.Values[i] = ec._DocumentReferenceType_language(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._DocumentReferenceType_implicitRules(ctx, field, obj) - case "bodySite": - out.Values[i] = ec._DocumentReferenceType_bodySite(ctx, field, obj) + case "modality": + out.Values[i] = ec._DocumentReferenceType_modality(ctx, field, obj) + case "securityLabel": + out.Values[i] = ec._DocumentReferenceType_securityLabel(ctx, field, obj) + case "meta": + out.Values[i] = ec._DocumentReferenceType_meta(ctx, field, obj) + case "subject": + out.Values[i] = ec._DocumentReferenceType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "id": + out.Values[i] = ec._DocumentReferenceType_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._DocumentReferenceType_modifierExtension(ctx, field, obj) + case "contained": + out.Values[i] = ec._DocumentReferenceType_contained(ctx, field, obj) + case "event": + out.Values[i] = ec._DocumentReferenceType_event(ctx, field, obj) case "practiceSetting": out.Values[i] = ec._DocumentReferenceType_practiceSetting(ctx, field, obj) + case "bodySite": + out.Values[i] = ec._DocumentReferenceType_bodySite(ctx, field, obj) + case "identifier": + out.Values[i] = ec._DocumentReferenceType_identifier(ctx, field, obj) + case "date": + out.Values[i] = ec._DocumentReferenceType_date(ctx, field, obj) + case "language": + out.Values[i] = ec._DocumentReferenceType_language(ctx, field, obj) case "author": out.Values[i] = ec._DocumentReferenceType_author(ctx, field, obj) - case "basedOn": - out.Values[i] = ec._DocumentReferenceType_basedOn(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._DocumentReferenceType_resourceType(ctx, field, obj) - case "status": - out.Values[i] = ec._DocumentReferenceType_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "type": out.Values[i] = ec._DocumentReferenceType_type(ctx, field, obj) - case "modality": - out.Values[i] = ec._DocumentReferenceType_modality(ctx, field, obj) + case "category": + out.Values[i] = ec._DocumentReferenceType_category(ctx, field, obj) case "period": out.Values[i] = ec._DocumentReferenceType_period(ctx, field, obj) + case "facilityType": + out.Values[i] = ec._DocumentReferenceType_facilityType(ctx, field, obj) case "attester": out.Values[i] = ec._DocumentReferenceType_attester(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "implicitRules": + out.Values[i] = ec._DocumentReferenceType_implicitRules(ctx, field, obj) case "docStatus": out.Values[i] = ec._DocumentReferenceType_docStatus(ctx, field, obj) - case "meta": - out.Values[i] = ec._DocumentReferenceType_meta(ctx, field, obj) case "custodian": out.Values[i] = ec._DocumentReferenceType_custodian(ctx, field, obj) - case "event": - out.Values[i] = ec._DocumentReferenceType_event(ctx, field, obj) - case "relatesTo": - out.Values[i] = ec._DocumentReferenceType_relatesTo(ctx, field, obj) - case "facilityType": - out.Values[i] = ec._DocumentReferenceType_facilityType(ctx, field, obj) - case "id": - out.Values[i] = ec._DocumentReferenceType_id(ctx, field, obj) - case "securityLabel": - out.Values[i] = ec._DocumentReferenceType_securityLabel(ctx, field, obj) - case "identifier": - out.Values[i] = ec._DocumentReferenceType_identifier(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._DocumentReferenceType_modifierExtension(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "description": out.Values[i] = ec._DocumentReferenceType_description(ctx, field, obj) - case "extension": - out.Values[i] = ec._DocumentReferenceType_extension(ctx, field, obj) - case "category": - out.Values[i] = ec._DocumentReferenceType_category(ctx, field, obj) + case "basedOn": + out.Values[i] = ec._DocumentReferenceType_basedOn(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "relatesTo": + out.Values[i] = ec._DocumentReferenceType_relatesTo(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._DocumentReferenceType_resourceType(ctx, field, obj) + case "status": + out.Values[i] = ec._DocumentReferenceType_status(ctx, field, obj) case "text": out.Values[i] = ec._DocumentReferenceType_text(ctx, field, obj) - case "contained": - out.Values[i] = ec._DocumentReferenceType_contained(ctx, field, obj) - case "subject": - out.Values[i] = ec._DocumentReferenceType_subject(ctx, field, obj) case "content": out.Values[i] = ec._DocumentReferenceType_content(ctx, field, obj) - case "date": - out.Values[i] = ec._DocumentReferenceType_date(ctx, field, obj) + case "version": + out.Values[i] = ec._DocumentReferenceType_version(ctx, field, obj) + case "extension": + out.Values[i] = ec._DocumentReferenceType_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181500,42 +182046,42 @@ func (ec *executionContext) _Dosage(ctx context.Context, sel ast.SelectionSet, o switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Dosage") - case "asNeededFor": - out.Values[i] = ec._Dosage_asNeededFor(ctx, field, obj) case "doseAndRate": out.Values[i] = ec._Dosage_doseAndRate(ctx, field, obj) + case "additionalInstruction": + out.Values[i] = ec._Dosage_additionalInstruction(ctx, field, obj) case "route": out.Values[i] = ec._Dosage_route(ctx, field, obj) - case "method": - out.Values[i] = ec._Dosage_method(ctx, field, obj) + case "timing": + out.Values[i] = ec._Dosage_timing(ctx, field, obj) + case "id": + out.Values[i] = ec._Dosage_id(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._Dosage_modifierExtension(ctx, field, obj) - case "patientInstruction": - out.Values[i] = ec._Dosage_patientInstruction(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Dosage_resourceType(ctx, field, obj) case "text": out.Values[i] = ec._Dosage_text(ctx, field, obj) - case "extension": - out.Values[i] = ec._Dosage_extension(ctx, field, obj) + case "sequence": + out.Values[i] = ec._Dosage_sequence(ctx, field, obj) + case "asNeeded": + out.Values[i] = ec._Dosage_asNeeded(ctx, field, obj) case "site": out.Values[i] = ec._Dosage_site(ctx, field, obj) - case "maxDosePerAdministration": - out.Values[i] = ec._Dosage_maxDosePerAdministration(ctx, field, obj) + case "extension": + out.Values[i] = ec._Dosage_extension(ctx, field, obj) + case "patientInstruction": + out.Values[i] = ec._Dosage_patientInstruction(ctx, field, obj) + case "asNeededFor": + out.Values[i] = ec._Dosage_asNeededFor(ctx, field, obj) case "maxDosePerLifetime": out.Values[i] = ec._Dosage_maxDosePerLifetime(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._Dosage_resourceType(ctx, field, obj) - case "additionalInstruction": - out.Values[i] = ec._Dosage_additionalInstruction(ctx, field, obj) - case "asNeeded": - out.Values[i] = ec._Dosage_asNeeded(ctx, field, obj) - case "timing": - out.Values[i] = ec._Dosage_timing(ctx, field, obj) - case "id": - out.Values[i] = ec._Dosage_id(ctx, field, obj) - case "sequence": - out.Values[i] = ec._Dosage_sequence(ctx, field, obj) + case "method": + out.Values[i] = ec._Dosage_method(ctx, field, obj) case "maxDosePerPeriod": out.Values[i] = ec._Dosage_maxDosePerPeriod(ctx, field, obj) + case "maxDosePerAdministration": + out.Values[i] = ec._Dosage_maxDosePerAdministration(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181570,24 +182116,24 @@ func (ec *executionContext) _DosageDoseAndRate(ctx context.Context, sel ast.Sele switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("DosageDoseAndRate") + case "extension": + out.Values[i] = ec._DosageDoseAndRate_extension(ctx, field, obj) + case "type": + out.Values[i] = ec._DosageDoseAndRate_type(ctx, field, obj) case "id": out.Values[i] = ec._DosageDoseAndRate_id(ctx, field, obj) case "doseRange": out.Values[i] = ec._DosageDoseAndRate_doseRange(ctx, field, obj) case "resourceType": out.Values[i] = ec._DosageDoseAndRate_resourceType(ctx, field, obj) - case "rateRange": - out.Values[i] = ec._DosageDoseAndRate_rateRange(ctx, field, obj) - case "type": - out.Values[i] = ec._DosageDoseAndRate_type(ctx, field, obj) + case "rateQuantity": + out.Values[i] = ec._DosageDoseAndRate_rateQuantity(ctx, field, obj) case "doseQuantity": out.Values[i] = ec._DosageDoseAndRate_doseQuantity(ctx, field, obj) case "rateRatio": out.Values[i] = ec._DosageDoseAndRate_rateRatio(ctx, field, obj) - case "extension": - out.Values[i] = ec._DosageDoseAndRate_extension(ctx, field, obj) - case "rateQuantity": - out.Values[i] = ec._DosageDoseAndRate_rateQuantity(ctx, field, obj) + case "rateRange": + out.Values[i] = ec._DosageDoseAndRate_rateRange(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181622,12 +182168,6 @@ func (ec *executionContext) _Duration(ctx context.Context, sel ast.SelectionSet, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Duration") - case "code": - out.Values[i] = ec._Duration_code(ctx, field, obj) - case "comparator": - out.Values[i] = ec._Duration_comparator(ctx, field, obj) - case "extension": - out.Values[i] = ec._Duration_extension(ctx, field, obj) case "id": out.Values[i] = ec._Duration_id(ctx, field, obj) case "resourceType": @@ -181638,6 +182178,12 @@ func (ec *executionContext) _Duration(ctx context.Context, sel ast.SelectionSet, out.Values[i] = ec._Duration_unit(ctx, field, obj) case "value": out.Values[i] = ec._Duration_value(ctx, field, obj) + case "code": + out.Values[i] = ec._Duration_code(ctx, field, obj) + case "comparator": + out.Values[i] = ec._Duration_comparator(ctx, field, obj) + case "extension": + out.Values[i] = ec._Duration_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181672,64 +182218,64 @@ func (ec *executionContext) _Encounter(ctx context.Context, sel ast.SelectionSet switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Encounter") - case "length": - out.Values[i] = ec._Encounter_length(ctx, field, obj) - case "actualPeriod": - out.Values[i] = ec._Encounter_actualPeriod(ctx, field, obj) - case "priority": - out.Values[i] = ec._Encounter_priority(ctx, field, obj) - case "class": - out.Values[i] = ec._Encounter_class(ctx, field, obj) - case "plannedEndDate": - out.Values[i] = ec._Encounter_plannedEndDate(ctx, field, obj) - case "serviceType": - out.Values[i] = ec._Encounter_serviceType(ctx, field, obj) - case "admission": - out.Values[i] = ec._Encounter_admission(ctx, field, obj) case "meta": out.Values[i] = ec._Encounter_meta(ctx, field, obj) - case "id": - out.Values[i] = ec._Encounter_id(ctx, field, obj) - case "identifier": - out.Values[i] = ec._Encounter_identifier(ctx, field, obj) - case "plannedStartDate": - out.Values[i] = ec._Encounter_plannedStartDate(ctx, field, obj) - case "type": - out.Values[i] = ec._Encounter_type(ctx, field, obj) - case "diagnosis": - out.Values[i] = ec._Encounter_diagnosis(ctx, field, obj) case "text": out.Values[i] = ec._Encounter_text(ctx, field, obj) - case "participant": - out.Values[i] = ec._Encounter_participant(ctx, field, obj) + case "plannedEndDate": + out.Values[i] = ec._Encounter_plannedEndDate(ctx, field, obj) + case "language": + out.Values[i] = ec._Encounter_language(ctx, field, obj) + case "reason": + out.Values[i] = ec._Encounter_reason(ctx, field, obj) case "status": out.Values[i] = ec._Encounter_status(ctx, field, obj) - case "virtualService": - out.Values[i] = ec._Encounter_virtualService(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._Encounter_modifierExtension(ctx, field, obj) - case "specialCourtesy": - out.Values[i] = ec._Encounter_specialCourtesy(ctx, field, obj) case "resourceType": out.Values[i] = ec._Encounter_resourceType(ctx, field, obj) + case "virtualService": + out.Values[i] = ec._Encounter_virtualService(ctx, field, obj) + case "subjectStatus": + out.Values[i] = ec._Encounter_subjectStatus(ctx, field, obj) case "specialArrangement": out.Values[i] = ec._Encounter_specialArrangement(ctx, field, obj) - case "extension": - out.Values[i] = ec._Encounter_extension(ctx, field, obj) + case "admission": + out.Values[i] = ec._Encounter_admission(ctx, field, obj) + case "specialCourtesy": + out.Values[i] = ec._Encounter_specialCourtesy(ctx, field, obj) + case "identifier": + out.Values[i] = ec._Encounter_identifier(ctx, field, obj) + case "class": + out.Values[i] = ec._Encounter_class(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._Encounter_implicitRules(ctx, field, obj) + case "plannedStartDate": + out.Values[i] = ec._Encounter_plannedStartDate(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._Encounter_modifierExtension(ctx, field, obj) case "contained": out.Values[i] = ec._Encounter_contained(ctx, field, obj) + case "extension": + out.Values[i] = ec._Encounter_extension(ctx, field, obj) + case "priority": + out.Values[i] = ec._Encounter_priority(ctx, field, obj) + case "diagnosis": + out.Values[i] = ec._Encounter_diagnosis(ctx, field, obj) + case "serviceType": + out.Values[i] = ec._Encounter_serviceType(ctx, field, obj) + case "length": + out.Values[i] = ec._Encounter_length(ctx, field, obj) + case "participant": + out.Values[i] = ec._Encounter_participant(ctx, field, obj) + case "type": + out.Values[i] = ec._Encounter_type(ctx, field, obj) case "location": out.Values[i] = ec._Encounter_location(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._Encounter_implicitRules(ctx, field, obj) case "dietPreference": out.Values[i] = ec._Encounter_dietPreference(ctx, field, obj) - case "reason": - out.Values[i] = ec._Encounter_reason(ctx, field, obj) - case "subjectStatus": - out.Values[i] = ec._Encounter_subjectStatus(ctx, field, obj) - case "language": - out.Values[i] = ec._Encounter_language(ctx, field, obj) + case "actualPeriod": + out.Values[i] = ec._Encounter_actualPeriod(ctx, field, obj) + case "id": + out.Values[i] = ec._Encounter_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181764,6 +182310,10 @@ func (ec *executionContext) _EncounterAdmission(ctx context.Context, sel ast.Sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("EncounterAdmission") + case "admitSource": + out.Values[i] = ec._EncounterAdmission_admitSource(ctx, field, obj) + case "dischargeDisposition": + out.Values[i] = ec._EncounterAdmission_dischargeDisposition(ctx, field, obj) case "extension": out.Values[i] = ec._EncounterAdmission_extension(ctx, field, obj) case "id": @@ -181776,10 +182326,6 @@ func (ec *executionContext) _EncounterAdmission(ctx context.Context, sel ast.Sel out.Values[i] = ec._EncounterAdmission_reAdmission(ctx, field, obj) case "resourceType": out.Values[i] = ec._EncounterAdmission_resourceType(ctx, field, obj) - case "admitSource": - out.Values[i] = ec._EncounterAdmission_admitSource(ctx, field, obj) - case "dischargeDisposition": - out.Values[i] = ec._EncounterAdmission_dischargeDisposition(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181814,8 +182360,6 @@ func (ec *executionContext) _EncounterDiagnosis(ctx context.Context, sel ast.Sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("EncounterDiagnosis") - case "resourceType": - out.Values[i] = ec._EncounterDiagnosis_resourceType(ctx, field, obj) case "use": out.Values[i] = ec._EncounterDiagnosis_use(ctx, field, obj) case "condition": @@ -181826,6 +182370,8 @@ func (ec *executionContext) _EncounterDiagnosis(ctx context.Context, sel ast.Sel out.Values[i] = ec._EncounterDiagnosis_id(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._EncounterDiagnosis_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._EncounterDiagnosis_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181860,6 +182406,10 @@ func (ec *executionContext) _EncounterLocation(ctx context.Context, sel ast.Sele switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("EncounterLocation") + case "id": + out.Values[i] = ec._EncounterLocation_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._EncounterLocation_modifierExtension(ctx, field, obj) case "period": out.Values[i] = ec._EncounterLocation_period(ctx, field, obj) case "resourceType": @@ -181870,10 +182420,6 @@ func (ec *executionContext) _EncounterLocation(ctx context.Context, sel ast.Sele out.Values[i] = ec._EncounterLocation_extension(ctx, field, obj) case "form": out.Values[i] = ec._EncounterLocation_form(ctx, field, obj) - case "id": - out.Values[i] = ec._EncounterLocation_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._EncounterLocation_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -181954,10 +182500,6 @@ func (ec *executionContext) _EncounterReason(ctx context.Context, sel ast.Select switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("EncounterReason") - case "resourceType": - out.Values[i] = ec._EncounterReason_resourceType(ctx, field, obj) - case "use": - out.Values[i] = ec._EncounterReason_use(ctx, field, obj) case "value": out.Values[i] = ec._EncounterReason_value(ctx, field, obj) case "extension": @@ -181966,6 +182508,10 @@ func (ec *executionContext) _EncounterReason(ctx context.Context, sel ast.Select out.Values[i] = ec._EncounterReason_id(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._EncounterReason_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._EncounterReason_resourceType(ctx, field, obj) + case "use": + out.Values[i] = ec._EncounterReason_use(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182050,24 +182596,27 @@ func (ec *executionContext) _ExtendedContactDetail(ctx context.Context, sel ast. switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ExtendedContactDetail") - case "name": - out.Values[i] = ec._ExtendedContactDetail_name(ctx, field, obj) + case "period": + out.Values[i] = ec._ExtendedContactDetail_period(ctx, field, obj) + case "telecom": + out.Values[i] = ec._ExtendedContactDetail_telecom(ctx, field, obj) + case "address": + out.Values[i] = ec._ExtendedContactDetail_address(ctx, field, obj) case "organization": out.Values[i] = ec._ExtendedContactDetail_organization(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "purpose": out.Values[i] = ec._ExtendedContactDetail_purpose(ctx, field, obj) case "resourceType": out.Values[i] = ec._ExtendedContactDetail_resourceType(ctx, field, obj) - case "telecom": - out.Values[i] = ec._ExtendedContactDetail_telecom(ctx, field, obj) - case "address": - out.Values[i] = ec._ExtendedContactDetail_address(ctx, field, obj) - case "id": - out.Values[i] = ec._ExtendedContactDetail_id(ctx, field, obj) + case "name": + out.Values[i] = ec._ExtendedContactDetail_name(ctx, field, obj) case "extension": out.Values[i] = ec._ExtendedContactDetail_extension(ctx, field, obj) - case "period": - out.Values[i] = ec._ExtendedContactDetail_period(ctx, field, obj) + case "id": + out.Values[i] = ec._ExtendedContactDetail_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182102,120 +182651,129 @@ func (ec *executionContext) _Extension(ctx context.Context, sel ast.SelectionSet switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Extension") - case "valueUri": - out.Values[i] = ec._Extension_valueUri(ctx, field, obj) - case "valueInteger": - out.Values[i] = ec._Extension_valueInteger(ctx, field, obj) - case "valueAttachment": - out.Values[i] = ec._Extension_valueAttachment(ctx, field, obj) - case "valueParameterDefinition": - out.Values[i] = ec._Extension_valueParameterDefinition(ctx, field, obj) - case "valueInteger64": - out.Values[i] = ec._Extension_valueInteger64(ctx, field, obj) - case "valueHumanName": - out.Values[i] = ec._Extension_valueHumanName(ctx, field, obj) - case "valueAge": - out.Values[i] = ec._Extension_valueAge(ctx, field, obj) - case "valueCodeableConcept": - out.Values[i] = ec._Extension_valueCodeableConcept(ctx, field, obj) + case "valuePeriod": + out.Values[i] = ec._Extension_valuePeriod(ctx, field, obj) + case "valueQuantity": + out.Values[i] = ec._Extension_valueQuantity(ctx, field, obj) + case "valueExpression": + out.Values[i] = ec._Extension_valueExpression(ctx, field, obj) case "valueSampledData": out.Values[i] = ec._Extension_valueSampledData(ctx, field, obj) - case "valueDateTime": - out.Values[i] = ec._Extension_valueDateTime(ctx, field, obj) - case "valueExtendedContactDetail": - out.Values[i] = ec._Extension_valueExtendedContactDetail(ctx, field, obj) - case "valueMarkdown": - out.Values[i] = ec._Extension_valueMarkdown(ctx, field, obj) - case "valueTriggerDefinition": - out.Values[i] = ec._Extension_valueTriggerDefinition(ctx, field, obj) - case "valueString": - out.Values[i] = ec._Extension_valueString(ctx, field, obj) - case "valueContactPoint": - out.Values[i] = ec._Extension_valueContactPoint(ctx, field, obj) - case "valueAnnotation": - out.Values[i] = ec._Extension_valueAnnotation(ctx, field, obj) case "valueContactDetail": out.Values[i] = ec._Extension_valueContactDetail(ctx, field, obj) - case "valueQuantity": - out.Values[i] = ec._Extension_valueQuantity(ctx, field, obj) - case "valueUuid": - out.Values[i] = ec._Extension_valueUuid(ctx, field, obj) - case "valueRange": - out.Values[i] = ec._Extension_valueRange(ctx, field, obj) - case "valueCanonical": - out.Values[i] = ec._Extension_valueCanonical(ctx, field, obj) case "valueCodeableReference": out.Values[i] = ec._Extension_valueCodeableReference(ctx, field, obj) + case "valueRelatedArtifact": + out.Values[i] = ec._Extension_valueRelatedArtifact(ctx, field, obj) + case "valueParameterDefinition": + out.Values[i] = ec._Extension_valueParameterDefinition(ctx, field, obj) + case "valueInstant": + out.Values[i] = ec._Extension_valueInstant(ctx, field, obj) + case "valueExtendedContactDetail": + out.Values[i] = ec._Extension_valueExtendedContactDetail(ctx, field, obj) + case "valueId": + out.Values[i] = ec._Extension_valueId(ctx, field, obj) + case "valueCount": + out.Values[i] = ec._Extension_valueCount(ctx, field, obj) + case "valueCoding": + out.Values[i] = ec._Extension_valueCoding(ctx, field, obj) + case "valueUsageContext": + out.Values[i] = ec._Extension_valueUsageContext(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "valueInteger": + out.Values[i] = ec._Extension_valueInteger(ctx, field, obj) + case "valueUuid": + out.Values[i] = ec._Extension_valueUuid(ctx, field, obj) + case "valueMeta": + out.Values[i] = ec._Extension_valueMeta(ctx, field, obj) + case "valueOid": + out.Values[i] = ec._Extension_valueOid(ctx, field, obj) + case "valueTriggerDefinition": + out.Values[i] = ec._Extension_valueTriggerDefinition(ctx, field, obj) case "id": out.Values[i] = ec._Extension_id(ctx, field, obj) + case "valueMarkdown": + out.Values[i] = ec._Extension_valueMarkdown(ctx, field, obj) + case "valueIdentifier": + out.Values[i] = ec._Extension_valueIdentifier(ctx, field, obj) + case "valueRange": + out.Values[i] = ec._Extension_valueRange(ctx, field, obj) + case "valueAttachment": + out.Values[i] = ec._Extension_valueAttachment(ctx, field, obj) + case "valueDate": + out.Values[i] = ec._Extension_valueDate(ctx, field, obj) case "valueRatio": out.Values[i] = ec._Extension_valueRatio(ctx, field, obj) - case "valueOid": - out.Values[i] = ec._Extension_valueOid(ctx, field, obj) - case "valueRatioRange": - out.Values[i] = ec._Extension_valueRatioRange(ctx, field, obj) - case "valueInstant": - out.Values[i] = ec._Extension_valueInstant(ctx, field, obj) + case "valueBoolean": + out.Values[i] = ec._Extension_valueBoolean(ctx, field, obj) + case "valueString": + out.Values[i] = ec._Extension_valueString(ctx, field, obj) case "valueDuration": out.Values[i] = ec._Extension_valueDuration(ctx, field, obj) - case "valueRelatedArtifact": - out.Values[i] = ec._Extension_valueRelatedArtifact(ctx, field, obj) - case "valueSignature": - out.Values[i] = ec._Extension_valueSignature(ctx, field, obj) - case "valueDate": - out.Values[i] = ec._Extension_valueDate(ctx, field, obj) + case "valueDataRequirement": + out.Values[i] = ec._Extension_valueDataRequirement(ctx, field, obj) + case "valueCodeableConcept": + out.Values[i] = ec._Extension_valueCodeableConcept(ctx, field, obj) + case "valueContactPoint": + out.Values[i] = ec._Extension_valueContactPoint(ctx, field, obj) + case "valueAvailability": + out.Values[i] = ec._Extension_valueAvailability(ctx, field, obj) case "valueDosage": out.Values[i] = ec._Extension_valueDosage(ctx, field, obj) + case "valueUnsignedInt": + out.Values[i] = ec._Extension_valueUnsignedInt(ctx, field, obj) + case "valueAge": + out.Values[i] = ec._Extension_valueAge(ctx, field, obj) + case "valueHumanName": + out.Values[i] = ec._Extension_valueHumanName(ctx, field, obj) + case "valueInteger64": + out.Values[i] = ec._Extension_valueInteger64(ctx, field, obj) + case "valueUrl": + out.Values[i] = ec._Extension_valueUrl(ctx, field, obj) + case "extension": + out.Values[i] = ec._Extension_extension(ctx, field, obj) case "valueBase64Binary": out.Values[i] = ec._Extension_valueBase64Binary(ctx, field, obj) - case "valuePeriod": - out.Values[i] = ec._Extension_valuePeriod(ctx, field, obj) - case "valueMoney": - out.Values[i] = ec._Extension_valueMoney(ctx, field, obj) - case "valueIdentifier": - out.Values[i] = ec._Extension_valueIdentifier(ctx, field, obj) - case "url": - out.Values[i] = ec._Extension_url(ctx, field, obj) case "valueCode": out.Values[i] = ec._Extension_valueCode(ctx, field, obj) - case "valuePositiveInt": - out.Values[i] = ec._Extension_valuePositiveInt(ctx, field, obj) - case "valueId": - out.Values[i] = ec._Extension_valueId(ctx, field, obj) - case "valueUnsignedInt": - out.Values[i] = ec._Extension_valueUnsignedInt(ctx, field, obj) - case "valueDataRequirement": - out.Values[i] = ec._Extension_valueDataRequirement(ctx, field, obj) - case "valueTime": - out.Values[i] = ec._Extension_valueTime(ctx, field, obj) - case "valueCoding": - out.Values[i] = ec._Extension_valueCoding(ctx, field, obj) - case "valueTiming": - out.Values[i] = ec._Extension_valueTiming(ctx, field, obj) - case "valueExpression": - out.Values[i] = ec._Extension_valueExpression(ctx, field, obj) - case "valueDistance": - out.Values[i] = ec._Extension_valueDistance(ctx, field, obj) - case "valueCount": - out.Values[i] = ec._Extension_valueCount(ctx, field, obj) case "resourceType": out.Values[i] = ec._Extension_resourceType(ctx, field, obj) - case "valueAvailability": - out.Values[i] = ec._Extension_valueAvailability(ctx, field, obj) - case "valueUrl": - out.Values[i] = ec._Extension_valueUrl(ctx, field, obj) - case "valueBoolean": - out.Values[i] = ec._Extension_valueBoolean(ctx, field, obj) case "valueDecimal": out.Values[i] = ec._Extension_valueDecimal(ctx, field, obj) - case "valueMeta": - out.Values[i] = ec._Extension_valueMeta(ctx, field, obj) + case "valuePositiveInt": + out.Values[i] = ec._Extension_valuePositiveInt(ctx, field, obj) case "valueAddress": out.Values[i] = ec._Extension_valueAddress(ctx, field, obj) - case "valueUsageContext": - out.Values[i] = ec._Extension_valueUsageContext(ctx, field, obj) - case "extension": - out.Values[i] = ec._Extension_extension(ctx, field, obj) + case "valueUri": + out.Values[i] = ec._Extension_valueUri(ctx, field, obj) + case "valueSignature": + out.Values[i] = ec._Extension_valueSignature(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "valueDateTime": + out.Values[i] = ec._Extension_valueDateTime(ctx, field, obj) + case "valueTime": + out.Values[i] = ec._Extension_valueTime(ctx, field, obj) + case "valueMoney": + out.Values[i] = ec._Extension_valueMoney(ctx, field, obj) + case "valueDistance": + out.Values[i] = ec._Extension_valueDistance(ctx, field, obj) + case "valueTiming": + out.Values[i] = ec._Extension_valueTiming(ctx, field, obj) + case "valueRatioRange": + out.Values[i] = ec._Extension_valueRatioRange(ctx, field, obj) + case "valueCanonical": + out.Values[i] = ec._Extension_valueCanonical(ctx, field, obj) + case "url": + out.Values[i] = ec._Extension_url(ctx, field, obj) + case "valueAnnotation": + out.Values[i] = ec._Extension_valueAnnotation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182250,12 +182808,12 @@ func (ec *executionContext) _FHIRPrimitiveExtension(ctx context.Context, sel ast switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FHIRPrimitiveExtension") + case "resourceType": + out.Values[i] = ec._FHIRPrimitiveExtension_resourceType(ctx, field, obj) case "extension": out.Values[i] = ec._FHIRPrimitiveExtension_extension(ctx, field, obj) case "id": out.Values[i] = ec._FHIRPrimitiveExtension_id(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._FHIRPrimitiveExtension_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182292,28 +182850,31 @@ func (ec *executionContext) _FamilyMemberHistoryCondition(ctx context.Context, s out.Values[i] = graphql.MarshalString("FamilyMemberHistoryCondition") case "onsetPeriod": out.Values[i] = ec._FamilyMemberHistoryCondition_onsetPeriod(ctx, field, obj) - case "extension": - out.Values[i] = ec._FamilyMemberHistoryCondition_extension(ctx, field, obj) - case "note": - out.Values[i] = ec._FamilyMemberHistoryCondition_note(ctx, field, obj) - case "onsetAge": - out.Values[i] = ec._FamilyMemberHistoryCondition_onsetAge(ctx, field, obj) - case "onsetRange": - out.Values[i] = ec._FamilyMemberHistoryCondition_onsetRange(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._FamilyMemberHistoryCondition_resourceType(ctx, field, obj) - case "contributedToDeath": - out.Values[i] = ec._FamilyMemberHistoryCondition_contributedToDeath(ctx, field, obj) case "id": out.Values[i] = ec._FamilyMemberHistoryCondition_id(ctx, field, obj) - case "code": - out.Values[i] = ec._FamilyMemberHistoryCondition_code(ctx, field, obj) - case "onsetString": - out.Values[i] = ec._FamilyMemberHistoryCondition_onsetString(ctx, field, obj) case "outcome": out.Values[i] = ec._FamilyMemberHistoryCondition_outcome(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._FamilyMemberHistoryCondition_resourceType(ctx, field, obj) + case "onsetRange": + out.Values[i] = ec._FamilyMemberHistoryCondition_onsetRange(ctx, field, obj) + case "code": + out.Values[i] = ec._FamilyMemberHistoryCondition_code(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._FamilyMemberHistoryCondition_modifierExtension(ctx, field, obj) + case "extension": + out.Values[i] = ec._FamilyMemberHistoryCondition_extension(ctx, field, obj) + case "onsetString": + out.Values[i] = ec._FamilyMemberHistoryCondition_onsetString(ctx, field, obj) + case "contributedToDeath": + out.Values[i] = ec._FamilyMemberHistoryCondition_contributedToDeath(ctx, field, obj) + case "note": + out.Values[i] = ec._FamilyMemberHistoryCondition_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "onsetAge": + out.Values[i] = ec._FamilyMemberHistoryCondition_onsetAge(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182348,8 +182909,6 @@ func (ec *executionContext) _FamilyMemberHistoryParticipant(ctx context.Context, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FamilyMemberHistoryParticipant") - case "actor": - out.Values[i] = ec._FamilyMemberHistoryParticipant_actor(ctx, field, obj) case "extension": out.Values[i] = ec._FamilyMemberHistoryParticipant_extension(ctx, field, obj) case "function": @@ -182360,6 +182919,11 @@ func (ec *executionContext) _FamilyMemberHistoryParticipant(ctx context.Context, out.Values[i] = ec._FamilyMemberHistoryParticipant_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._FamilyMemberHistoryParticipant_resourceType(ctx, field, obj) + case "actor": + out.Values[i] = ec._FamilyMemberHistoryParticipant_actor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182394,32 +182958,35 @@ func (ec *executionContext) _FamilyMemberHistoryProcedure(ctx context.Context, s switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FamilyMemberHistoryProcedure") - case "modifierExtension": - out.Values[i] = ec._FamilyMemberHistoryProcedure_modifierExtension(ctx, field, obj) case "note": out.Values[i] = ec._FamilyMemberHistoryProcedure_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "outcome": + out.Values[i] = ec._FamilyMemberHistoryProcedure_outcome(ctx, field, obj) case "performedDateTime": out.Values[i] = ec._FamilyMemberHistoryProcedure_performedDateTime(ctx, field, obj) - case "performedRange": - out.Values[i] = ec._FamilyMemberHistoryProcedure_performedRange(ctx, field, obj) case "contributedToDeath": out.Values[i] = ec._FamilyMemberHistoryProcedure_contributedToDeath(ctx, field, obj) - case "performedAge": - out.Values[i] = ec._FamilyMemberHistoryProcedure_performedAge(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._FamilyMemberHistoryProcedure_resourceType(ctx, field, obj) case "performedPeriod": out.Values[i] = ec._FamilyMemberHistoryProcedure_performedPeriod(ctx, field, obj) case "performedString": out.Values[i] = ec._FamilyMemberHistoryProcedure_performedString(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._FamilyMemberHistoryProcedure_resourceType(ctx, field, obj) case "id": out.Values[i] = ec._FamilyMemberHistoryProcedure_id(ctx, field, obj) case "extension": out.Values[i] = ec._FamilyMemberHistoryProcedure_extension(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._FamilyMemberHistoryProcedure_modifierExtension(ctx, field, obj) + case "performedAge": + out.Values[i] = ec._FamilyMemberHistoryProcedure_performedAge(ctx, field, obj) + case "performedRange": + out.Values[i] = ec._FamilyMemberHistoryProcedure_performedRange(ctx, field, obj) case "code": out.Values[i] = ec._FamilyMemberHistoryProcedure_code(ctx, field, obj) - case "outcome": - out.Values[i] = ec._FamilyMemberHistoryProcedure_outcome(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182454,78 +183021,87 @@ func (ec *executionContext) _FamilyMemberHistoryType(ctx context.Context, sel as switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FamilyMemberHistoryType") - case "condition": - out.Values[i] = ec._FamilyMemberHistoryType_condition(ctx, field, obj) - case "ageAge": - out.Values[i] = ec._FamilyMemberHistoryType_ageAge(ctx, field, obj) - case "deceasedRange": - out.Values[i] = ec._FamilyMemberHistoryType_deceasedRange(ctx, field, obj) + case "ageRange": + out.Values[i] = ec._FamilyMemberHistoryType_ageRange(ctx, field, obj) + case "patient": + out.Values[i] = ec._FamilyMemberHistoryType_patient(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "name": + out.Values[i] = ec._FamilyMemberHistoryType_name(ctx, field, obj) + case "deceasedBoolean": + out.Values[i] = ec._FamilyMemberHistoryType_deceasedBoolean(ctx, field, obj) + case "instantiatesUri": + out.Values[i] = ec._FamilyMemberHistoryType_instantiatesUri(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._FamilyMemberHistoryType_modifierExtension(ctx, field, obj) + case "instantiatesCanonical": + out.Values[i] = ec._FamilyMemberHistoryType_instantiatesCanonical(ctx, field, obj) + case "text": + out.Values[i] = ec._FamilyMemberHistoryType_text(ctx, field, obj) + case "id": + out.Values[i] = ec._FamilyMemberHistoryType_id(ctx, field, obj) + case "bornString": + out.Values[i] = ec._FamilyMemberHistoryType_bornString(ctx, field, obj) case "deceasedAge": out.Values[i] = ec._FamilyMemberHistoryType_deceasedAge(ctx, field, obj) - case "status": - out.Values[i] = ec._FamilyMemberHistoryType_status(ctx, field, obj) - case "language": - out.Values[i] = ec._FamilyMemberHistoryType_language(ctx, field, obj) - case "identifier": - out.Values[i] = ec._FamilyMemberHistoryType_identifier(ctx, field, obj) + case "ageAge": + out.Values[i] = ec._FamilyMemberHistoryType_ageAge(ctx, field, obj) + case "date": + out.Values[i] = ec._FamilyMemberHistoryType_date(ctx, field, obj) case "sex": out.Values[i] = ec._FamilyMemberHistoryType_sex(ctx, field, obj) - case "note": - out.Values[i] = ec._FamilyMemberHistoryType_note(ctx, field, obj) + case "language": + out.Values[i] = ec._FamilyMemberHistoryType_language(ctx, field, obj) case "contained": out.Values[i] = ec._FamilyMemberHistoryType_contained(ctx, field, obj) - case "id": - out.Values[i] = ec._FamilyMemberHistoryType_id(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._FamilyMemberHistoryType_resourceType(ctx, field, obj) - case "deceasedString": - out.Values[i] = ec._FamilyMemberHistoryType_deceasedString(ctx, field, obj) + case "note": + out.Values[i] = ec._FamilyMemberHistoryType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "reason": + out.Values[i] = ec._FamilyMemberHistoryType_reason(ctx, field, obj) case "relationship": out.Values[i] = ec._FamilyMemberHistoryType_relationship(ctx, field, obj) - case "bornDate": - out.Values[i] = ec._FamilyMemberHistoryType_bornDate(ctx, field, obj) - case "dataAbsentReason": - out.Values[i] = ec._FamilyMemberHistoryType_dataAbsentReason(ctx, field, obj) - case "estimatedAge": - out.Values[i] = ec._FamilyMemberHistoryType_estimatedAge(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._FamilyMemberHistoryType_modifierExtension(ctx, field, obj) - case "date": - out.Values[i] = ec._FamilyMemberHistoryType_date(ctx, field, obj) - case "patient": - out.Values[i] = ec._FamilyMemberHistoryType_patient(ctx, field, obj) + case "condition": + out.Values[i] = ec._FamilyMemberHistoryType_condition(ctx, field, obj) case "extension": out.Values[i] = ec._FamilyMemberHistoryType_extension(ctx, field, obj) - case "procedure": - out.Values[i] = ec._FamilyMemberHistoryType_procedure(ctx, field, obj) case "meta": out.Values[i] = ec._FamilyMemberHistoryType_meta(ctx, field, obj) - case "ageRange": - out.Values[i] = ec._FamilyMemberHistoryType_ageRange(ctx, field, obj) - case "name": - out.Values[i] = ec._FamilyMemberHistoryType_name(ctx, field, obj) - case "deceasedDate": - out.Values[i] = ec._FamilyMemberHistoryType_deceasedDate(ctx, field, obj) - case "deceasedBoolean": - out.Values[i] = ec._FamilyMemberHistoryType_deceasedBoolean(ctx, field, obj) - case "instantiatesCanonical": - out.Values[i] = ec._FamilyMemberHistoryType_instantiatesCanonical(ctx, field, obj) + case "deceasedString": + out.Values[i] = ec._FamilyMemberHistoryType_deceasedString(ctx, field, obj) + case "status": + out.Values[i] = ec._FamilyMemberHistoryType_status(ctx, field, obj) case "ageString": out.Values[i] = ec._FamilyMemberHistoryType_ageString(ctx, field, obj) - case "text": - out.Values[i] = ec._FamilyMemberHistoryType_text(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._FamilyMemberHistoryType_implicitRules(ctx, field, obj) - case "reason": - out.Values[i] = ec._FamilyMemberHistoryType_reason(ctx, field, obj) - case "instantiatesUri": - out.Values[i] = ec._FamilyMemberHistoryType_instantiatesUri(ctx, field, obj) - case "bornString": - out.Values[i] = ec._FamilyMemberHistoryType_bornString(ctx, field, obj) + case "identifier": + out.Values[i] = ec._FamilyMemberHistoryType_identifier(ctx, field, obj) case "participant": out.Values[i] = ec._FamilyMemberHistoryType_participant(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deceasedDate": + out.Values[i] = ec._FamilyMemberHistoryType_deceasedDate(ctx, field, obj) + case "estimatedAge": + out.Values[i] = ec._FamilyMemberHistoryType_estimatedAge(ctx, field, obj) + case "dataAbsentReason": + out.Values[i] = ec._FamilyMemberHistoryType_dataAbsentReason(ctx, field, obj) + case "procedure": + out.Values[i] = ec._FamilyMemberHistoryType_procedure(ctx, field, obj) case "bornPeriod": out.Values[i] = ec._FamilyMemberHistoryType_bornPeriod(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._FamilyMemberHistoryType_implicitRules(ctx, field, obj) + case "deceasedRange": + out.Values[i] = ec._FamilyMemberHistoryType_deceasedRange(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._FamilyMemberHistoryType_resourceType(ctx, field, obj) + case "bornDate": + out.Values[i] = ec._FamilyMemberHistoryType_bornDate(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182560,28 +183136,28 @@ func (ec *executionContext) _GroupCharacteristic(ctx context.Context, sel ast.Se switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GroupCharacteristic") - case "period": - out.Values[i] = ec._GroupCharacteristic_period(ctx, field, obj) - case "code": - out.Values[i] = ec._GroupCharacteristic_code(ctx, field, obj) - case "valueBoolean": - out.Values[i] = ec._GroupCharacteristic_valueBoolean(ctx, field, obj) - case "valueQuantity": - out.Values[i] = ec._GroupCharacteristic_valueQuantity(ctx, field, obj) case "valueRange": out.Values[i] = ec._GroupCharacteristic_valueRange(ctx, field, obj) + case "code": + out.Values[i] = ec._GroupCharacteristic_code(ctx, field, obj) case "extension": out.Values[i] = ec._GroupCharacteristic_extension(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._GroupCharacteristic_modifierExtension(ctx, field, obj) + case "period": + out.Values[i] = ec._GroupCharacteristic_period(ctx, field, obj) case "resourceType": out.Values[i] = ec._GroupCharacteristic_resourceType(ctx, field, obj) + case "valueBoolean": + out.Values[i] = ec._GroupCharacteristic_valueBoolean(ctx, field, obj) case "exclude": out.Values[i] = ec._GroupCharacteristic_exclude(ctx, field, obj) case "valueCodeableConcept": out.Values[i] = ec._GroupCharacteristic_valueCodeableConcept(ctx, field, obj) case "id": out.Values[i] = ec._GroupCharacteristic_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._GroupCharacteristic_modifierExtension(ctx, field, obj) + case "valueQuantity": + out.Values[i] = ec._GroupCharacteristic_valueQuantity(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182616,8 +183192,15 @@ func (ec *executionContext) _GroupMember(ctx context.Context, sel ast.SelectionS switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GroupMember") + case "period": + out.Values[i] = ec._GroupMember_period(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._GroupMember_resourceType(ctx, field, obj) case "entity": out.Values[i] = ec._GroupMember_entity(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "extension": out.Values[i] = ec._GroupMember_extension(ctx, field, obj) case "id": @@ -182626,10 +183209,6 @@ func (ec *executionContext) _GroupMember(ctx context.Context, sel ast.SelectionS out.Values[i] = ec._GroupMember_inactive(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._GroupMember_modifierExtension(ctx, field, obj) - case "period": - out.Values[i] = ec._GroupMember_period(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._GroupMember_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182653,7 +183232,7 @@ func (ec *executionContext) _GroupMember(ctx context.Context, sel ast.SelectionS return out } -var groupTypeImplementors = []string{"GroupType", "GroupMemberUnion", "MedicationAdministrationSubjectUnion", "UsageContextValueReferenceUnion", "ResearchStudyRecruitmentEligibilityUnion", "TaskRestrictionRecipientUnion", "SpecimenSubjectUnion", "MedicationRequestSubjectUnion", "MedicationStatementSubjectUnion", "GroupMemberEntityUnion", "ConditionSubjectUnion", "ObservationSpecimenUnion", "ObservationSubjectUnion", "ProcedureFocusUnion", "ProcedureSubjectUnion", "ResearchSubjectSubjectUnion", "TaskInputValueUsageContextUnion", "ImagingStudySubjectUnion", "ResearchStudyRecruitmentUnion", "ExtensionValueUsageContextUnion", "DiagnosticReportSubjectUnion", "TaskOutputValueUsageContextUnion", "TaskRestrictionUnion", "ResourceUnion"} +var groupTypeImplementors = []string{"GroupType", "ConditionSubjectUnion", "ResearchSubjectSubjectUnion", "ResearchStudyRecruitmentUnion", "ResearchStudyRecruitmentEligibilityUnion", "SpecimenSubjectUnion", "GroupMemberUnion", "MedicationStatementSubjectUnion", "DiagnosticReportSubjectUnion", "MedicationAdministrationSubjectUnion", "MedicationRequestSubjectUnion", "TaskInputValueUsageContextUnion", "TaskOutputValueUsageContextUnion", "ImagingStudySubjectUnion", "TaskRestrictionUnion", "ExtensionValueUsageContextUnion", "GroupMemberEntityUnion", "UsageContextValueReferenceUnion", "ProcedureFocusUnion", "ProcedureSubjectUnion", "TaskRestrictionRecipientUnion", "ObservationSpecimenUnion", "ObservationSubjectUnion", "ResourceUnion"} func (ec *executionContext) _GroupType(ctx context.Context, sel ast.SelectionSet, obj *model.GroupType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, groupTypeImplementors) @@ -182664,46 +183243,52 @@ func (ec *executionContext) _GroupType(ctx context.Context, sel ast.SelectionSet switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GroupType") - case "member": - out.Values[i] = ec._GroupType_member(ctx, field, obj) + case "language": + out.Values[i] = ec._GroupType_language(ctx, field, obj) case "extension": out.Values[i] = ec._GroupType_extension(ctx, field, obj) - case "meta": - out.Values[i] = ec._GroupType_meta(ctx, field, obj) - case "contained": - out.Values[i] = ec._GroupType_contained(ctx, field, obj) - case "membership": - out.Values[i] = ec._GroupType_membership(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._GroupType_resourceType(ctx, field, obj) - case "characteristic": - out.Values[i] = ec._GroupType_characteristic(ctx, field, obj) - case "quantity": - out.Values[i] = ec._GroupType_quantity(ctx, field, obj) - case "type": - out.Values[i] = ec._GroupType_type(ctx, field, obj) - case "active": - out.Values[i] = ec._GroupType_active(ctx, field, obj) - case "description": - out.Values[i] = ec._GroupType_description(ctx, field, obj) - case "code": - out.Values[i] = ec._GroupType_code(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._GroupType_implicitRules(ctx, field, obj) + case "identifier": + out.Values[i] = ec._GroupType_identifier(ctx, field, obj) + case "member": + out.Values[i] = ec._GroupType_member(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "id": out.Values[i] = ec._GroupType_id(ctx, field, obj) - case "language": - out.Values[i] = ec._GroupType_language(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._GroupType_modifierExtension(ctx, field, obj) + case "quantity": + out.Values[i] = ec._GroupType_quantity(ctx, field, obj) case "name": out.Values[i] = ec._GroupType_name(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._GroupType_implicitRules(ctx, field, obj) case "text": out.Values[i] = ec._GroupType_text(ctx, field, obj) + case "contained": + out.Values[i] = ec._GroupType_contained(ctx, field, obj) + case "code": + out.Values[i] = ec._GroupType_code(ctx, field, obj) + case "description": + out.Values[i] = ec._GroupType_description(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._GroupType_modifierExtension(ctx, field, obj) + case "active": + out.Values[i] = ec._GroupType_active(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._GroupType_resourceType(ctx, field, obj) + case "membership": + out.Values[i] = ec._GroupType_membership(ctx, field, obj) + case "type": + out.Values[i] = ec._GroupType_type(ctx, field, obj) + case "characteristic": + out.Values[i] = ec._GroupType_characteristic(ctx, field, obj) case "managingEntity": out.Values[i] = ec._GroupType_managingEntity(ctx, field, obj) - case "identifier": - out.Values[i] = ec._GroupType_identifier(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "meta": + out.Values[i] = ec._GroupType_meta(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182738,24 +183323,24 @@ func (ec *executionContext) _HumanName(ctx context.Context, sel ast.SelectionSet switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("HumanName") - case "suffix": - out.Values[i] = ec._HumanName_suffix(ctx, field, obj) + case "given": + out.Values[i] = ec._HumanName_given(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._HumanName_resourceType(ctx, field, obj) case "use": out.Values[i] = ec._HumanName_use(ctx, field, obj) case "family": out.Values[i] = ec._HumanName_family(ctx, field, obj) - case "given": - out.Values[i] = ec._HumanName_given(ctx, field, obj) + case "suffix": + out.Values[i] = ec._HumanName_suffix(ctx, field, obj) case "id": out.Values[i] = ec._HumanName_id(ctx, field, obj) + case "period": + out.Values[i] = ec._HumanName_period(ctx, field, obj) case "prefix": out.Values[i] = ec._HumanName_prefix(ctx, field, obj) case "extension": out.Values[i] = ec._HumanName_extension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._HumanName_resourceType(ctx, field, obj) - case "period": - out.Values[i] = ec._HumanName_period(ctx, field, obj) case "text": out.Values[i] = ec._HumanName_text(ctx, field, obj) default: @@ -182792,24 +183377,27 @@ func (ec *executionContext) _Identifier(ctx context.Context, sel ast.SelectionSe switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Identifier") - case "type": - out.Values[i] = ec._Identifier_type(ctx, field, obj) case "extension": out.Values[i] = ec._Identifier_extension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Identifier_resourceType(ctx, field, obj) + case "use": + out.Values[i] = ec._Identifier_use(ctx, field, obj) + case "assigner": + out.Values[i] = ec._Identifier_assigner(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "period": out.Values[i] = ec._Identifier_period(ctx, field, obj) - case "system": - out.Values[i] = ec._Identifier_system(ctx, field, obj) + case "type": + out.Values[i] = ec._Identifier_type(ctx, field, obj) case "value": out.Values[i] = ec._Identifier_value(ctx, field, obj) - case "assigner": - out.Values[i] = ec._Identifier_assigner(ctx, field, obj) case "id": out.Values[i] = ec._Identifier_id(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._Identifier_resourceType(ctx, field, obj) - case "use": - out.Values[i] = ec._Identifier_use(ctx, field, obj) + case "system": + out.Values[i] = ec._Identifier_system(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182844,36 +183432,42 @@ func (ec *executionContext) _ImagingStudySeries(ctx context.Context, sel ast.Sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ImagingStudySeries") - case "bodySite": - out.Values[i] = ec._ImagingStudySeries_bodySite(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ImagingStudySeries_resourceType(ctx, field, obj) - case "id": - out.Values[i] = ec._ImagingStudySeries_id(ctx, field, obj) - case "started": - out.Values[i] = ec._ImagingStudySeries_started(ctx, field, obj) - case "extension": - out.Values[i] = ec._ImagingStudySeries_extension(ctx, field, obj) - case "numberOfInstances": - out.Values[i] = ec._ImagingStudySeries_numberOfInstances(ctx, field, obj) - case "uid": - out.Values[i] = ec._ImagingStudySeries_uid(ctx, field, obj) case "laterality": out.Values[i] = ec._ImagingStudySeries_laterality(ctx, field, obj) + case "uid": + out.Values[i] = ec._ImagingStudySeries_uid(ctx, field, obj) + case "description": + out.Values[i] = ec._ImagingStudySeries_description(ctx, field, obj) + case "id": + out.Values[i] = ec._ImagingStudySeries_id(ctx, field, obj) + case "instance": + out.Values[i] = ec._ImagingStudySeries_instance(ctx, field, obj) case "modality": out.Values[i] = ec._ImagingStudySeries_modality(ctx, field, obj) case "performer": out.Values[i] = ec._ImagingStudySeries_performer(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resourceType": + out.Values[i] = ec._ImagingStudySeries_resourceType(ctx, field, obj) + case "started": + out.Values[i] = ec._ImagingStudySeries_started(ctx, field, obj) + case "extension": + out.Values[i] = ec._ImagingStudySeries_extension(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._ImagingStudySeries_modifierExtension(ctx, field, obj) - case "description": - out.Values[i] = ec._ImagingStudySeries_description(ctx, field, obj) + case "numberOfInstances": + out.Values[i] = ec._ImagingStudySeries_numberOfInstances(ctx, field, obj) + case "bodySite": + out.Values[i] = ec._ImagingStudySeries_bodySite(ctx, field, obj) case "number": out.Values[i] = ec._ImagingStudySeries_number(ctx, field, obj) - case "instance": - out.Values[i] = ec._ImagingStudySeries_instance(ctx, field, obj) case "specimen": out.Values[i] = ec._ImagingStudySeries_specimen(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182908,8 +183502,6 @@ func (ec *executionContext) _ImagingStudySeriesInstance(ctx context.Context, sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ImagingStudySeriesInstance") - case "sopClass": - out.Values[i] = ec._ImagingStudySeriesInstance_sopClass(ctx, field, obj) case "title": out.Values[i] = ec._ImagingStudySeriesInstance_title(ctx, field, obj) case "uid": @@ -182924,6 +183516,8 @@ func (ec *executionContext) _ImagingStudySeriesInstance(ctx context.Context, sel out.Values[i] = ec._ImagingStudySeriesInstance_number(ctx, field, obj) case "resourceType": out.Values[i] = ec._ImagingStudySeriesInstance_resourceType(ctx, field, obj) + case "sopClass": + out.Values[i] = ec._ImagingStudySeriesInstance_sopClass(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182958,18 +183552,21 @@ func (ec *executionContext) _ImagingStudySeriesPerformer(ctx context.Context, se switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ImagingStudySeriesPerformer") - case "modifierExtension": - out.Values[i] = ec._ImagingStudySeriesPerformer_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._ImagingStudySeriesPerformer_resourceType(ctx, field, obj) case "actor": out.Values[i] = ec._ImagingStudySeriesPerformer_actor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "extension": out.Values[i] = ec._ImagingStudySeriesPerformer_extension(ctx, field, obj) case "function": out.Values[i] = ec._ImagingStudySeriesPerformer_function(ctx, field, obj) case "id": out.Values[i] = ec._ImagingStudySeriesPerformer_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ImagingStudySeriesPerformer_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -182993,7 +183590,7 @@ func (ec *executionContext) _ImagingStudySeriesPerformer(ctx context.Context, se return out } -var imagingStudyTypeImplementors = []string{"ImagingStudyType", "ObservationDerivedFromUnion", "ObservationPartOfUnion", "DiagnosticReportStudyUnion", "ResourceUnion"} +var imagingStudyTypeImplementors = []string{"ImagingStudyType", "DiagnosticReportStudyUnion", "ObservationDerivedFromUnion", "ObservationPartOfUnion", "ResourceUnion"} func (ec *executionContext) _ImagingStudyType(ctx context.Context, sel ast.SelectionSet, obj *model.ImagingStudyType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, imagingStudyTypeImplementors) @@ -183004,54 +183601,69 @@ func (ec *executionContext) _ImagingStudyType(ctx context.Context, sel ast.Selec switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ImagingStudyType") - case "partOf": - out.Values[i] = ec._ImagingStudyType_partOf(ctx, field, obj) + case "description": + out.Values[i] = ec._ImagingStudyType_description(ctx, field, obj) + case "identifier": + out.Values[i] = ec._ImagingStudyType_identifier(ctx, field, obj) + case "contained": + out.Values[i] = ec._ImagingStudyType_contained(ctx, field, obj) + case "id": + out.Values[i] = ec._ImagingStudyType_id(ctx, field, obj) + case "subject": + out.Values[i] = ec._ImagingStudyType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._ImagingStudyType_status(ctx, field, obj) case "text": out.Values[i] = ec._ImagingStudyType_text(ctx, field, obj) case "meta": out.Values[i] = ec._ImagingStudyType_meta(ctx, field, obj) + case "series": + out.Values[i] = ec._ImagingStudyType_series(ctx, field, obj) case "extension": out.Values[i] = ec._ImagingStudyType_extension(ctx, field, obj) - case "language": - out.Values[i] = ec._ImagingStudyType_language(ctx, field, obj) - case "basedOn": - out.Values[i] = ec._ImagingStudyType_basedOn(ctx, field, obj) - case "numberOfInstances": - out.Values[i] = ec._ImagingStudyType_numberOfInstances(ctx, field, obj) - case "procedure": - out.Values[i] = ec._ImagingStudyType_procedure(ctx, field, obj) - case "identifier": - out.Values[i] = ec._ImagingStudyType_identifier(ctx, field, obj) case "implicitRules": out.Values[i] = ec._ImagingStudyType_implicitRules(ctx, field, obj) - case "referrer": - out.Values[i] = ec._ImagingStudyType_referrer(ctx, field, obj) + case "reason": + out.Values[i] = ec._ImagingStudyType_reason(ctx, field, obj) case "modality": out.Values[i] = ec._ImagingStudyType_modality(ctx, field, obj) case "resourceType": out.Values[i] = ec._ImagingStudyType_resourceType(ctx, field, obj) - case "note": - out.Values[i] = ec._ImagingStudyType_note(ctx, field, obj) - case "contained": - out.Values[i] = ec._ImagingStudyType_contained(ctx, field, obj) + case "partOf": + out.Values[i] = ec._ImagingStudyType_partOf(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "modifierExtension": out.Values[i] = ec._ImagingStudyType_modifierExtension(ctx, field, obj) - case "series": - out.Values[i] = ec._ImagingStudyType_series(ctx, field, obj) - case "reason": - out.Values[i] = ec._ImagingStudyType_reason(ctx, field, obj) + case "referrer": + out.Values[i] = ec._ImagingStudyType_referrer(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "procedure": + out.Values[i] = ec._ImagingStudyType_procedure(ctx, field, obj) case "started": out.Values[i] = ec._ImagingStudyType_started(ctx, field, obj) - case "status": - out.Values[i] = ec._ImagingStudyType_status(ctx, field, obj) - case "subject": - out.Values[i] = ec._ImagingStudyType_subject(ctx, field, obj) - case "description": - out.Values[i] = ec._ImagingStudyType_description(ctx, field, obj) - case "id": - out.Values[i] = ec._ImagingStudyType_id(ctx, field, obj) case "numberOfSeries": out.Values[i] = ec._ImagingStudyType_numberOfSeries(ctx, field, obj) + case "note": + out.Values[i] = ec._ImagingStudyType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "basedOn": + out.Values[i] = ec._ImagingStudyType_basedOn(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "language": + out.Values[i] = ec._ImagingStudyType_language(ctx, field, obj) + case "numberOfInstances": + out.Values[i] = ec._ImagingStudyType_numberOfInstances(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183086,72 +183698,72 @@ func (ec *executionContext) _Immunization(ctx context.Context, sel ast.Selection switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Immunization") - case "statusReason": - out.Values[i] = ec._Immunization_statusReason(ctx, field, obj) - case "administeredProduct": - out.Values[i] = ec._Immunization_administeredProduct(ctx, field, obj) - case "doseQuantity": - out.Values[i] = ec._Immunization_doseQuantity(ctx, field, obj) - case "lotNumber": - out.Values[i] = ec._Immunization_lotNumber(ctx, field, obj) - case "status": - out.Values[i] = ec._Immunization_status(ctx, field, obj) - case "manufacturer": - out.Values[i] = ec._Immunization_manufacturer(ctx, field, obj) - case "extension": - out.Values[i] = ec._Immunization_extension(ctx, field, obj) - case "expirationDate": - out.Values[i] = ec._Immunization_expirationDate(ctx, field, obj) - case "identifier": - out.Values[i] = ec._Immunization_identifier(ctx, field, obj) - case "note": - out.Values[i] = ec._Immunization_note(ctx, field, obj) case "reaction": out.Values[i] = ec._Immunization_reaction(ctx, field, obj) - case "protocolApplied": - out.Values[i] = ec._Immunization_protocolApplied(ctx, field, obj) - case "site": - out.Values[i] = ec._Immunization_site(ctx, field, obj) + case "note": + out.Values[i] = ec._Immunization_note(ctx, field, obj) + case "programEligibility": + out.Values[i] = ec._Immunization_programEligibility(ctx, field, obj) case "occurrenceDateTime": out.Values[i] = ec._Immunization_occurrenceDateTime(ctx, field, obj) + case "vaccineCode": + out.Values[i] = ec._Immunization_vaccineCode(ctx, field, obj) + case "language": + out.Values[i] = ec._Immunization_language(ctx, field, obj) + case "contained": + out.Values[i] = ec._Immunization_contained(ctx, field, obj) + case "statusReason": + out.Values[i] = ec._Immunization_statusReason(ctx, field, obj) + case "text": + out.Values[i] = ec._Immunization_text(ctx, field, obj) case "reason": out.Values[i] = ec._Immunization_reason(ctx, field, obj) - case "fundingSource": - out.Values[i] = ec._Immunization_fundingSource(ctx, field, obj) + case "performer": + out.Values[i] = ec._Immunization_performer(ctx, field, obj) case "meta": out.Values[i] = ec._Immunization_meta(ctx, field, obj) + case "protocolApplied": + out.Values[i] = ec._Immunization_protocolApplied(ctx, field, obj) + case "administeredProduct": + out.Values[i] = ec._Immunization_administeredProduct(ctx, field, obj) + case "fundingSource": + out.Values[i] = ec._Immunization_fundingSource(ctx, field, obj) case "subpotentReason": out.Values[i] = ec._Immunization_subpotentReason(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._Immunization_resourceType(ctx, field, obj) - case "vaccineCode": - out.Values[i] = ec._Immunization_vaccineCode(ctx, field, obj) - case "text": - out.Values[i] = ec._Immunization_text(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._Immunization_implicitRules(ctx, field, obj) - case "informationSource": - out.Values[i] = ec._Immunization_informationSource(ctx, field, obj) + case "manufacturer": + out.Values[i] = ec._Immunization_manufacturer(ctx, field, obj) case "occurrenceString": out.Values[i] = ec._Immunization_occurrenceString(ctx, field, obj) - case "performer": - out.Values[i] = ec._Immunization_performer(ctx, field, obj) - case "programEligibility": - out.Values[i] = ec._Immunization_programEligibility(ctx, field, obj) - case "route": - out.Values[i] = ec._Immunization_route(ctx, field, obj) - case "contained": - out.Values[i] = ec._Immunization_contained(ctx, field, obj) - case "id": - out.Values[i] = ec._Immunization_id(ctx, field, obj) + case "doseQuantity": + out.Values[i] = ec._Immunization_doseQuantity(ctx, field, obj) + case "identifier": + out.Values[i] = ec._Immunization_identifier(ctx, field, obj) case "primarySource": out.Values[i] = ec._Immunization_primarySource(ctx, field, obj) + case "informationSource": + out.Values[i] = ec._Immunization_informationSource(ctx, field, obj) + case "id": + out.Values[i] = ec._Immunization_id(ctx, field, obj) case "isSubpotent": out.Values[i] = ec._Immunization_isSubpotent(ctx, field, obj) - case "language": - out.Values[i] = ec._Immunization_language(ctx, field, obj) + case "site": + out.Values[i] = ec._Immunization_site(ctx, field, obj) + case "lotNumber": + out.Values[i] = ec._Immunization_lotNumber(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Immunization_resourceType(ctx, field, obj) + case "extension": + out.Values[i] = ec._Immunization_extension(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._Immunization_implicitRules(ctx, field, obj) + case "expirationDate": + out.Values[i] = ec._Immunization_expirationDate(ctx, field, obj) + case "route": + out.Values[i] = ec._Immunization_route(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._Immunization_modifierExtension(ctx, field, obj) + case "status": + out.Values[i] = ec._Immunization_status(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183186,16 +183798,16 @@ func (ec *executionContext) _ImmunizationPerformer(ctx context.Context, sel ast. switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ImmunizationPerformer") + case "resourceType": + out.Values[i] = ec._ImmunizationPerformer_resourceType(ctx, field, obj) + case "extension": + out.Values[i] = ec._ImmunizationPerformer_extension(ctx, field, obj) case "function": out.Values[i] = ec._ImmunizationPerformer_function(ctx, field, obj) case "id": out.Values[i] = ec._ImmunizationPerformer_id(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._ImmunizationPerformer_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ImmunizationPerformer_resourceType(ctx, field, obj) - case "extension": - out.Values[i] = ec._ImmunizationPerformer_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183230,10 +183842,6 @@ func (ec *executionContext) _ImmunizationProgramEligibility(ctx context.Context, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ImmunizationProgramEligibility") - case "programStatus": - out.Values[i] = ec._ImmunizationProgramEligibility_programStatus(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ImmunizationProgramEligibility_resourceType(ctx, field, obj) case "extension": out.Values[i] = ec._ImmunizationProgramEligibility_extension(ctx, field, obj) case "id": @@ -183242,6 +183850,10 @@ func (ec *executionContext) _ImmunizationProgramEligibility(ctx context.Context, out.Values[i] = ec._ImmunizationProgramEligibility_modifierExtension(ctx, field, obj) case "program": out.Values[i] = ec._ImmunizationProgramEligibility_program(ctx, field, obj) + case "programStatus": + out.Values[i] = ec._ImmunizationProgramEligibility_programStatus(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ImmunizationProgramEligibility_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183276,6 +183888,12 @@ func (ec *executionContext) _ImmunizationProtocolApplied(ctx context.Context, se switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ImmunizationProtocolApplied") + case "modifierExtension": + out.Values[i] = ec._ImmunizationProtocolApplied_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ImmunizationProtocolApplied_resourceType(ctx, field, obj) + case "series": + out.Values[i] = ec._ImmunizationProtocolApplied_series(ctx, field, obj) case "seriesDoses": out.Values[i] = ec._ImmunizationProtocolApplied_seriesDoses(ctx, field, obj) case "targetDisease": @@ -183286,12 +183904,6 @@ func (ec *executionContext) _ImmunizationProtocolApplied(ctx context.Context, se out.Values[i] = ec._ImmunizationProtocolApplied_extension(ctx, field, obj) case "id": out.Values[i] = ec._ImmunizationProtocolApplied_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._ImmunizationProtocolApplied_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ImmunizationProtocolApplied_resourceType(ctx, field, obj) - case "series": - out.Values[i] = ec._ImmunizationProtocolApplied_series(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183326,6 +183938,8 @@ func (ec *executionContext) _ImmunizationReaction(ctx context.Context, sel ast.S switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ImmunizationReaction") + case "id": + out.Values[i] = ec._ImmunizationReaction_id(ctx, field, obj) case "manifestation": out.Values[i] = ec._ImmunizationReaction_manifestation(ctx, field, obj) case "modifierExtension": @@ -183338,8 +183952,6 @@ func (ec *executionContext) _ImmunizationReaction(ctx context.Context, sel ast.S out.Values[i] = ec._ImmunizationReaction_date(ctx, field, obj) case "extension": out.Values[i] = ec._ImmunizationReaction_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._ImmunizationReaction_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183374,54 +183986,54 @@ func (ec *executionContext) _Location(ctx context.Context, sel ast.SelectionSet, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Location") - case "meta": - out.Values[i] = ec._Location_meta(ctx, field, obj) case "name": out.Values[i] = ec._Location_name(ctx, field, obj) - case "contained": - out.Values[i] = ec._Location_contained(ctx, field, obj) - case "form": - out.Values[i] = ec._Location_form(ctx, field, obj) case "language": out.Values[i] = ec._Location_language(ctx, field, obj) - case "extension": - out.Values[i] = ec._Location_extension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._Location_resourceType(ctx, field, obj) + case "text": + out.Values[i] = ec._Location_text(ctx, field, obj) case "id": out.Values[i] = ec._Location_id(ctx, field, obj) - case "characteristic": - out.Values[i] = ec._Location_characteristic(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._Location_modifierExtension(ctx, field, obj) - case "address": - out.Values[i] = ec._Location_address(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._Location_implicitRules(ctx, field, obj) - case "mode": - out.Values[i] = ec._Location_mode(ctx, field, obj) case "operationalStatus": out.Values[i] = ec._Location_operationalStatus(ctx, field, obj) - case "position": - out.Values[i] = ec._Location_position(ctx, field, obj) - case "virtualService": - out.Values[i] = ec._Location_virtualService(ctx, field, obj) - case "text": - out.Values[i] = ec._Location_text(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._Location_modifierExtension(ctx, field, obj) + case "type": + out.Values[i] = ec._Location_type(ctx, field, obj) + case "characteristic": + out.Values[i] = ec._Location_characteristic(ctx, field, obj) + case "form": + out.Values[i] = ec._Location_form(ctx, field, obj) case "contact": out.Values[i] = ec._Location_contact(ctx, field, obj) - case "status": - out.Values[i] = ec._Location_status(ctx, field, obj) - case "hoursOfOperation": - out.Values[i] = ec._Location_hoursOfOperation(ctx, field, obj) case "identifier": out.Values[i] = ec._Location_identifier(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Location_resourceType(ctx, field, obj) + case "position": + out.Values[i] = ec._Location_position(ctx, field, obj) + case "extension": + out.Values[i] = ec._Location_extension(ctx, field, obj) + case "meta": + out.Values[i] = ec._Location_meta(ctx, field, obj) + case "mode": + out.Values[i] = ec._Location_mode(ctx, field, obj) case "alias": out.Values[i] = ec._Location_alias(ctx, field, obj) - case "type": - out.Values[i] = ec._Location_type(ctx, field, obj) + case "virtualService": + out.Values[i] = ec._Location_virtualService(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._Location_implicitRules(ctx, field, obj) + case "contained": + out.Values[i] = ec._Location_contained(ctx, field, obj) + case "status": + out.Values[i] = ec._Location_status(ctx, field, obj) case "description": out.Values[i] = ec._Location_description(ctx, field, obj) + case "hoursOfOperation": + out.Values[i] = ec._Location_hoursOfOperation(ctx, field, obj) + case "address": + out.Values[i] = ec._Location_address(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183456,8 +184068,6 @@ func (ec *executionContext) _LocationPosition(ctx context.Context, sel ast.Selec switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("LocationPosition") - case "altitude": - out.Values[i] = ec._LocationPosition_altitude(ctx, field, obj) case "extension": out.Values[i] = ec._LocationPosition_extension(ctx, field, obj) case "id": @@ -183470,6 +184080,8 @@ func (ec *executionContext) _LocationPosition(ctx context.Context, sel ast.Selec out.Values[i] = ec._LocationPosition_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._LocationPosition_resourceType(ctx, field, obj) + case "altitude": + out.Values[i] = ec._LocationPosition_altitude(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183504,28 +184116,28 @@ func (ec *executionContext) _MedicationAdministrationDosage(ctx context.Context, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationAdministrationDosage") - case "id": - out.Values[i] = ec._MedicationAdministrationDosage_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._MedicationAdministrationDosage_modifierExtension(ctx, field, obj) - case "rateQuantity": - out.Values[i] = ec._MedicationAdministrationDosage_rateQuantity(ctx, field, obj) + case "route": + out.Values[i] = ec._MedicationAdministrationDosage_route(ctx, field, obj) case "text": out.Values[i] = ec._MedicationAdministrationDosage_text(ctx, field, obj) case "extension": out.Values[i] = ec._MedicationAdministrationDosage_extension(ctx, field, obj) - case "dose": - out.Values[i] = ec._MedicationAdministrationDosage_dose(ctx, field, obj) - case "site": - out.Values[i] = ec._MedicationAdministrationDosage_site(ctx, field, obj) case "method": out.Values[i] = ec._MedicationAdministrationDosage_method(ctx, field, obj) + case "rateQuantity": + out.Values[i] = ec._MedicationAdministrationDosage_rateQuantity(ctx, field, obj) case "rateRatio": out.Values[i] = ec._MedicationAdministrationDosage_rateRatio(ctx, field, obj) - case "route": - out.Values[i] = ec._MedicationAdministrationDosage_route(ctx, field, obj) + case "id": + out.Values[i] = ec._MedicationAdministrationDosage_id(ctx, field, obj) + case "dose": + out.Values[i] = ec._MedicationAdministrationDosage_dose(ctx, field, obj) case "resourceType": out.Values[i] = ec._MedicationAdministrationDosage_resourceType(ctx, field, obj) + case "site": + out.Values[i] = ec._MedicationAdministrationDosage_site(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._MedicationAdministrationDosage_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183560,6 +184172,8 @@ func (ec *executionContext) _MedicationAdministrationPerformer(ctx context.Conte switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationAdministrationPerformer") + case "function": + out.Values[i] = ec._MedicationAdministrationPerformer_function(ctx, field, obj) case "id": out.Values[i] = ec._MedicationAdministrationPerformer_id(ctx, field, obj) case "modifierExtension": @@ -183570,8 +184184,6 @@ func (ec *executionContext) _MedicationAdministrationPerformer(ctx context.Conte out.Values[i] = ec._MedicationAdministrationPerformer_actor(ctx, field, obj) case "extension": out.Values[i] = ec._MedicationAdministrationPerformer_extension(ctx, field, obj) - case "function": - out.Values[i] = ec._MedicationAdministrationPerformer_function(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183595,7 +184207,7 @@ func (ec *executionContext) _MedicationAdministrationPerformer(ctx context.Conte return out } -var medicationAdministrationTypeImplementors = []string{"MedicationAdministrationType", "MedicationAdministrationPartOfUnion", "ObservationPartOfUnion", "ProcedurePartOfUnion", "ResourceUnion"} +var medicationAdministrationTypeImplementors = []string{"MedicationAdministrationType", "MedicationAdministrationPartOfUnion", "ProcedurePartOfUnion", "ObservationPartOfUnion", "ResourceUnion"} func (ec *executionContext) _MedicationAdministrationType(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationAdministrationType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, medicationAdministrationTypeImplementors) @@ -183606,64 +184218,79 @@ func (ec *executionContext) _MedicationAdministrationType(ctx context.Context, s switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationAdministrationType") - case "subPotentReason": - out.Values[i] = ec._MedicationAdministrationType_subPotentReason(ctx, field, obj) - case "device": - out.Values[i] = ec._MedicationAdministrationType_device(ctx, field, obj) - case "category": - out.Values[i] = ec._MedicationAdministrationType_category(ctx, field, obj) - case "occurenceDateTime": - out.Values[i] = ec._MedicationAdministrationType_occurenceDateTime(ctx, field, obj) - case "medication": - out.Values[i] = ec._MedicationAdministrationType_medication(ctx, field, obj) - case "occurencePeriod": - out.Values[i] = ec._MedicationAdministrationType_occurencePeriod(ctx, field, obj) - case "isSubPotent": - out.Values[i] = ec._MedicationAdministrationType_isSubPotent(ctx, field, obj) - case "identifier": - out.Values[i] = ec._MedicationAdministrationType_identifier(ctx, field, obj) - case "meta": - out.Values[i] = ec._MedicationAdministrationType_meta(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._MedicationAdministrationType_modifierExtension(ctx, field, obj) + case "note": + out.Values[i] = ec._MedicationAdministrationType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "dosage": out.Values[i] = ec._MedicationAdministrationType_dosage(ctx, field, obj) - case "performer": - out.Values[i] = ec._MedicationAdministrationType_performer(ctx, field, obj) - case "status": - out.Values[i] = ec._MedicationAdministrationType_status(ctx, field, obj) - case "recorded": - out.Values[i] = ec._MedicationAdministrationType_recorded(ctx, field, obj) - case "id": - out.Values[i] = ec._MedicationAdministrationType_id(ctx, field, obj) - case "occurenceTiming": - out.Values[i] = ec._MedicationAdministrationType_occurenceTiming(ctx, field, obj) - case "subject": - out.Values[i] = ec._MedicationAdministrationType_subject(ctx, field, obj) case "language": out.Values[i] = ec._MedicationAdministrationType_language(ctx, field, obj) case "request": out.Values[i] = ec._MedicationAdministrationType_request(ctx, field, obj) - case "note": - out.Values[i] = ec._MedicationAdministrationType_note(ctx, field, obj) - case "text": - out.Values[i] = ec._MedicationAdministrationType_text(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "reason": + out.Values[i] = ec._MedicationAdministrationType_reason(ctx, field, obj) + case "occurencePeriod": + out.Values[i] = ec._MedicationAdministrationType_occurencePeriod(ctx, field, obj) case "resourceType": out.Values[i] = ec._MedicationAdministrationType_resourceType(ctx, field, obj) - case "statusReason": - out.Values[i] = ec._MedicationAdministrationType_statusReason(ctx, field, obj) + case "text": + out.Values[i] = ec._MedicationAdministrationType_text(ctx, field, obj) + case "medication": + out.Values[i] = ec._MedicationAdministrationType_medication(ctx, field, obj) case "implicitRules": out.Values[i] = ec._MedicationAdministrationType_implicitRules(ctx, field, obj) + case "category": + out.Values[i] = ec._MedicationAdministrationType_category(ctx, field, obj) + case "meta": + out.Values[i] = ec._MedicationAdministrationType_meta(ctx, field, obj) + case "isSubPotent": + out.Values[i] = ec._MedicationAdministrationType_isSubPotent(ctx, field, obj) + case "recorded": + out.Values[i] = ec._MedicationAdministrationType_recorded(ctx, field, obj) + case "performer": + out.Values[i] = ec._MedicationAdministrationType_performer(ctx, field, obj) + case "statusReason": + out.Values[i] = ec._MedicationAdministrationType_statusReason(ctx, field, obj) + case "subject": + out.Values[i] = ec._MedicationAdministrationType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "contained": + out.Values[i] = ec._MedicationAdministrationType_contained(ctx, field, obj) + case "extension": + out.Values[i] = ec._MedicationAdministrationType_extension(ctx, field, obj) case "partOf": out.Values[i] = ec._MedicationAdministrationType_partOf(ctx, field, obj) - case "reason": - out.Values[i] = ec._MedicationAdministrationType_reason(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "occurenceTiming": + out.Values[i] = ec._MedicationAdministrationType_occurenceTiming(ctx, field, obj) + case "subPotentReason": + out.Values[i] = ec._MedicationAdministrationType_subPotentReason(ctx, field, obj) case "supportingInformation": out.Values[i] = ec._MedicationAdministrationType_supportingInformation(ctx, field, obj) - case "extension": - out.Values[i] = ec._MedicationAdministrationType_extension(ctx, field, obj) - case "contained": - out.Values[i] = ec._MedicationAdministrationType_contained(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._MedicationAdministrationType_status(ctx, field, obj) + case "id": + out.Values[i] = ec._MedicationAdministrationType_id(ctx, field, obj) + case "occurenceDateTime": + out.Values[i] = ec._MedicationAdministrationType_occurenceDateTime(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._MedicationAdministrationType_modifierExtension(ctx, field, obj) + case "device": + out.Values[i] = ec._MedicationAdministrationType_device(ctx, field, obj) + case "identifier": + out.Values[i] = ec._MedicationAdministrationType_identifier(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183698,6 +184325,10 @@ func (ec *executionContext) _MedicationBatch(ctx context.Context, sel ast.Select switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationBatch") + case "id": + out.Values[i] = ec._MedicationBatch_id(ctx, field, obj) + case "lotNumber": + out.Values[i] = ec._MedicationBatch_lotNumber(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._MedicationBatch_modifierExtension(ctx, field, obj) case "resourceType": @@ -183706,10 +184337,6 @@ func (ec *executionContext) _MedicationBatch(ctx context.Context, sel ast.Select out.Values[i] = ec._MedicationBatch_expirationDate(ctx, field, obj) case "extension": out.Values[i] = ec._MedicationBatch_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._MedicationBatch_id(ctx, field, obj) - case "lotNumber": - out.Values[i] = ec._MedicationBatch_lotNumber(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183744,24 +184371,24 @@ func (ec *executionContext) _MedicationIngredient(ctx context.Context, sel ast.S switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationIngredient") + case "item": + out.Values[i] = ec._MedicationIngredient_item(ctx, field, obj) + case "strengthQuantity": + out.Values[i] = ec._MedicationIngredient_strengthQuantity(ctx, field, obj) + case "strengthRatio": + out.Values[i] = ec._MedicationIngredient_strengthRatio(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationIngredient_resourceType(ctx, field, obj) case "strengthCodeableConcept": out.Values[i] = ec._MedicationIngredient_strengthCodeableConcept(ctx, field, obj) case "id": out.Values[i] = ec._MedicationIngredient_id(ctx, field, obj) + case "isActive": + out.Values[i] = ec._MedicationIngredient_isActive(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._MedicationIngredient_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._MedicationIngredient_resourceType(ctx, field, obj) case "extension": out.Values[i] = ec._MedicationIngredient_extension(ctx, field, obj) - case "isActive": - out.Values[i] = ec._MedicationIngredient_isActive(ctx, field, obj) - case "item": - out.Values[i] = ec._MedicationIngredient_item(ctx, field, obj) - case "strengthQuantity": - out.Values[i] = ec._MedicationIngredient_strengthQuantity(ctx, field, obj) - case "strengthRatio": - out.Values[i] = ec._MedicationIngredient_strengthRatio(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183796,32 +184423,38 @@ func (ec *executionContext) _MedicationRequestDispenseRequest(ctx context.Contex switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationRequestDispenseRequest") - case "expectedSupplyDuration": - out.Values[i] = ec._MedicationRequestDispenseRequest_expectedSupplyDuration(ctx, field, obj) - case "initialFill": - out.Values[i] = ec._MedicationRequestDispenseRequest_initialFill(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._MedicationRequestDispenseRequest_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._MedicationRequestDispenseRequest_resourceType(ctx, field, obj) - case "validityPeriod": - out.Values[i] = ec._MedicationRequestDispenseRequest_validityPeriod(ctx, field, obj) - case "doseAdministrationAid": - out.Values[i] = ec._MedicationRequestDispenseRequest_doseAdministrationAid(ctx, field, obj) + case "dispenserInstruction": + out.Values[i] = ec._MedicationRequestDispenseRequest_dispenserInstruction(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "id": out.Values[i] = ec._MedicationRequestDispenseRequest_id(ctx, field, obj) case "dispenseInterval": out.Values[i] = ec._MedicationRequestDispenseRequest_dispenseInterval(ctx, field, obj) - case "dispenser": - out.Values[i] = ec._MedicationRequestDispenseRequest_dispenser(ctx, field, obj) - case "dispenserInstruction": - out.Values[i] = ec._MedicationRequestDispenseRequest_dispenserInstruction(ctx, field, obj) + case "doseAdministrationAid": + out.Values[i] = ec._MedicationRequestDispenseRequest_doseAdministrationAid(ctx, field, obj) + case "initialFill": + out.Values[i] = ec._MedicationRequestDispenseRequest_initialFill(ctx, field, obj) case "quantity": out.Values[i] = ec._MedicationRequestDispenseRequest_quantity(ctx, field, obj) - case "extension": - out.Values[i] = ec._MedicationRequestDispenseRequest_extension(ctx, field, obj) + case "validityPeriod": + out.Values[i] = ec._MedicationRequestDispenseRequest_validityPeriod(ctx, field, obj) + case "expectedSupplyDuration": + out.Values[i] = ec._MedicationRequestDispenseRequest_expectedSupplyDuration(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._MedicationRequestDispenseRequest_modifierExtension(ctx, field, obj) case "numberOfRepeatsAllowed": out.Values[i] = ec._MedicationRequestDispenseRequest_numberOfRepeatsAllowed(ctx, field, obj) + case "dispenser": + out.Values[i] = ec._MedicationRequestDispenseRequest_dispenser(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "extension": + out.Values[i] = ec._MedicationRequestDispenseRequest_extension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationRequestDispenseRequest_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183902,6 +184535,12 @@ func (ec *executionContext) _MedicationRequestSubstitution(ctx context.Context, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationRequestSubstitution") + case "extension": + out.Values[i] = ec._MedicationRequestSubstitution_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._MedicationRequestSubstitution_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._MedicationRequestSubstitution_modifierExtension(ctx, field, obj) case "reason": out.Values[i] = ec._MedicationRequestSubstitution_reason(ctx, field, obj) case "resourceType": @@ -183910,12 +184549,6 @@ func (ec *executionContext) _MedicationRequestSubstitution(ctx context.Context, out.Values[i] = ec._MedicationRequestSubstitution_allowedBoolean(ctx, field, obj) case "allowedCodeableConcept": out.Values[i] = ec._MedicationRequestSubstitution_allowedCodeableConcept(ctx, field, obj) - case "extension": - out.Values[i] = ec._MedicationRequestSubstitution_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._MedicationRequestSubstitution_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._MedicationRequestSubstitution_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -183939,7 +184572,7 @@ func (ec *executionContext) _MedicationRequestSubstitution(ctx context.Context, return out } -var medicationRequestTypeImplementors = []string{"MedicationRequestType", "DocumentReferenceBasedOnUnion", "MedicationRequestBasedOnUnion", "ObservationBasedOnUnion", "DiagnosticReportBasedOnUnion", "ResourceUnion"} +var medicationRequestTypeImplementors = []string{"MedicationRequestType", "DiagnosticReportBasedOnUnion", "MedicationRequestBasedOnUnion", "DocumentReferenceBasedOnUnion", "ObservationBasedOnUnion", "ResourceUnion"} func (ec *executionContext) _MedicationRequestType(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationRequestType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, medicationRequestTypeImplementors) @@ -183950,84 +184583,111 @@ func (ec *executionContext) _MedicationRequestType(ctx context.Context, sel ast. switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationRequestType") + case "subject": + out.Values[i] = ec._MedicationRequestType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dosageInstruction": + out.Values[i] = ec._MedicationRequestType_dosageInstruction(ctx, field, obj) + case "note": + out.Values[i] = ec._MedicationRequestType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "category": + out.Values[i] = ec._MedicationRequestType_category(ctx, field, obj) case "medication": out.Values[i] = ec._MedicationRequestType_medication(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._MedicationRequestType_resourceType(ctx, field, obj) - case "reason": - out.Values[i] = ec._MedicationRequestType_reason(ctx, field, obj) - case "statusChanged": - out.Values[i] = ec._MedicationRequestType_statusChanged(ctx, field, obj) + case "priority": + out.Values[i] = ec._MedicationRequestType_priority(ctx, field, obj) + case "contained": + out.Values[i] = ec._MedicationRequestType_contained(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._MedicationRequestType_modifierExtension(ctx, field, obj) case "courseOfTherapyType": out.Values[i] = ec._MedicationRequestType_courseOfTherapyType(ctx, field, obj) + case "dispenseRequest": + out.Values[i] = ec._MedicationRequestType_dispenseRequest(ctx, field, obj) + case "text": + out.Values[i] = ec._MedicationRequestType_text(ctx, field, obj) case "effectiveDosePeriod": out.Values[i] = ec._MedicationRequestType_effectiveDosePeriod(ctx, field, obj) - case "device": - out.Values[i] = ec._MedicationRequestType_device(ctx, field, obj) + case "extension": + out.Values[i] = ec._MedicationRequestType_extension(ctx, field, obj) + case "performerType": + out.Values[i] = ec._MedicationRequestType_performerType(ctx, field, obj) + case "groupIdentifier": + out.Values[i] = ec._MedicationRequestType_groupIdentifier(ctx, field, obj) + case "substitution": + out.Values[i] = ec._MedicationRequestType_substitution(ctx, field, obj) + case "status": + out.Values[i] = ec._MedicationRequestType_status(ctx, field, obj) case "supportingInformation": out.Values[i] = ec._MedicationRequestType_supportingInformation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "informationSource": + out.Values[i] = ec._MedicationRequestType_informationSource(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "doNotPerform": + out.Values[i] = ec._MedicationRequestType_doNotPerform(ctx, field, obj) + case "reported": + out.Values[i] = ec._MedicationRequestType_reported(ctx, field, obj) case "performer": out.Values[i] = ec._MedicationRequestType_performer(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "basedOn": + out.Values[i] = ec._MedicationRequestType_basedOn(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "identifier": + out.Values[i] = ec._MedicationRequestType_identifier(ctx, field, obj) + case "statusReason": + out.Values[i] = ec._MedicationRequestType_statusReason(ctx, field, obj) + case "renderedDosageInstruction": + out.Values[i] = ec._MedicationRequestType_renderedDosageInstruction(ctx, field, obj) + case "recorder": + out.Values[i] = ec._MedicationRequestType_recorder(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "authoredOn": out.Values[i] = ec._MedicationRequestType_authoredOn(ctx, field, obj) - case "note": - out.Values[i] = ec._MedicationRequestType_note(ctx, field, obj) - case "text": - out.Values[i] = ec._MedicationRequestType_text(ctx, field, obj) - case "id": - out.Values[i] = ec._MedicationRequestType_id(ctx, field, obj) + case "intent": + out.Values[i] = ec._MedicationRequestType_intent(ctx, field, obj) case "language": out.Values[i] = ec._MedicationRequestType_language(ctx, field, obj) - case "status": - out.Values[i] = ec._MedicationRequestType_status(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._MedicationRequestType_implicitRules(ctx, field, obj) + case "reason": + out.Values[i] = ec._MedicationRequestType_reason(ctx, field, obj) + case "meta": + out.Values[i] = ec._MedicationRequestType_meta(ctx, field, obj) case "requester": out.Values[i] = ec._MedicationRequestType_requester(ctx, field, obj) - case "groupIdentifier": - out.Values[i] = ec._MedicationRequestType_groupIdentifier(ctx, field, obj) - case "statusReason": - out.Values[i] = ec._MedicationRequestType_statusReason(ctx, field, obj) - case "intent": - out.Values[i] = ec._MedicationRequestType_intent(ctx, field, obj) - case "dosageInstruction": - out.Values[i] = ec._MedicationRequestType_dosageInstruction(ctx, field, obj) - case "informationSource": - out.Values[i] = ec._MedicationRequestType_informationSource(ctx, field, obj) - case "performerType": - out.Values[i] = ec._MedicationRequestType_performerType(ctx, field, obj) - case "identifier": - out.Values[i] = ec._MedicationRequestType_identifier(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._MedicationRequestType_modifierExtension(ctx, field, obj) - case "category": - out.Values[i] = ec._MedicationRequestType_category(ctx, field, obj) - case "recorder": - out.Values[i] = ec._MedicationRequestType_recorder(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "priorPrescription": out.Values[i] = ec._MedicationRequestType_priorPrescription(ctx, field, obj) - case "meta": - out.Values[i] = ec._MedicationRequestType_meta(ctx, field, obj) - case "basedOn": - out.Values[i] = ec._MedicationRequestType_basedOn(ctx, field, obj) - case "extension": - out.Values[i] = ec._MedicationRequestType_extension(ctx, field, obj) - case "renderedDosageInstruction": - out.Values[i] = ec._MedicationRequestType_renderedDosageInstruction(ctx, field, obj) - case "reported": - out.Values[i] = ec._MedicationRequestType_reported(ctx, field, obj) - case "substitution": - out.Values[i] = ec._MedicationRequestType_substitution(ctx, field, obj) - case "doNotPerform": - out.Values[i] = ec._MedicationRequestType_doNotPerform(ctx, field, obj) - case "contained": - out.Values[i] = ec._MedicationRequestType_contained(ctx, field, obj) - case "subject": - out.Values[i] = ec._MedicationRequestType_subject(ctx, field, obj) - case "dispenseRequest": - out.Values[i] = ec._MedicationRequestType_dispenseRequest(ctx, field, obj) - case "priority": - out.Values[i] = ec._MedicationRequestType_priority(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "device": + out.Values[i] = ec._MedicationRequestType_device(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationRequestType_resourceType(ctx, field, obj) + case "statusChanged": + out.Values[i] = ec._MedicationRequestType_statusChanged(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._MedicationRequestType_implicitRules(ctx, field, obj) + case "id": + out.Values[i] = ec._MedicationRequestType_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184062,6 +184722,8 @@ func (ec *executionContext) _MedicationStatementAdherence(ctx context.Context, s switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationStatementAdherence") + case "code": + out.Values[i] = ec._MedicationStatementAdherence_code(ctx, field, obj) case "extension": out.Values[i] = ec._MedicationStatementAdherence_extension(ctx, field, obj) case "id": @@ -184072,8 +184734,6 @@ func (ec *executionContext) _MedicationStatementAdherence(ctx context.Context, s out.Values[i] = ec._MedicationStatementAdherence_reason(ctx, field, obj) case "resourceType": out.Values[i] = ec._MedicationStatementAdherence_resourceType(ctx, field, obj) - case "code": - out.Values[i] = ec._MedicationStatementAdherence_code(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184108,60 +184768,78 @@ func (ec *executionContext) _MedicationStatementType(ctx context.Context, sel as switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationStatementType") - case "relatedClinicalInformation": - out.Values[i] = ec._MedicationStatementType_relatedClinicalInformation(ctx, field, obj) - case "meta": - out.Values[i] = ec._MedicationStatementType_meta(ctx, field, obj) - case "effectivePeriod": - out.Values[i] = ec._MedicationStatementType_effectivePeriod(ctx, field, obj) - case "dosage": - out.Values[i] = ec._MedicationStatementType_dosage(ctx, field, obj) - case "category": - out.Values[i] = ec._MedicationStatementType_category(ctx, field, obj) - case "contained": - out.Values[i] = ec._MedicationStatementType_contained(ctx, field, obj) - case "effectiveDateTime": - out.Values[i] = ec._MedicationStatementType_effectiveDateTime(ctx, field, obj) + case "text": + out.Values[i] = ec._MedicationStatementType_text(ctx, field, obj) case "identifier": out.Values[i] = ec._MedicationStatementType_identifier(ctx, field, obj) - case "note": - out.Values[i] = ec._MedicationStatementType_note(ctx, field, obj) + case "reason": + out.Values[i] = ec._MedicationStatementType_reason(ctx, field, obj) case "implicitRules": out.Values[i] = ec._MedicationStatementType_implicitRules(ctx, field, obj) case "medication": out.Values[i] = ec._MedicationStatementType_medication(ctx, field, obj) - case "renderedDosageInstruction": - out.Values[i] = ec._MedicationStatementType_renderedDosageInstruction(ctx, field, obj) - case "derivedFrom": - out.Values[i] = ec._MedicationStatementType_derivedFrom(ctx, field, obj) + case "note": + out.Values[i] = ec._MedicationStatementType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "category": + out.Values[i] = ec._MedicationStatementType_category(ctx, field, obj) + case "id": + out.Values[i] = ec._MedicationStatementType_id(ctx, field, obj) + case "informationSource": + out.Values[i] = ec._MedicationStatementType_informationSource(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "relatedClinicalInformation": + out.Values[i] = ec._MedicationStatementType_relatedClinicalInformation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "effectiveTiming": + out.Values[i] = ec._MedicationStatementType_effectiveTiming(ctx, field, obj) + case "effectiveDateTime": + out.Values[i] = ec._MedicationStatementType_effectiveDateTime(ctx, field, obj) case "subject": out.Values[i] = ec._MedicationStatementType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "effectivePeriod": + out.Values[i] = ec._MedicationStatementType_effectivePeriod(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._MedicationStatementType_modifierExtension(ctx, field, obj) + case "derivedFrom": + out.Values[i] = ec._MedicationStatementType_derivedFrom(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "adherence": out.Values[i] = ec._MedicationStatementType_adherence(ctx, field, obj) - case "reason": - out.Values[i] = ec._MedicationStatementType_reason(ctx, field, obj) - case "text": - out.Values[i] = ec._MedicationStatementType_text(ctx, field, obj) case "language": out.Values[i] = ec._MedicationStatementType_language(ctx, field, obj) - case "partOf": - out.Values[i] = ec._MedicationStatementType_partOf(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._MedicationStatementType_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationStatementType_resourceType(ctx, field, obj) + case "renderedDosageInstruction": + out.Values[i] = ec._MedicationStatementType_renderedDosageInstruction(ctx, field, obj) + case "contained": + out.Values[i] = ec._MedicationStatementType_contained(ctx, field, obj) + case "meta": + out.Values[i] = ec._MedicationStatementType_meta(ctx, field, obj) + case "dosage": + out.Values[i] = ec._MedicationStatementType_dosage(ctx, field, obj) + case "status": + out.Values[i] = ec._MedicationStatementType_status(ctx, field, obj) case "dateAsserted": out.Values[i] = ec._MedicationStatementType_dateAsserted(ctx, field, obj) case "extension": out.Values[i] = ec._MedicationStatementType_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._MedicationStatementType_id(ctx, field, obj) - case "effectiveTiming": - out.Values[i] = ec._MedicationStatementType_effectiveTiming(ctx, field, obj) - case "informationSource": - out.Values[i] = ec._MedicationStatementType_informationSource(ctx, field, obj) - case "status": - out.Values[i] = ec._MedicationStatementType_status(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._MedicationStatementType_resourceType(ctx, field, obj) + case "partOf": + out.Values[i] = ec._MedicationStatementType_partOf(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184185,7 +184863,7 @@ func (ec *executionContext) _MedicationStatementType(ctx context.Context, sel as return out } -var medicationTypeImplementors = []string{"MedicationType", "ObservationSubjectUnion", "ResearchSubjectSubjectUnion", "DiagnosticReportSubjectUnion", "ResourceUnion"} +var medicationTypeImplementors = []string{"MedicationType", "ResearchSubjectSubjectUnion", "DiagnosticReportSubjectUnion", "ObservationSubjectUnion", "ResourceUnion"} func (ec *executionContext) _MedicationType(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, medicationTypeImplementors) @@ -184196,40 +184874,43 @@ func (ec *executionContext) _MedicationType(ctx context.Context, sel ast.Selecti switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("MedicationType") - case "doseForm": - out.Values[i] = ec._MedicationType_doseForm(ctx, field, obj) - case "code": - out.Values[i] = ec._MedicationType_code(ctx, field, obj) - case "identifier": - out.Values[i] = ec._MedicationType_identifier(ctx, field, obj) - case "text": - out.Values[i] = ec._MedicationType_text(ctx, field, obj) case "meta": out.Values[i] = ec._MedicationType_meta(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._MedicationType_resourceType(ctx, field, obj) - case "status": - out.Values[i] = ec._MedicationType_status(ctx, field, obj) - case "language": - out.Values[i] = ec._MedicationType_language(ctx, field, obj) + case "text": + out.Values[i] = ec._MedicationType_text(ctx, field, obj) + case "marketingAuthorizationHolder": + out.Values[i] = ec._MedicationType_marketingAuthorizationHolder(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "modifierExtension": out.Values[i] = ec._MedicationType_modifierExtension(ctx, field, obj) - case "contained": - out.Values[i] = ec._MedicationType_contained(ctx, field, obj) - case "batch": - out.Values[i] = ec._MedicationType_batch(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._MedicationType_implicitRules(ctx, field, obj) case "totalVolume": out.Values[i] = ec._MedicationType_totalVolume(ctx, field, obj) - case "extension": - out.Values[i] = ec._MedicationType_extension(ctx, field, obj) + case "language": + out.Values[i] = ec._MedicationType_language(ctx, field, obj) + case "doseForm": + out.Values[i] = ec._MedicationType_doseForm(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationType_resourceType(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._MedicationType_implicitRules(ctx, field, obj) case "ingredient": out.Values[i] = ec._MedicationType_ingredient(ctx, field, obj) + case "contained": + out.Values[i] = ec._MedicationType_contained(ctx, field, obj) + case "extension": + out.Values[i] = ec._MedicationType_extension(ctx, field, obj) + case "identifier": + out.Values[i] = ec._MedicationType_identifier(ctx, field, obj) case "id": out.Values[i] = ec._MedicationType_id(ctx, field, obj) - case "marketingAuthorizationHolder": - out.Values[i] = ec._MedicationType_marketingAuthorizationHolder(ctx, field, obj) + case "status": + out.Values[i] = ec._MedicationType_status(ctx, field, obj) + case "batch": + out.Values[i] = ec._MedicationType_batch(ctx, field, obj) + case "code": + out.Values[i] = ec._MedicationType_code(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184264,24 +184945,24 @@ func (ec *executionContext) _Meta(ctx context.Context, sel ast.SelectionSet, obj switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Meta") - case "profile": - out.Values[i] = ec._Meta_profile(ctx, field, obj) - case "security": - out.Values[i] = ec._Meta_security(ctx, field, obj) - case "source": - out.Values[i] = ec._Meta_source(ctx, field, obj) - case "tag": - out.Values[i] = ec._Meta_tag(ctx, field, obj) - case "versionId": - out.Values[i] = ec._Meta_versionId(ctx, field, obj) case "lastUpdated": out.Values[i] = ec._Meta_lastUpdated(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._Meta_resourceType(ctx, field, obj) + case "security": + out.Values[i] = ec._Meta_security(ctx, field, obj) case "extension": out.Values[i] = ec._Meta_extension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Meta_resourceType(ctx, field, obj) + case "versionId": + out.Values[i] = ec._Meta_versionId(ctx, field, obj) + case "tag": + out.Values[i] = ec._Meta_tag(ctx, field, obj) case "id": out.Values[i] = ec._Meta_id(ctx, field, obj) + case "profile": + out.Values[i] = ec._Meta_profile(ctx, field, obj) + case "source": + out.Values[i] = ec._Meta_source(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184360,8 +185041,6 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Narrative") - case "div": - out.Values[i] = ec._Narrative_div(ctx, field, obj) case "extension": out.Values[i] = ec._Narrative_extension(ctx, field, obj) case "id": @@ -184370,6 +185049,8 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet out.Values[i] = ec._Narrative_resourceType(ctx, field, obj) case "status": out.Values[i] = ec._Narrative_status(ctx, field, obj) + case "div": + out.Values[i] = ec._Narrative_div(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184404,46 +185085,46 @@ func (ec *executionContext) _ObservationComponent(ctx context.Context, sel ast.S switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ObservationComponent") - case "id": - out.Values[i] = ec._ObservationComponent_id(ctx, field, obj) - case "valuePeriod": - out.Values[i] = ec._ObservationComponent_valuePeriod(ctx, field, obj) - case "valueQuantity": - out.Values[i] = ec._ObservationComponent_valueQuantity(ctx, field, obj) - case "valueRange": - out.Values[i] = ec._ObservationComponent_valueRange(ctx, field, obj) + case "dataAbsentReason": + out.Values[i] = ec._ObservationComponent_dataAbsentReason(ctx, field, obj) + case "interpretation": + out.Values[i] = ec._ObservationComponent_interpretation(ctx, field, obj) case "valueAttachment": out.Values[i] = ec._ObservationComponent_valueAttachment(ctx, field, obj) case "extension": out.Values[i] = ec._ObservationComponent_extension(ctx, field, obj) - case "valueSampledData": - out.Values[i] = ec._ObservationComponent_valueSampledData(ctx, field, obj) - case "valueString": - out.Values[i] = ec._ObservationComponent_valueString(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._ObservationComponent_modifierExtension(ctx, field, obj) - case "code": - out.Values[i] = ec._ObservationComponent_code(ctx, field, obj) - case "dataAbsentReason": - out.Values[i] = ec._ObservationComponent_dataAbsentReason(ctx, field, obj) + case "valueCodeableConcept": + out.Values[i] = ec._ObservationComponent_valueCodeableConcept(ctx, field, obj) + case "valueTime": + out.Values[i] = ec._ObservationComponent_valueTime(ctx, field, obj) case "valueBoolean": out.Values[i] = ec._ObservationComponent_valueBoolean(ctx, field, obj) - case "valueDateTime": - out.Values[i] = ec._ObservationComponent_valueDateTime(ctx, field, obj) + case "valuePeriod": + out.Values[i] = ec._ObservationComponent_valuePeriod(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ObservationComponent_modifierExtension(ctx, field, obj) case "valueInteger": out.Values[i] = ec._ObservationComponent_valueInteger(ctx, field, obj) - case "valueTime": - out.Values[i] = ec._ObservationComponent_valueTime(ctx, field, obj) - case "interpretation": - out.Values[i] = ec._ObservationComponent_interpretation(ctx, field, obj) - case "referenceRange": - out.Values[i] = ec._ObservationComponent_referenceRange(ctx, field, obj) case "resourceType": out.Values[i] = ec._ObservationComponent_resourceType(ctx, field, obj) - case "valueCodeableConcept": - out.Values[i] = ec._ObservationComponent_valueCodeableConcept(ctx, field, obj) + case "referenceRange": + out.Values[i] = ec._ObservationComponent_referenceRange(ctx, field, obj) + case "code": + out.Values[i] = ec._ObservationComponent_code(ctx, field, obj) case "valueRatio": out.Values[i] = ec._ObservationComponent_valueRatio(ctx, field, obj) + case "valueSampledData": + out.Values[i] = ec._ObservationComponent_valueSampledData(ctx, field, obj) + case "valueDateTime": + out.Values[i] = ec._ObservationComponent_valueDateTime(ctx, field, obj) + case "valueRange": + out.Values[i] = ec._ObservationComponent_valueRange(ctx, field, obj) + case "valueString": + out.Values[i] = ec._ObservationComponent_valueString(ctx, field, obj) + case "valueQuantity": + out.Values[i] = ec._ObservationComponent_valueQuantity(ctx, field, obj) + case "id": + out.Values[i] = ec._ObservationComponent_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184478,26 +185159,26 @@ func (ec *executionContext) _ObservationReferenceRange(ctx context.Context, sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ObservationReferenceRange") + case "resourceType": + out.Values[i] = ec._ObservationReferenceRange_resourceType(ctx, field, obj) + case "type": + out.Values[i] = ec._ObservationReferenceRange_type(ctx, field, obj) case "extension": out.Values[i] = ec._ObservationReferenceRange_extension(ctx, field, obj) + case "low": + out.Values[i] = ec._ObservationReferenceRange_low(ctx, field, obj) case "high": out.Values[i] = ec._ObservationReferenceRange_high(ctx, field, obj) - case "id": - out.Values[i] = ec._ObservationReferenceRange_id(ctx, field, obj) - case "type": - out.Values[i] = ec._ObservationReferenceRange_type(ctx, field, obj) + case "normalValue": + out.Values[i] = ec._ObservationReferenceRange_normalValue(ctx, field, obj) case "appliesTo": out.Values[i] = ec._ObservationReferenceRange_appliesTo(ctx, field, obj) - case "age": - out.Values[i] = ec._ObservationReferenceRange_age(ctx, field, obj) + case "id": + out.Values[i] = ec._ObservationReferenceRange_id(ctx, field, obj) case "text": out.Values[i] = ec._ObservationReferenceRange_text(ctx, field, obj) - case "low": - out.Values[i] = ec._ObservationReferenceRange_low(ctx, field, obj) - case "normalValue": - out.Values[i] = ec._ObservationReferenceRange_normalValue(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ObservationReferenceRange_resourceType(ctx, field, obj) + case "age": + out.Values[i] = ec._ObservationReferenceRange_age(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._ObservationReferenceRange_modifierExtension(ctx, field, obj) default: @@ -184534,20 +185215,23 @@ func (ec *executionContext) _ObservationTriggeredBy(ctx context.Context, sel ast switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ObservationTriggeredBy") + case "type": + out.Values[i] = ec._ObservationTriggeredBy_type(ctx, field, obj) + case "extension": + out.Values[i] = ec._ObservationTriggeredBy_extension(ctx, field, obj) case "id": out.Values[i] = ec._ObservationTriggeredBy_id(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._ObservationTriggeredBy_modifierExtension(ctx, field, obj) case "observation": out.Values[i] = ec._ObservationTriggeredBy_observation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "reason": out.Values[i] = ec._ObservationTriggeredBy_reason(ctx, field, obj) case "resourceType": out.Values[i] = ec._ObservationTriggeredBy_resourceType(ctx, field, obj) - case "type": - out.Values[i] = ec._ObservationTriggeredBy_type(ctx, field, obj) - case "extension": - out.Values[i] = ec._ObservationTriggeredBy_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184571,7 +185255,7 @@ func (ec *executionContext) _ObservationTriggeredBy(ctx context.Context, sel ast return out } -var observationTypeImplementors = []string{"ObservationType", "MedicationStatementRelatedClinicalInformationUnion", "ConditionStageUnion", "ObservationDerivedFromUnion", "ObservationHasMemberUnion", "ProcedurePartOfUnion", "ConditionStageAssessmentUnion", "DiagnosticReportSupportingInfoUnion", "DiagnosticReportSupportingInfoReferenceUnion", "ResourceUnion"} +var observationTypeImplementors = []string{"ObservationType", "ConditionStageUnion", "ConditionStageAssessmentUnion", "MedicationStatementRelatedClinicalInformationUnion", "DiagnosticReportSupportingInfoUnion", "DiagnosticReportSupportingInfoReferenceUnion", "ProcedurePartOfUnion", "ObservationDerivedFromUnion", "ObservationHasMemberUnion", "ResourceUnion"} func (ec *executionContext) _ObservationType(ctx context.Context, sel ast.SelectionSet, obj *model.ObservationType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, observationTypeImplementors) @@ -184582,102 +185266,132 @@ func (ec *executionContext) _ObservationType(ctx context.Context, sel ast.Select switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ObservationType") - case "effectivePeriod": - out.Values[i] = ec._ObservationType_effectivePeriod(ctx, field, obj) - case "derivedFrom": - out.Values[i] = ec._ObservationType_derivedFrom(ctx, field, obj) + case "bodyStructure": + out.Values[i] = ec._ObservationType_bodyStructure(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataAbsentReason": + out.Values[i] = ec._ObservationType_dataAbsentReason(ctx, field, obj) case "effectiveInstant": out.Values[i] = ec._ObservationType_effectiveInstant(ctx, field, obj) - case "valuePeriod": - out.Values[i] = ec._ObservationType_valuePeriod(ctx, field, obj) - case "instantiatesCanonical": - out.Values[i] = ec._ObservationType_instantiatesCanonical(ctx, field, obj) - case "referenceRange": - out.Values[i] = ec._ObservationType_referenceRange(ctx, field, obj) - case "code": - out.Values[i] = ec._ObservationType_code(ctx, field, obj) - case "category": - out.Values[i] = ec._ObservationType_category(ctx, field, obj) - case "valueBoolean": - out.Values[i] = ec._ObservationType_valueBoolean(ctx, field, obj) - case "performer": - out.Values[i] = ec._ObservationType_performer(ctx, field, obj) - case "bodySite": - out.Values[i] = ec._ObservationType_bodySite(ctx, field, obj) - case "text": - out.Values[i] = ec._ObservationType_text(ctx, field, obj) - case "valueQuantity": - out.Values[i] = ec._ObservationType_valueQuantity(ctx, field, obj) - case "valueString": - out.Values[i] = ec._ObservationType_valueString(ctx, field, obj) - case "id": - out.Values[i] = ec._ObservationType_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._ObservationType_modifierExtension(ctx, field, obj) - case "contained": - out.Values[i] = ec._ObservationType_contained(ctx, field, obj) - case "valueAttachment": - out.Values[i] = ec._ObservationType_valueAttachment(ctx, field, obj) - case "issued": - out.Values[i] = ec._ObservationType_issued(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._ObservationType_implicitRules(ctx, field, obj) + case "effectivePeriod": + out.Values[i] = ec._ObservationType_effectivePeriod(ctx, field, obj) + case "identifier": + out.Values[i] = ec._ObservationType_identifier(ctx, field, obj) case "meta": out.Values[i] = ec._ObservationType_meta(ctx, field, obj) + case "issued": + out.Values[i] = ec._ObservationType_issued(ctx, field, obj) case "method": out.Values[i] = ec._ObservationType_method(ctx, field, obj) - case "bodyStructure": - out.Values[i] = ec._ObservationType_bodyStructure(ctx, field, obj) - case "effectiveDateTime": - out.Values[i] = ec._ObservationType_effectiveDateTime(ctx, field, obj) - case "valueRatio": - out.Values[i] = ec._ObservationType_valueRatio(ctx, field, obj) - case "interpretation": - out.Values[i] = ec._ObservationType_interpretation(ctx, field, obj) - case "valueDateTime": - out.Values[i] = ec._ObservationType_valueDateTime(ctx, field, obj) case "valueTime": out.Values[i] = ec._ObservationType_valueTime(ctx, field, obj) - case "dataAbsentReason": - out.Values[i] = ec._ObservationType_dataAbsentReason(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ObservationType_resourceType(ctx, field, obj) + case "contained": + out.Values[i] = ec._ObservationType_contained(ctx, field, obj) + case "valueInteger": + out.Values[i] = ec._ObservationType_valueInteger(ctx, field, obj) + case "referenceRange": + out.Values[i] = ec._ObservationType_referenceRange(ctx, field, obj) case "note": out.Values[i] = ec._ObservationType_note(ctx, field, obj) - case "basedOn": - out.Values[i] = ec._ObservationType_basedOn(ctx, field, obj) - case "focus": - out.Values[i] = ec._ObservationType_focus(ctx, field, obj) - case "valueCodeableConcept": - out.Values[i] = ec._ObservationType_valueCodeableConcept(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "text": + out.Values[i] = ec._ObservationType_text(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ObservationType_resourceType(ctx, field, obj) + case "valueDateTime": + out.Values[i] = ec._ObservationType_valueDateTime(ctx, field, obj) + case "valueString": + out.Values[i] = ec._ObservationType_valueString(ctx, field, obj) + case "valueQuantity": + out.Values[i] = ec._ObservationType_valueQuantity(ctx, field, obj) + case "effectiveDateTime": + out.Values[i] = ec._ObservationType_effectiveDateTime(ctx, field, obj) case "hasMember": out.Values[i] = ec._ObservationType_hasMember(ctx, field, obj) - case "valueInteger": - out.Values[i] = ec._ObservationType_valueInteger(ctx, field, obj) - case "language": - out.Values[i] = ec._ObservationType_language(ctx, field, obj) - case "identifier": - out.Values[i] = ec._ObservationType_identifier(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "instantiatesCanonical": + out.Values[i] = ec._ObservationType_instantiatesCanonical(ctx, field, obj) + case "focus": + out.Values[i] = ec._ObservationType_focus(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "performer": + out.Values[i] = ec._ObservationType_performer(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "valueSampledData": out.Values[i] = ec._ObservationType_valueSampledData(ctx, field, obj) - case "subject": - out.Values[i] = ec._ObservationType_subject(ctx, field, obj) - case "extension": - out.Values[i] = ec._ObservationType_extension(ctx, field, obj) - case "triggeredBy": - out.Values[i] = ec._ObservationType_triggeredBy(ctx, field, obj) - case "specimen": - out.Values[i] = ec._ObservationType_specimen(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._ObservationType_implicitRules(ctx, field, obj) + case "language": + out.Values[i] = ec._ObservationType_language(ctx, field, obj) + case "valueCodeableConcept": + out.Values[i] = ec._ObservationType_valueCodeableConcept(ctx, field, obj) + case "code": + out.Values[i] = ec._ObservationType_code(ctx, field, obj) case "partOf": out.Values[i] = ec._ObservationType_partOf(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._ObservationType_status(ctx, field, obj) + case "category": + out.Values[i] = ec._ObservationType_category(ctx, field, obj) + case "triggeredBy": + out.Values[i] = ec._ObservationType_triggeredBy(ctx, field, obj) + case "subject": + out.Values[i] = ec._ObservationType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "derivedFrom": + out.Values[i] = ec._ObservationType_derivedFrom(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "modifierExtension": + out.Values[i] = ec._ObservationType_modifierExtension(ctx, field, obj) + case "bodySite": + out.Values[i] = ec._ObservationType_bodySite(ctx, field, obj) + case "valueRatio": + out.Values[i] = ec._ObservationType_valueRatio(ctx, field, obj) + case "basedOn": + out.Values[i] = ec._ObservationType_basedOn(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "component": out.Values[i] = ec._ObservationType_component(ctx, field, obj) - case "effectiveTiming": - out.Values[i] = ec._ObservationType_effectiveTiming(ctx, field, obj) + case "valueAttachment": + out.Values[i] = ec._ObservationType_valueAttachment(ctx, field, obj) case "valueRange": out.Values[i] = ec._ObservationType_valueRange(ctx, field, obj) - case "status": - out.Values[i] = ec._ObservationType_status(ctx, field, obj) + case "valuePeriod": + out.Values[i] = ec._ObservationType_valuePeriod(ctx, field, obj) + case "specimen": + out.Values[i] = ec._ObservationType_specimen(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "effectiveTiming": + out.Values[i] = ec._ObservationType_effectiveTiming(ctx, field, obj) + case "id": + out.Values[i] = ec._ObservationType_id(ctx, field, obj) + case "interpretation": + out.Values[i] = ec._ObservationType_interpretation(ctx, field, obj) + case "valueBoolean": + out.Values[i] = ec._ObservationType_valueBoolean(ctx, field, obj) + case "extension": + out.Values[i] = ec._ObservationType_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184720,6 +185434,9 @@ func (ec *executionContext) _OrganizationQualification(ctx context.Context, sel out.Values[i] = ec._OrganizationQualification_identifier(ctx, field, obj) case "issuer": out.Values[i] = ec._OrganizationQualification_issuer(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "modifierExtension": out.Values[i] = ec._OrganizationQualification_modifierExtension(ctx, field, obj) case "period": @@ -184751,7 +185468,7 @@ func (ec *executionContext) _OrganizationQualification(ctx context.Context, sel return out } -var organizationTypeImplementors = []string{"OrganizationType", "GroupManagingEntityUnion", "GroupMemberUnion", "ProcedurePerformerActorUnion", "SubstanceDefinitionNoteUnion", "ConditionParticipantActorUnion", "FamilyMemberHistoryParticipantActorUnion", "MedicationAdministrationNoteUnion", "ResearchStudyAssociatedPartyPartyUnion", "DocumentReferenceAuthorUnion", "DocumentReferenceAttesterUnion", "SubstanceDefinitionCodeNoteUnion", "MedicationRequestDispenseRequestDispenserInstructionUnion", "SignatureOnBehalfOfUnion", "SignatureWhoUnion", "UsageContextValueReferenceUnion", "FamilyMemberHistoryProcedureNoteUnion", "TaskRestrictionRecipientUnion", "SpecimenNoteUnion", "MedicationRequestPerformerUnion", "MedicationRequestRequesterUnion", "MedicationRequestNoteUnion", "MedicationRequestInformationSourceUnion", "PatientGeneralPractitionerUnion", "MedicationStatementInformationSourceUnion", "MedicationStatementNoteUnion", "GroupMemberEntityUnion", "ConditionNoteUnion", "ConditionParticipantUnion", "FamilyMemberHistoryConditionNoteUnion", "ObservationSubjectUnion", "ObservationNoteUnion", "ObservationPerformerUnion", "ProcedureFocusUnion", "ProcedureReportedReferenceUnion", "ProcedureSubjectUnion", "ProcedureNoteUnion", "ProcedurePerformerUnion", "ImagingStudySeriesPerformerUnion", "TaskPerformerActorUnion", "FamilyMemberHistoryNoteUnion", "FamilyMemberHistoryParticipantUnion", "TaskInputValueAnnotationUnion", "TaskInputValueSignatureUnion", "TaskInputValueUsageContextUnion", "ImagingStudyNoteUnion", "ResearchStudyAssociatedPartyUnion", "ResearchStudyNoteUnion", "ResearchStudySiteUnion", "DocumentReferenceAttesterPartyUnion", "ExtensionValueAnnotationUnion", "ExtensionValueSignatureUnion", "ExtensionValueUsageContextUnion", "ImagingStudySeriesPerformerActorUnion", "DiagnosticReportNoteUnion", "DiagnosticReportPerformerUnion", "DiagnosticReportResultsInterpreterUnion", "DiagnosticReportSubjectUnion", "AnnotationAuthorReferenceUnion", "TaskOutputValueAnnotationUnion", "TaskOutputValueSignatureUnion", "TaskOutputValueUsageContextUnion", "TaskOwnerUnion", "TaskRequesterUnion", "TaskNoteUnion", "TaskPerformerUnion", "TaskRestrictionUnion", "ResourceUnion"} +var organizationTypeImplementors = []string{"OrganizationType", "ConditionNoteUnion", "ConditionParticipantUnion", "ResearchStudySiteUnion", "ResearchStudyAssociatedPartyUnion", "ResearchStudyNoteUnion", "MedicationRequestDispenseRequestDispenserInstructionUnion", "SpecimenNoteUnion", "GroupManagingEntityUnion", "GroupMemberUnion", "PatientGeneralPractitionerUnion", "FamilyMemberHistoryConditionNoteUnion", "ImagingStudySeriesPerformerUnion", "MedicationStatementInformationSourceUnion", "MedicationStatementNoteUnion", "DiagnosticReportSubjectUnion", "DiagnosticReportNoteUnion", "DiagnosticReportPerformerUnion", "DiagnosticReportResultsInterpreterUnion", "MedicationAdministrationNoteUnion", "MedicationRequestNoteUnion", "MedicationRequestInformationSourceUnion", "MedicationRequestPerformerUnion", "MedicationRequestRequesterUnion", "AnnotationAuthorReferenceUnion", "TaskInputValueAnnotationUnion", "TaskInputValueSignatureUnion", "TaskInputValueUsageContextUnion", "TaskPerformerActorUnion", "FamilyMemberHistoryParticipantActorUnion", "TaskOutputValueAnnotationUnion", "TaskOutputValueSignatureUnion", "TaskOutputValueUsageContextUnion", "ImagingStudyNoteUnion", "ImagingStudySeriesPerformerActorUnion", "SignatureOnBehalfOfUnion", "SignatureWhoUnion", "TaskOwnerUnion", "TaskRequesterUnion", "TaskNoteUnion", "TaskPerformerUnion", "TaskRestrictionUnion", "ExtensionValueSignatureUnion", "ExtensionValueUsageContextUnion", "ExtensionValueAnnotationUnion", "GroupMemberEntityUnion", "ProcedurePerformerActorUnion", "DocumentReferenceAttesterUnion", "DocumentReferenceAuthorUnion", "SubstanceDefinitionNoteUnion", "SubstanceDefinitionCodeNoteUnion", "UsageContextValueReferenceUnion", "FamilyMemberHistoryNoteUnion", "FamilyMemberHistoryParticipantUnion", "ResearchStudyAssociatedPartyPartyUnion", "ProcedureNoteUnion", "ProcedurePerformerUnion", "ProcedureFocusUnion", "ProcedureReportedReferenceUnion", "ProcedureSubjectUnion", "DocumentReferenceAttesterPartyUnion", "TaskRestrictionRecipientUnion", "FamilyMemberHistoryProcedureNoteUnion", "ConditionParticipantActorUnion", "ObservationSubjectUnion", "ObservationNoteUnion", "ObservationPerformerUnion", "ResourceUnion"} func (ec *executionContext) _OrganizationType(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, organizationTypeImplementors) @@ -184762,42 +185479,45 @@ func (ec *executionContext) _OrganizationType(ctx context.Context, sel ast.Selec switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("OrganizationType") - case "name": - out.Values[i] = ec._OrganizationType_name(ctx, field, obj) - case "contact": - out.Values[i] = ec._OrganizationType_contact(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._OrganizationType_implicitRules(ctx, field, obj) - case "type": - out.Values[i] = ec._OrganizationType_type(ctx, field, obj) - case "extension": - out.Values[i] = ec._OrganizationType_extension(ctx, field, obj) - case "text": - out.Values[i] = ec._OrganizationType_text(ctx, field, obj) - case "language": - out.Values[i] = ec._OrganizationType_language(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._OrganizationType_resourceType(ctx, field, obj) - case "partOf": - out.Values[i] = ec._OrganizationType_partOf(ctx, field, obj) - case "alias": - out.Values[i] = ec._OrganizationType_alias(ctx, field, obj) + case "identifier": + out.Values[i] = ec._OrganizationType_identifier(ctx, field, obj) case "contained": out.Values[i] = ec._OrganizationType_contained(ctx, field, obj) + case "active": + out.Values[i] = ec._OrganizationType_active(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._OrganizationType_modifierExtension(ctx, field, obj) + case "partOf": + out.Values[i] = ec._OrganizationType_partOf(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resourceType": + out.Values[i] = ec._OrganizationType_resourceType(ctx, field, obj) + case "extension": + out.Values[i] = ec._OrganizationType_extension(ctx, field, obj) + case "description": + out.Values[i] = ec._OrganizationType_description(ctx, field, obj) case "meta": out.Values[i] = ec._OrganizationType_meta(ctx, field, obj) + case "name": + out.Values[i] = ec._OrganizationType_name(ctx, field, obj) + case "type": + out.Values[i] = ec._OrganizationType_type(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._OrganizationType_implicitRules(ctx, field, obj) case "id": out.Values[i] = ec._OrganizationType_id(ctx, field, obj) case "qualification": out.Values[i] = ec._OrganizationType_qualification(ctx, field, obj) - case "description": - out.Values[i] = ec._OrganizationType_description(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._OrganizationType_modifierExtension(ctx, field, obj) - case "identifier": - out.Values[i] = ec._OrganizationType_identifier(ctx, field, obj) - case "active": - out.Values[i] = ec._OrganizationType_active(ctx, field, obj) + case "alias": + out.Values[i] = ec._OrganizationType_alias(ctx, field, obj) + case "contact": + out.Values[i] = ec._OrganizationType_contact(ctx, field, obj) + case "text": + out.Values[i] = ec._OrganizationType_text(ctx, field, obj) + case "language": + out.Values[i] = ec._OrganizationType_language(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184832,26 +185552,26 @@ func (ec *executionContext) _ParameterDefinition(ctx context.Context, sel ast.Se switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ParameterDefinition") - case "profile": - out.Values[i] = ec._ParameterDefinition_profile(ctx, field, obj) - case "min": - out.Values[i] = ec._ParameterDefinition_min(ctx, field, obj) + case "max": + out.Values[i] = ec._ParameterDefinition_max(ctx, field, obj) case "name": out.Values[i] = ec._ParameterDefinition_name(ctx, field, obj) - case "type": - out.Values[i] = ec._ParameterDefinition_type(ctx, field, obj) case "documentation": out.Values[i] = ec._ParameterDefinition_documentation(ctx, field, obj) - case "extension": - out.Values[i] = ec._ParameterDefinition_extension(ctx, field, obj) case "id": out.Values[i] = ec._ParameterDefinition_id(ctx, field, obj) - case "max": - out.Values[i] = ec._ParameterDefinition_max(ctx, field, obj) case "resourceType": out.Values[i] = ec._ParameterDefinition_resourceType(ctx, field, obj) + case "extension": + out.Values[i] = ec._ParameterDefinition_extension(ctx, field, obj) + case "profile": + out.Values[i] = ec._ParameterDefinition_profile(ctx, field, obj) case "use": out.Values[i] = ec._ParameterDefinition_use(ctx, field, obj) + case "min": + out.Values[i] = ec._ParameterDefinition_min(ctx, field, obj) + case "type": + out.Values[i] = ec._ParameterDefinition_type(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184886,6 +185606,8 @@ func (ec *executionContext) _PatientCommunication(ctx context.Context, sel ast.S switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("PatientCommunication") + case "preferred": + out.Values[i] = ec._PatientCommunication_preferred(ctx, field, obj) case "resourceType": out.Values[i] = ec._PatientCommunication_resourceType(ctx, field, obj) case "extension": @@ -184896,8 +185618,6 @@ func (ec *executionContext) _PatientCommunication(ctx context.Context, sel ast.S out.Values[i] = ec._PatientCommunication_language(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._PatientCommunication_modifierExtension(ctx, field, obj) - case "preferred": - out.Values[i] = ec._PatientCommunication_preferred(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184932,28 +185652,31 @@ func (ec *executionContext) _PatientContact(ctx context.Context, sel ast.Selecti switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("PatientContact") - case "relationship": - out.Values[i] = ec._PatientContact_relationship(ctx, field, obj) - case "telecom": - out.Values[i] = ec._PatientContact_telecom(ctx, field, obj) case "extension": out.Values[i] = ec._PatientContact_extension(ctx, field, obj) - case "name": - out.Values[i] = ec._PatientContact_name(ctx, field, obj) - case "address": - out.Values[i] = ec._PatientContact_address(ctx, field, obj) + case "period": + out.Values[i] = ec._PatientContact_period(ctx, field, obj) case "gender": out.Values[i] = ec._PatientContact_gender(ctx, field, obj) case "id": out.Values[i] = ec._PatientContact_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._PatientContact_modifierExtension(ctx, field, obj) + case "telecom": + out.Values[i] = ec._PatientContact_telecom(ctx, field, obj) + case "name": + out.Values[i] = ec._PatientContact_name(ctx, field, obj) case "organization": out.Values[i] = ec._PatientContact_organization(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "relationship": + out.Values[i] = ec._PatientContact_relationship(ctx, field, obj) case "resourceType": out.Values[i] = ec._PatientContact_resourceType(ctx, field, obj) - case "period": - out.Values[i] = ec._PatientContact_period(ctx, field, obj) + case "address": + out.Values[i] = ec._PatientContact_address(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._PatientContact_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -184988,10 +185711,6 @@ func (ec *executionContext) _PatientLink(ctx context.Context, sel ast.SelectionS switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("PatientLink") - case "modifierExtension": - out.Values[i] = ec._PatientLink_modifierExtension(ctx, field, obj) - case "other": - out.Values[i] = ec._PatientLink_other(ctx, field, obj) case "resourceType": out.Values[i] = ec._PatientLink_resourceType(ctx, field, obj) case "type": @@ -185000,6 +185719,13 @@ func (ec *executionContext) _PatientLink(ctx context.Context, sel ast.SelectionS out.Values[i] = ec._PatientLink_extension(ctx, field, obj) case "id": out.Values[i] = ec._PatientLink_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._PatientLink_modifierExtension(ctx, field, obj) + case "other": + out.Values[i] = ec._PatientLink_other(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -185023,7 +185749,7 @@ func (ec *executionContext) _PatientLink(ctx context.Context, sel ast.SelectionS return out } -var patientTypeImplementors = []string{"PatientType", "GroupMemberUnion", "ProcedurePerformerActorUnion", "SubstanceDefinitionNoteUnion", "ConditionParticipantActorUnion", "FamilyMemberHistoryParticipantActorUnion", "MedicationAdministrationNoteUnion", "MedicationAdministrationSubjectUnion", "PatientLinkOtherUnion", "DocumentReferenceAuthorUnion", "DocumentReferenceAttesterUnion", "SubstanceDefinitionCodeNoteUnion", "MedicationRequestDispenseRequestDispenserInstructionUnion", "SignatureOnBehalfOfUnion", "SignatureWhoUnion", "FamilyMemberHistoryProcedureNoteUnion", "TaskRestrictionRecipientUnion", "SpecimenSubjectUnion", "SpecimenCollectionUnion", "SpecimenNoteUnion", "SpecimenCollectionCollectorUnion", "MedicationRequestPerformerUnion", "MedicationRequestRequesterUnion", "MedicationRequestSubjectUnion", "MedicationRequestNoteUnion", "MedicationRequestInformationSourceUnion", "PatientLinkUnion", "MedicationStatementInformationSourceUnion", "MedicationStatementSubjectUnion", "MedicationStatementNoteUnion", "GroupMemberEntityUnion", "ConditionSubjectUnion", "ConditionNoteUnion", "ConditionParticipantUnion", "FamilyMemberHistoryConditionNoteUnion", "ObservationSubjectUnion", "ObservationNoteUnion", "ObservationPerformerUnion", "ProcedureFocusUnion", "ProcedureRecorderUnion", "ProcedureReportedReferenceUnion", "ProcedureSubjectUnion", "ProcedureNoteUnion", "ProcedurePerformerUnion", "ResearchSubjectSubjectUnion", "ImagingStudySeriesPerformerUnion", "TaskPerformerActorUnion", "FamilyMemberHistoryNoteUnion", "FamilyMemberHistoryParticipantUnion", "TaskInputValueAnnotationUnion", "TaskInputValueSignatureUnion", "ImagingStudySubjectUnion", "ImagingStudyNoteUnion", "ResearchStudyNoteUnion", "DocumentReferenceAttesterPartyUnion", "ExtensionValueAnnotationUnion", "ExtensionValueSignatureUnion", "ImagingStudySeriesPerformerActorUnion", "DiagnosticReportNoteUnion", "DiagnosticReportSubjectUnion", "AnnotationAuthorReferenceUnion", "TaskOutputValueAnnotationUnion", "TaskOutputValueSignatureUnion", "TaskOwnerUnion", "TaskRequesterUnion", "TaskNoteUnion", "TaskPerformerUnion", "TaskRestrictionUnion", "ResourceUnion"} +var patientTypeImplementors = []string{"PatientType", "ConditionSubjectUnion", "ConditionNoteUnion", "ConditionParticipantUnion", "ResearchSubjectSubjectUnion", "ResearchStudyNoteUnion", "MedicationRequestDispenseRequestDispenserInstructionUnion", "SpecimenNoteUnion", "SpecimenSubjectUnion", "SpecimenCollectionUnion", "GroupMemberUnion", "PatientLinkUnion", "FamilyMemberHistoryConditionNoteUnion", "ImagingStudySeriesPerformerUnion", "MedicationStatementInformationSourceUnion", "MedicationStatementSubjectUnion", "MedicationStatementNoteUnion", "DiagnosticReportSubjectUnion", "DiagnosticReportNoteUnion", "MedicationAdministrationSubjectUnion", "MedicationAdministrationNoteUnion", "MedicationRequestNoteUnion", "MedicationRequestInformationSourceUnion", "MedicationRequestPerformerUnion", "MedicationRequestRequesterUnion", "MedicationRequestSubjectUnion", "PatientLinkOtherUnion", "AnnotationAuthorReferenceUnion", "TaskInputValueAnnotationUnion", "TaskInputValueSignatureUnion", "TaskPerformerActorUnion", "FamilyMemberHistoryParticipantActorUnion", "TaskOutputValueAnnotationUnion", "TaskOutputValueSignatureUnion", "ImagingStudySubjectUnion", "ImagingStudyNoteUnion", "ImagingStudySeriesPerformerActorUnion", "SignatureOnBehalfOfUnion", "SignatureWhoUnion", "TaskOwnerUnion", "TaskRequesterUnion", "TaskNoteUnion", "TaskPerformerUnion", "TaskRestrictionUnion", "ExtensionValueSignatureUnion", "ExtensionValueAnnotationUnion", "GroupMemberEntityUnion", "ProcedurePerformerActorUnion", "DocumentReferenceAttesterUnion", "DocumentReferenceAuthorUnion", "SubstanceDefinitionNoteUnion", "SubstanceDefinitionCodeNoteUnion", "FamilyMemberHistoryNoteUnion", "FamilyMemberHistoryParticipantUnion", "ProcedureNoteUnion", "ProcedurePerformerUnion", "ProcedureFocusUnion", "ProcedureRecorderUnion", "ProcedureReportedReferenceUnion", "ProcedureSubjectUnion", "DocumentReferenceAttesterPartyUnion", "TaskRestrictionRecipientUnion", "FamilyMemberHistoryProcedureNoteUnion", "ConditionParticipantActorUnion", "SpecimenCollectionCollectorUnion", "ObservationSubjectUnion", "ObservationNoteUnion", "ObservationPerformerUnion", "ResourceUnion"} func (ec *executionContext) _PatientType(ctx context.Context, sel ast.SelectionSet, obj *model.PatientType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, patientTypeImplementors) @@ -185034,60 +185760,69 @@ func (ec *executionContext) _PatientType(ctx context.Context, sel ast.SelectionS switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("PatientType") - case "modifierExtension": - out.Values[i] = ec._PatientType_modifierExtension(ctx, field, obj) + case "managingOrganization": + out.Values[i] = ec._PatientType_managingOrganization(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "contact": + out.Values[i] = ec._PatientType_contact(ctx, field, obj) case "gender": out.Values[i] = ec._PatientType_gender(ctx, field, obj) - case "extension": - out.Values[i] = ec._PatientType_extension(ctx, field, obj) - case "deceasedBoolean": - out.Values[i] = ec._PatientType_deceasedBoolean(ctx, field, obj) - case "address": - out.Values[i] = ec._PatientType_address(ctx, field, obj) case "link": out.Values[i] = ec._PatientType_link(ctx, field, obj) - case "identifier": - out.Values[i] = ec._PatientType_identifier(ctx, field, obj) - case "generalPractitioner": - out.Values[i] = ec._PatientType_generalPractitioner(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "implicitRules": out.Values[i] = ec._PatientType_implicitRules(ctx, field, obj) - case "meta": - out.Values[i] = ec._PatientType_meta(ctx, field, obj) case "multipleBirthInteger": out.Values[i] = ec._PatientType_multipleBirthInteger(ctx, field, obj) - case "multipleBirthBoolean": - out.Values[i] = ec._PatientType_multipleBirthBoolean(ctx, field, obj) - case "text": - out.Values[i] = ec._PatientType_text(ctx, field, obj) - case "managingOrganization": - out.Values[i] = ec._PatientType_managingOrganization(ctx, field, obj) - case "active": - out.Values[i] = ec._PatientType_active(ctx, field, obj) - case "birthDate": - out.Values[i] = ec._PatientType_birthDate(ctx, field, obj) - case "deceasedDateTime": - out.Values[i] = ec._PatientType_deceasedDateTime(ctx, field, obj) case "id": out.Values[i] = ec._PatientType_id(ctx, field, obj) - case "name": - out.Values[i] = ec._PatientType_name(ctx, field, obj) - case "photo": - out.Values[i] = ec._PatientType_photo(ctx, field, obj) + case "meta": + out.Values[i] = ec._PatientType_meta(ctx, field, obj) case "contained": out.Values[i] = ec._PatientType_contained(ctx, field, obj) - case "contact": - out.Values[i] = ec._PatientType_contact(ctx, field, obj) - case "maritalStatus": - out.Values[i] = ec._PatientType_maritalStatus(ctx, field, obj) case "communication": out.Values[i] = ec._PatientType_communication(ctx, field, obj) - case "telecom": - out.Values[i] = ec._PatientType_telecom(ctx, field, obj) - case "language": - out.Values[i] = ec._PatientType_language(ctx, field, obj) + case "birthDate": + out.Values[i] = ec._PatientType_birthDate(ctx, field, obj) + case "identifier": + out.Values[i] = ec._PatientType_identifier(ctx, field, obj) case "resourceType": out.Values[i] = ec._PatientType_resourceType(ctx, field, obj) + case "generalPractitioner": + out.Values[i] = ec._PatientType_generalPractitioner(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "language": + out.Values[i] = ec._PatientType_language(ctx, field, obj) + case "deceasedDateTime": + out.Values[i] = ec._PatientType_deceasedDateTime(ctx, field, obj) + case "telecom": + out.Values[i] = ec._PatientType_telecom(ctx, field, obj) + case "photo": + out.Values[i] = ec._PatientType_photo(ctx, field, obj) + case "text": + out.Values[i] = ec._PatientType_text(ctx, field, obj) + case "multipleBirthBoolean": + out.Values[i] = ec._PatientType_multipleBirthBoolean(ctx, field, obj) + case "address": + out.Values[i] = ec._PatientType_address(ctx, field, obj) + case "maritalStatus": + out.Values[i] = ec._PatientType_maritalStatus(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._PatientType_modifierExtension(ctx, field, obj) + case "extension": + out.Values[i] = ec._PatientType_extension(ctx, field, obj) + case "name": + out.Values[i] = ec._PatientType_name(ctx, field, obj) + case "active": + out.Values[i] = ec._PatientType_active(ctx, field, obj) + case "deceasedBoolean": + out.Values[i] = ec._PatientType_deceasedBoolean(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -185122,16 +185857,16 @@ func (ec *executionContext) _Period(ctx context.Context, sel ast.SelectionSet, o switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Period") + case "start": + out.Values[i] = ec._Period_start(ctx, field, obj) + case "end": + out.Values[i] = ec._Period_end(ctx, field, obj) case "extension": out.Values[i] = ec._Period_extension(ctx, field, obj) case "id": out.Values[i] = ec._Period_id(ctx, field, obj) case "resourceType": out.Values[i] = ec._Period_resourceType(ctx, field, obj) - case "start": - out.Values[i] = ec._Period_start(ctx, field, obj) - case "end": - out.Values[i] = ec._Period_end(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -185212,14 +185947,6 @@ func (ec *executionContext) _PractitionerQualification(ctx context.Context, sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("PractitionerQualification") - case "issuer": - out.Values[i] = ec._PractitionerQualification_issuer(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._PractitionerQualification_modifierExtension(ctx, field, obj) - case "period": - out.Values[i] = ec._PractitionerQualification_period(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._PractitionerQualification_resourceType(ctx, field, obj) case "code": out.Values[i] = ec._PractitionerQualification_code(ctx, field, obj) case "extension": @@ -185228,6 +185955,17 @@ func (ec *executionContext) _PractitionerQualification(ctx context.Context, sel out.Values[i] = ec._PractitionerQualification_id(ctx, field, obj) case "identifier": out.Values[i] = ec._PractitionerQualification_identifier(ctx, field, obj) + case "issuer": + out.Values[i] = ec._PractitionerQualification_issuer(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "modifierExtension": + out.Values[i] = ec._PractitionerQualification_modifierExtension(ctx, field, obj) + case "period": + out.Values[i] = ec._PractitionerQualification_period(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._PractitionerQualification_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -185251,7 +185989,7 @@ func (ec *executionContext) _PractitionerQualification(ctx context.Context, sel return out } -var practitionerRoleTypeImplementors = []string{"PractitionerRoleType", "GroupManagingEntityUnion", "GroupMemberUnion", "ProcedurePerformerActorUnion", "SubstanceDefinitionNoteUnion", "ConditionParticipantActorUnion", "FamilyMemberHistoryParticipantActorUnion", "MedicationAdministrationNoteUnion", "ResearchStudyAssociatedPartyPartyUnion", "DocumentReferenceAuthorUnion", "DocumentReferenceAttesterUnion", "SubstanceDefinitionCodeNoteUnion", "MedicationRequestDispenseRequestDispenserInstructionUnion", "SignatureOnBehalfOfUnion", "SignatureWhoUnion", "FamilyMemberHistoryProcedureNoteUnion", "TaskRestrictionRecipientUnion", "SpecimenCollectionUnion", "SpecimenNoteUnion", "SpecimenCollectionCollectorUnion", "MedicationRequestPerformerUnion", "MedicationRequestRecorderUnion", "MedicationRequestRequesterUnion", "MedicationRequestNoteUnion", "MedicationRequestInformationSourceUnion", "PatientGeneralPractitionerUnion", "MedicationStatementInformationSourceUnion", "MedicationStatementNoteUnion", "GroupMemberEntityUnion", "ConditionNoteUnion", "ConditionParticipantUnion", "FamilyMemberHistoryConditionNoteUnion", "ObservationNoteUnion", "ObservationPerformerUnion", "ProcedureFocusUnion", "ProcedureRecorderUnion", "ProcedureReportedReferenceUnion", "ProcedureNoteUnion", "ProcedurePerformerUnion", "ImagingStudySeriesPerformerUnion", "TaskPerformerActorUnion", "FamilyMemberHistoryNoteUnion", "FamilyMemberHistoryParticipantUnion", "TaskInputValueAnnotationUnion", "TaskInputValueSignatureUnion", "ImagingStudyReferrerUnion", "ImagingStudyNoteUnion", "ResearchStudyAssociatedPartyUnion", "ResearchStudyNoteUnion", "DocumentReferenceAttesterPartyUnion", "ExtensionValueAnnotationUnion", "ExtensionValueSignatureUnion", "ImagingStudySeriesPerformerActorUnion", "DiagnosticReportNoteUnion", "DiagnosticReportPerformerUnion", "DiagnosticReportResultsInterpreterUnion", "AnnotationAuthorReferenceUnion", "TaskOutputValueAnnotationUnion", "TaskOutputValueSignatureUnion", "TaskOwnerUnion", "TaskRequesterUnion", "TaskNoteUnion", "TaskPerformerUnion", "TaskRestrictionUnion", "ResourceUnion"} +var practitionerRoleTypeImplementors = []string{"PractitionerRoleType", "ConditionNoteUnion", "ConditionParticipantUnion", "ResearchStudyAssociatedPartyUnion", "ResearchStudyNoteUnion", "MedicationRequestDispenseRequestDispenserInstructionUnion", "SpecimenNoteUnion", "SpecimenCollectionUnion", "GroupManagingEntityUnion", "GroupMemberUnion", "PatientGeneralPractitionerUnion", "FamilyMemberHistoryConditionNoteUnion", "ImagingStudySeriesPerformerUnion", "MedicationStatementInformationSourceUnion", "MedicationStatementNoteUnion", "DiagnosticReportNoteUnion", "DiagnosticReportPerformerUnion", "DiagnosticReportResultsInterpreterUnion", "MedicationAdministrationNoteUnion", "MedicationRequestNoteUnion", "MedicationRequestInformationSourceUnion", "MedicationRequestPerformerUnion", "MedicationRequestRecorderUnion", "MedicationRequestRequesterUnion", "AnnotationAuthorReferenceUnion", "TaskInputValueAnnotationUnion", "TaskInputValueSignatureUnion", "TaskPerformerActorUnion", "FamilyMemberHistoryParticipantActorUnion", "TaskOutputValueAnnotationUnion", "TaskOutputValueSignatureUnion", "ImagingStudyReferrerUnion", "ImagingStudyNoteUnion", "ImagingStudySeriesPerformerActorUnion", "SignatureOnBehalfOfUnion", "SignatureWhoUnion", "TaskOwnerUnion", "TaskRequesterUnion", "TaskNoteUnion", "TaskPerformerUnion", "TaskRestrictionUnion", "ExtensionValueSignatureUnion", "ExtensionValueAnnotationUnion", "GroupMemberEntityUnion", "ProcedurePerformerActorUnion", "DocumentReferenceAttesterUnion", "DocumentReferenceAuthorUnion", "SubstanceDefinitionNoteUnion", "SubstanceDefinitionCodeNoteUnion", "FamilyMemberHistoryNoteUnion", "FamilyMemberHistoryParticipantUnion", "ResearchStudyAssociatedPartyPartyUnion", "ProcedureNoteUnion", "ProcedurePerformerUnion", "ProcedureFocusUnion", "ProcedureRecorderUnion", "ProcedureReportedReferenceUnion", "DocumentReferenceAttesterPartyUnion", "TaskRestrictionRecipientUnion", "FamilyMemberHistoryProcedureNoteUnion", "ConditionParticipantActorUnion", "SpecimenCollectionCollectorUnion", "ObservationNoteUnion", "ObservationPerformerUnion", "ResourceUnion"} func (ec *executionContext) _PractitionerRoleType(ctx context.Context, sel ast.SelectionSet, obj *model.PractitionerRoleType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, practitionerRoleTypeImplementors) @@ -185262,46 +186000,52 @@ func (ec *executionContext) _PractitionerRoleType(ctx context.Context, sel ast.S switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("PractitionerRoleType") - case "availability": - out.Values[i] = ec._PractitionerRoleType_availability(ctx, field, obj) - case "identifier": - out.Values[i] = ec._PractitionerRoleType_identifier(ctx, field, obj) - case "practitioner": - out.Values[i] = ec._PractitionerRoleType_practitioner(ctx, field, obj) + case "communication": + out.Values[i] = ec._PractitionerRoleType_communication(ctx, field, obj) + case "active": + out.Values[i] = ec._PractitionerRoleType_active(ctx, field, obj) + case "id": + out.Values[i] = ec._PractitionerRoleType_id(ctx, field, obj) + case "organization": + out.Values[i] = ec._PractitionerRoleType_organization(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "contained": out.Values[i] = ec._PractitionerRoleType_contained(ctx, field, obj) - case "language": - out.Values[i] = ec._PractitionerRoleType_language(ctx, field, obj) + case "extension": + out.Values[i] = ec._PractitionerRoleType_extension(ctx, field, obj) + case "period": + out.Values[i] = ec._PractitionerRoleType_period(ctx, field, obj) case "code": out.Values[i] = ec._PractitionerRoleType_code(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._PractitionerRoleType_implicitRules(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._PractitionerRoleType_modifierExtension(ctx, field, obj) case "specialty": out.Values[i] = ec._PractitionerRoleType_specialty(ctx, field, obj) - case "id": - out.Values[i] = ec._PractitionerRoleType_id(ctx, field, obj) case "resourceType": out.Values[i] = ec._PractitionerRoleType_resourceType(ctx, field, obj) - case "extension": - out.Values[i] = ec._PractitionerRoleType_extension(ctx, field, obj) - case "organization": - out.Values[i] = ec._PractitionerRoleType_organization(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._PractitionerRoleType_modifierExtension(ctx, field, obj) - case "communication": - out.Values[i] = ec._PractitionerRoleType_communication(ctx, field, obj) - case "active": - out.Values[i] = ec._PractitionerRoleType_active(ctx, field, obj) - case "characteristic": - out.Values[i] = ec._PractitionerRoleType_characteristic(ctx, field, obj) - case "contact": - out.Values[i] = ec._PractitionerRoleType_contact(ctx, field, obj) + case "identifier": + out.Values[i] = ec._PractitionerRoleType_identifier(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._PractitionerRoleType_implicitRules(ctx, field, obj) + case "language": + out.Values[i] = ec._PractitionerRoleType_language(ctx, field, obj) case "meta": out.Values[i] = ec._PractitionerRoleType_meta(ctx, field, obj) - case "period": - out.Values[i] = ec._PractitionerRoleType_period(ctx, field, obj) + case "contact": + out.Values[i] = ec._PractitionerRoleType_contact(ctx, field, obj) case "text": out.Values[i] = ec._PractitionerRoleType_text(ctx, field, obj) + case "practitioner": + out.Values[i] = ec._PractitionerRoleType_practitioner(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "availability": + out.Values[i] = ec._PractitionerRoleType_availability(ctx, field, obj) + case "characteristic": + out.Values[i] = ec._PractitionerRoleType_characteristic(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -185325,7 +186069,7 @@ func (ec *executionContext) _PractitionerRoleType(ctx context.Context, sel ast.S return out } -var practitionerTypeImplementors = []string{"PractitionerType", "GroupManagingEntityUnion", "GroupMemberUnion", "ProcedurePerformerActorUnion", "SubstanceDefinitionNoteUnion", "ConditionParticipantActorUnion", "FamilyMemberHistoryParticipantActorUnion", "MedicationAdministrationNoteUnion", "ResearchStudyAssociatedPartyPartyUnion", "DocumentReferenceAuthorUnion", "DocumentReferenceAttesterUnion", "SubstanceDefinitionCodeNoteUnion", "MedicationRequestDispenseRequestDispenserInstructionUnion", "SignatureOnBehalfOfUnion", "SignatureWhoUnion", "FamilyMemberHistoryProcedureNoteUnion", "TaskRestrictionRecipientUnion", "SpecimenCollectionUnion", "SpecimenNoteUnion", "SpecimenCollectionCollectorUnion", "MedicationRequestPerformerUnion", "MedicationRequestRecorderUnion", "MedicationRequestRequesterUnion", "MedicationRequestNoteUnion", "MedicationRequestInformationSourceUnion", "PatientGeneralPractitionerUnion", "MedicationStatementInformationSourceUnion", "MedicationStatementNoteUnion", "GroupMemberEntityUnion", "ConditionNoteUnion", "ConditionParticipantUnion", "FamilyMemberHistoryConditionNoteUnion", "ObservationSubjectUnion", "ObservationNoteUnion", "ObservationPerformerUnion", "ProcedureFocusUnion", "ProcedureRecorderUnion", "ProcedureReportedReferenceUnion", "ProcedureSubjectUnion", "ProcedureNoteUnion", "ProcedurePerformerUnion", "ImagingStudySeriesPerformerUnion", "TaskPerformerActorUnion", "FamilyMemberHistoryNoteUnion", "FamilyMemberHistoryParticipantUnion", "TaskInputValueAnnotationUnion", "TaskInputValueSignatureUnion", "ImagingStudyReferrerUnion", "ImagingStudyNoteUnion", "ResearchStudyAssociatedPartyUnion", "ResearchStudyNoteUnion", "DocumentReferenceAttesterPartyUnion", "ExtensionValueAnnotationUnion", "ExtensionValueSignatureUnion", "ImagingStudySeriesPerformerActorUnion", "DiagnosticReportNoteUnion", "DiagnosticReportPerformerUnion", "DiagnosticReportResultsInterpreterUnion", "DiagnosticReportSubjectUnion", "AnnotationAuthorReferenceUnion", "TaskOutputValueAnnotationUnion", "TaskOutputValueSignatureUnion", "TaskOwnerUnion", "TaskRequesterUnion", "TaskNoteUnion", "TaskPerformerUnion", "TaskRestrictionUnion", "ResourceUnion"} +var practitionerTypeImplementors = []string{"PractitionerType", "ConditionNoteUnion", "ConditionParticipantUnion", "ResearchStudyAssociatedPartyUnion", "ResearchStudyNoteUnion", "MedicationRequestDispenseRequestDispenserInstructionUnion", "SpecimenNoteUnion", "SpecimenCollectionUnion", "GroupManagingEntityUnion", "GroupMemberUnion", "PatientGeneralPractitionerUnion", "FamilyMemberHistoryConditionNoteUnion", "ImagingStudySeriesPerformerUnion", "MedicationStatementInformationSourceUnion", "MedicationStatementNoteUnion", "DiagnosticReportSubjectUnion", "DiagnosticReportNoteUnion", "DiagnosticReportPerformerUnion", "DiagnosticReportResultsInterpreterUnion", "MedicationAdministrationNoteUnion", "MedicationRequestNoteUnion", "MedicationRequestInformationSourceUnion", "MedicationRequestPerformerUnion", "MedicationRequestRecorderUnion", "MedicationRequestRequesterUnion", "AnnotationAuthorReferenceUnion", "TaskInputValueAnnotationUnion", "TaskInputValueSignatureUnion", "TaskPerformerActorUnion", "FamilyMemberHistoryParticipantActorUnion", "TaskOutputValueAnnotationUnion", "TaskOutputValueSignatureUnion", "ImagingStudyReferrerUnion", "ImagingStudyNoteUnion", "ImagingStudySeriesPerformerActorUnion", "SignatureOnBehalfOfUnion", "SignatureWhoUnion", "TaskOwnerUnion", "TaskRequesterUnion", "TaskNoteUnion", "TaskPerformerUnion", "TaskRestrictionUnion", "ExtensionValueSignatureUnion", "ExtensionValueAnnotationUnion", "GroupMemberEntityUnion", "ProcedurePerformerActorUnion", "DocumentReferenceAttesterUnion", "DocumentReferenceAuthorUnion", "SubstanceDefinitionNoteUnion", "SubstanceDefinitionCodeNoteUnion", "FamilyMemberHistoryNoteUnion", "FamilyMemberHistoryParticipantUnion", "ResearchStudyAssociatedPartyPartyUnion", "ProcedureNoteUnion", "ProcedurePerformerUnion", "ProcedureFocusUnion", "ProcedureRecorderUnion", "ProcedureReportedReferenceUnion", "ProcedureSubjectUnion", "DocumentReferenceAttesterPartyUnion", "TaskRestrictionRecipientUnion", "FamilyMemberHistoryProcedureNoteUnion", "ConditionParticipantActorUnion", "SpecimenCollectionCollectorUnion", "ObservationSubjectUnion", "ObservationNoteUnion", "ObservationPerformerUnion", "ResourceUnion"} func (ec *executionContext) _PractitionerType(ctx context.Context, sel ast.SelectionSet, obj *model.PractitionerType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, practitionerTypeImplementors) @@ -185336,48 +186080,48 @@ func (ec *executionContext) _PractitionerType(ctx context.Context, sel ast.Selec switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("PractitionerType") - case "meta": - out.Values[i] = ec._PractitionerType_meta(ctx, field, obj) - case "deceasedBoolean": - out.Values[i] = ec._PractitionerType_deceasedBoolean(ctx, field, obj) case "birthDate": out.Values[i] = ec._PractitionerType_birthDate(ctx, field, obj) case "id": out.Values[i] = ec._PractitionerType_id(ctx, field, obj) - case "extension": - out.Values[i] = ec._PractitionerType_extension(ctx, field, obj) - case "gender": - out.Values[i] = ec._PractitionerType_gender(ctx, field, obj) + case "language": + out.Values[i] = ec._PractitionerType_language(ctx, field, obj) case "qualification": out.Values[i] = ec._PractitionerType_qualification(ctx, field, obj) - case "contained": - out.Values[i] = ec._PractitionerType_contained(ctx, field, obj) - case "telecom": - out.Values[i] = ec._PractitionerType_telecom(ctx, field, obj) - case "identifier": - out.Values[i] = ec._PractitionerType_identifier(ctx, field, obj) case "address": out.Values[i] = ec._PractitionerType_address(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._PractitionerType_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._PractitionerType_resourceType(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._PractitionerType_implicitRules(ctx, field, obj) - case "language": - out.Values[i] = ec._PractitionerType_language(ctx, field, obj) + case "active": + out.Values[i] = ec._PractitionerType_active(ctx, field, obj) + case "contained": + out.Values[i] = ec._PractitionerType_contained(ctx, field, obj) + case "gender": + out.Values[i] = ec._PractitionerType_gender(ctx, field, obj) case "name": out.Values[i] = ec._PractitionerType_name(ctx, field, obj) - case "photo": - out.Values[i] = ec._PractitionerType_photo(ctx, field, obj) case "text": out.Values[i] = ec._PractitionerType_text(ctx, field, obj) - case "active": - out.Values[i] = ec._PractitionerType_active(ctx, field, obj) - case "communication": - out.Values[i] = ec._PractitionerType_communication(ctx, field, obj) case "deceasedDateTime": out.Values[i] = ec._PractitionerType_deceasedDateTime(ctx, field, obj) + case "extension": + out.Values[i] = ec._PractitionerType_extension(ctx, field, obj) + case "meta": + out.Values[i] = ec._PractitionerType_meta(ctx, field, obj) + case "photo": + out.Values[i] = ec._PractitionerType_photo(ctx, field, obj) + case "telecom": + out.Values[i] = ec._PractitionerType_telecom(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._PractitionerType_resourceType(ctx, field, obj) + case "communication": + out.Values[i] = ec._PractitionerType_communication(ctx, field, obj) + case "identifier": + out.Values[i] = ec._PractitionerType_identifier(ctx, field, obj) + case "deceasedBoolean": + out.Values[i] = ec._PractitionerType_deceasedBoolean(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._PractitionerType_implicitRules(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -185412,8 +186156,6 @@ func (ec *executionContext) _ProcedureFocalDevice(ctx context.Context, sel ast.S switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ProcedureFocalDevice") - case "action": - out.Values[i] = ec._ProcedureFocalDevice_action(ctx, field, obj) case "extension": out.Values[i] = ec._ProcedureFocalDevice_extension(ctx, field, obj) case "id": @@ -185422,6 +186164,8 @@ func (ec *executionContext) _ProcedureFocalDevice(ctx context.Context, sel ast.S out.Values[i] = ec._ProcedureFocalDevice_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._ProcedureFocalDevice_resourceType(ctx, field, obj) + case "action": + out.Values[i] = ec._ProcedureFocalDevice_action(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -185456,6 +186200,15 @@ func (ec *executionContext) _ProcedurePerformer(ctx context.Context, sel ast.Sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ProcedurePerformer") + case "resourceType": + out.Values[i] = ec._ProcedurePerformer_resourceType(ctx, field, obj) + case "actor": + out.Values[i] = ec._ProcedurePerformer_actor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "extension": + out.Values[i] = ec._ProcedurePerformer_extension(ctx, field, obj) case "function": out.Values[i] = ec._ProcedurePerformer_function(ctx, field, obj) case "id": @@ -185464,14 +186217,11 @@ func (ec *executionContext) _ProcedurePerformer(ctx context.Context, sel ast.Sel out.Values[i] = ec._ProcedurePerformer_modifierExtension(ctx, field, obj) case "onBehalfOf": out.Values[i] = ec._ProcedurePerformer_onBehalfOf(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "period": out.Values[i] = ec._ProcedurePerformer_period(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ProcedurePerformer_resourceType(ctx, field, obj) - case "actor": - out.Values[i] = ec._ProcedurePerformer_actor(ctx, field, obj) - case "extension": - out.Values[i] = ec._ProcedurePerformer_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -185495,7 +186245,7 @@ func (ec *executionContext) _ProcedurePerformer(ctx context.Context, sel ast.Sel return out } -var procedureTypeImplementors = []string{"ProcedureType", "MedicationAdministrationPartOfUnion", "MedicationStatementPartOfUnion", "ObservationSubjectUnion", "ObservationPartOfUnion", "ProcedurePartOfUnion", "DiagnosticReportSupportingInfoUnion", "DiagnosticReportSupportingInfoReferenceUnion", "ResourceUnion"} +var procedureTypeImplementors = []string{"ProcedureType", "MedicationStatementPartOfUnion", "DiagnosticReportSupportingInfoUnion", "MedicationAdministrationPartOfUnion", "DiagnosticReportSupportingInfoReferenceUnion", "ProcedurePartOfUnion", "ObservationSubjectUnion", "ObservationPartOfUnion", "ResourceUnion"} func (ec *executionContext) _ProcedureType(ctx context.Context, sel ast.SelectionSet, obj *model.ProcedureType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, procedureTypeImplementors) @@ -185506,86 +186256,113 @@ func (ec *executionContext) _ProcedureType(ctx context.Context, sel ast.Selectio switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ProcedureType") - case "resourceType": - out.Values[i] = ec._ProcedureType_resourceType(ctx, field, obj) case "recorder": out.Values[i] = ec._ProcedureType_recorder(ctx, field, obj) - case "occurrenceTiming": - out.Values[i] = ec._ProcedureType_occurrenceTiming(ctx, field, obj) - case "occurrenceString": - out.Values[i] = ec._ProcedureType_occurrenceString(ctx, field, obj) - case "outcome": - out.Values[i] = ec._ProcedureType_outcome(ctx, field, obj) - case "reason": - out.Values[i] = ec._ProcedureType_reason(ctx, field, obj) - case "reportedReference": - out.Values[i] = ec._ProcedureType_reportedReference(ctx, field, obj) - case "occurrencePeriod": - out.Values[i] = ec._ProcedureType_occurrencePeriod(ctx, field, obj) - case "reportedBoolean": - out.Values[i] = ec._ProcedureType_reportedBoolean(ctx, field, obj) - case "extension": - out.Values[i] = ec._ProcedureType_extension(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "report": out.Values[i] = ec._ProcedureType_report(ctx, field, obj) - case "code": - out.Values[i] = ec._ProcedureType_code(ctx, field, obj) - case "category": - out.Values[i] = ec._ProcedureType_category(ctx, field, obj) - case "used": - out.Values[i] = ec._ProcedureType_used(ctx, field, obj) - case "recorded": - out.Values[i] = ec._ProcedureType_recorded(ctx, field, obj) - case "partOf": - out.Values[i] = ec._ProcedureType_partOf(ctx, field, obj) - case "statusReason": - out.Values[i] = ec._ProcedureType_statusReason(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._ProcedureType_modifierExtension(ctx, field, obj) - case "occurrenceRange": - out.Values[i] = ec._ProcedureType_occurrenceRange(ctx, field, obj) - case "followUp": - out.Values[i] = ec._ProcedureType_followUp(ctx, field, obj) - case "occurrenceAge": - out.Values[i] = ec._ProcedureType_occurrenceAge(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "implicitRules": + out.Values[i] = ec._ProcedureType_implicitRules(ctx, field, obj) + case "meta": + out.Values[i] = ec._ProcedureType_meta(ctx, field, obj) + case "note": + out.Values[i] = ec._ProcedureType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "bodySite": out.Values[i] = ec._ProcedureType_bodySite(ctx, field, obj) - case "id": - out.Values[i] = ec._ProcedureType_id(ctx, field, obj) - case "focalDevice": - out.Values[i] = ec._ProcedureType_focalDevice(ctx, field, obj) + case "instantiatesUri": + out.Values[i] = ec._ProcedureType_instantiatesUri(ctx, field, obj) + case "occurrenceTiming": + out.Values[i] = ec._ProcedureType_occurrenceTiming(ctx, field, obj) + case "occurrenceAge": + out.Values[i] = ec._ProcedureType_occurrenceAge(ctx, field, obj) + case "occurrenceDateTime": + out.Values[i] = ec._ProcedureType_occurrenceDateTime(ctx, field, obj) + case "reportedBoolean": + out.Values[i] = ec._ProcedureType_reportedBoolean(ctx, field, obj) + case "subject": + out.Values[i] = ec._ProcedureType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "occurrenceRange": + out.Values[i] = ec._ProcedureType_occurrenceRange(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ProcedureType_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ProcedureType_resourceType(ctx, field, obj) + case "contained": + out.Values[i] = ec._ProcedureType_contained(ctx, field, obj) case "text": out.Values[i] = ec._ProcedureType_text(ctx, field, obj) - case "meta": - out.Values[i] = ec._ProcedureType_meta(ctx, field, obj) + case "status": + out.Values[i] = ec._ProcedureType_status(ctx, field, obj) + case "reportedReference": + out.Values[i] = ec._ProcedureType_reportedReference(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "reason": + out.Values[i] = ec._ProcedureType_reason(ctx, field, obj) + case "outcome": + out.Values[i] = ec._ProcedureType_outcome(ctx, field, obj) + case "partOf": + out.Values[i] = ec._ProcedureType_partOf(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "used": + out.Values[i] = ec._ProcedureType_used(ctx, field, obj) + case "code": + out.Values[i] = ec._ProcedureType_code(ctx, field, obj) + case "identifier": + out.Values[i] = ec._ProcedureType_identifier(ctx, field, obj) + case "category": + out.Values[i] = ec._ProcedureType_category(ctx, field, obj) case "supportingInfo": out.Values[i] = ec._ProcedureType_supportingInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "language": out.Values[i] = ec._ProcedureType_language(ctx, field, obj) - case "note": - out.Values[i] = ec._ProcedureType_note(ctx, field, obj) - case "status": - out.Values[i] = ec._ProcedureType_status(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._ProcedureType_implicitRules(ctx, field, obj) - case "contained": - out.Values[i] = ec._ProcedureType_contained(ctx, field, obj) + case "focalDevice": + out.Values[i] = ec._ProcedureType_focalDevice(ctx, field, obj) + case "id": + out.Values[i] = ec._ProcedureType_id(ctx, field, obj) + case "occurrenceString": + out.Values[i] = ec._ProcedureType_occurrenceString(ctx, field, obj) + case "recorded": + out.Values[i] = ec._ProcedureType_recorded(ctx, field, obj) case "performer": out.Values[i] = ec._ProcedureType_performer(ctx, field, obj) - case "instantiatesCanonical": - out.Values[i] = ec._ProcedureType_instantiatesCanonical(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "statusReason": + out.Values[i] = ec._ProcedureType_statusReason(ctx, field, obj) + case "followUp": + out.Values[i] = ec._ProcedureType_followUp(ctx, field, obj) case "complication": out.Values[i] = ec._ProcedureType_complication(ctx, field, obj) - case "occurrenceDateTime": - out.Values[i] = ec._ProcedureType_occurrenceDateTime(ctx, field, obj) - case "identifier": - out.Values[i] = ec._ProcedureType_identifier(ctx, field, obj) - case "instantiatesUri": - out.Values[i] = ec._ProcedureType_instantiatesUri(ctx, field, obj) - case "subject": - out.Values[i] = ec._ProcedureType_subject(ctx, field, obj) + case "extension": + out.Values[i] = ec._ProcedureType_extension(ctx, field, obj) case "focus": out.Values[i] = ec._ProcedureType_focus(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "occurrencePeriod": + out.Values[i] = ec._ProcedureType_occurrencePeriod(ctx, field, obj) + case "instantiatesCanonical": + out.Values[i] = ec._ProcedureType_instantiatesCanonical(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186099,13 +186876,16 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "task": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() res = ec._Query_task(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -186223,16 +187003,16 @@ func (ec *executionContext) _Range(ctx context.Context, sel ast.SelectionSet, ob switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Range") + case "id": + out.Values[i] = ec._Range_id(ctx, field, obj) + case "low": + out.Values[i] = ec._Range_low(ctx, field, obj) case "resourceType": out.Values[i] = ec._Range_resourceType(ctx, field, obj) case "extension": out.Values[i] = ec._Range_extension(ctx, field, obj) case "high": out.Values[i] = ec._Range_high(ctx, field, obj) - case "id": - out.Values[i] = ec._Range_id(ctx, field, obj) - case "low": - out.Values[i] = ec._Range_low(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186267,6 +187047,8 @@ func (ec *executionContext) _Ratio(ctx context.Context, sel ast.SelectionSet, ob switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Ratio") + case "denominator": + out.Values[i] = ec._Ratio_denominator(ctx, field, obj) case "extension": out.Values[i] = ec._Ratio_extension(ctx, field, obj) case "id": @@ -186275,8 +187057,6 @@ func (ec *executionContext) _Ratio(ctx context.Context, sel ast.SelectionSet, ob out.Values[i] = ec._Ratio_numerator(ctx, field, obj) case "resourceType": out.Values[i] = ec._Ratio_resourceType(ctx, field, obj) - case "denominator": - out.Values[i] = ec._Ratio_denominator(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186357,6 +187137,10 @@ func (ec *executionContext) _Reference(ctx context.Context, sel ast.SelectionSet switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Reference") + case "identifier": + out.Values[i] = ec._Reference_identifier(ctx, field, obj) + case "reference": + out.Values[i] = ec._Reference_reference(ctx, field, obj) case "resourceType": out.Values[i] = ec._Reference_resourceType(ctx, field, obj) case "type": @@ -186367,10 +187151,6 @@ func (ec *executionContext) _Reference(ctx context.Context, sel ast.SelectionSet out.Values[i] = ec._Reference_extension(ctx, field, obj) case "id": out.Values[i] = ec._Reference_id(ctx, field, obj) - case "identifier": - out.Values[i] = ec._Reference_identifier(ctx, field, obj) - case "reference": - out.Values[i] = ec._Reference_reference(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186405,32 +187185,35 @@ func (ec *executionContext) _RelatedArtifact(ctx context.Context, sel ast.Select switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RelatedArtifact") - case "display": - out.Values[i] = ec._RelatedArtifact_display(ctx, field, obj) - case "publicationDate": - out.Values[i] = ec._RelatedArtifact_publicationDate(ctx, field, obj) - case "publicationStatus": - out.Values[i] = ec._RelatedArtifact_publicationStatus(ctx, field, obj) - case "classifier": - out.Values[i] = ec._RelatedArtifact_classifier(ctx, field, obj) - case "document": - out.Values[i] = ec._RelatedArtifact_document(ctx, field, obj) + case "type": + out.Values[i] = ec._RelatedArtifact_type(ctx, field, obj) + case "resource": + out.Values[i] = ec._RelatedArtifact_resource(ctx, field, obj) case "resourceReference": out.Values[i] = ec._RelatedArtifact_resourceReference(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "extension": out.Values[i] = ec._RelatedArtifact_extension(ctx, field, obj) case "id": out.Values[i] = ec._RelatedArtifact_id(ctx, field, obj) case "label": out.Values[i] = ec._RelatedArtifact_label(ctx, field, obj) - case "citation": - out.Values[i] = ec._RelatedArtifact_citation(ctx, field, obj) - case "resource": - out.Values[i] = ec._RelatedArtifact_resource(ctx, field, obj) - case "type": - out.Values[i] = ec._RelatedArtifact_type(ctx, field, obj) + case "document": + out.Values[i] = ec._RelatedArtifact_document(ctx, field, obj) + case "publicationStatus": + out.Values[i] = ec._RelatedArtifact_publicationStatus(ctx, field, obj) case "resourceType": out.Values[i] = ec._RelatedArtifact_resourceType(ctx, field, obj) + case "classifier": + out.Values[i] = ec._RelatedArtifact_classifier(ctx, field, obj) + case "publicationDate": + out.Values[i] = ec._RelatedArtifact_publicationDate(ctx, field, obj) + case "citation": + out.Values[i] = ec._RelatedArtifact_citation(ctx, field, obj) + case "display": + out.Values[i] = ec._RelatedArtifact_display(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186465,22 +187248,25 @@ func (ec *executionContext) _ResearchStudyAssociatedParty(ctx context.Context, s switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchStudyAssociatedParty") - case "party": - out.Values[i] = ec._ResearchStudyAssociatedParty_party(ctx, field, obj) case "extension": out.Values[i] = ec._ResearchStudyAssociatedParty_extension(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._ResearchStudyAssociatedParty_modifierExtension(ctx, field, obj) - case "name": - out.Values[i] = ec._ResearchStudyAssociatedParty_name(ctx, field, obj) - case "role": - out.Values[i] = ec._ResearchStudyAssociatedParty_role(ctx, field, obj) case "id": out.Values[i] = ec._ResearchStudyAssociatedParty_id(ctx, field, obj) - case "period": - out.Values[i] = ec._ResearchStudyAssociatedParty_period(ctx, field, obj) + case "party": + out.Values[i] = ec._ResearchStudyAssociatedParty_party(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "role": + out.Values[i] = ec._ResearchStudyAssociatedParty_role(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ResearchStudyAssociatedParty_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._ResearchStudyAssociatedParty_resourceType(ctx, field, obj) + case "period": + out.Values[i] = ec._ResearchStudyAssociatedParty_period(ctx, field, obj) + case "name": + out.Values[i] = ec._ResearchStudyAssociatedParty_name(ctx, field, obj) case "classifier": out.Values[i] = ec._ResearchStudyAssociatedParty_classifier(ctx, field, obj) default: @@ -186517,24 +187303,27 @@ func (ec *executionContext) _ResearchStudyComparisonGroup(ctx context.Context, s switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchStudyComparisonGroup") - case "modifierExtension": - out.Values[i] = ec._ResearchStudyComparisonGroup_modifierExtension(ctx, field, obj) - case "observedGroup": - out.Values[i] = ec._ResearchStudyComparisonGroup_observedGroup(ctx, field, obj) - case "name": - out.Values[i] = ec._ResearchStudyComparisonGroup_name(ctx, field, obj) case "resourceType": out.Values[i] = ec._ResearchStudyComparisonGroup_resourceType(ctx, field, obj) - case "id": - out.Values[i] = ec._ResearchStudyComparisonGroup_id(ctx, field, obj) - case "description": - out.Values[i] = ec._ResearchStudyComparisonGroup_description(ctx, field, obj) + case "extension": + out.Values[i] = ec._ResearchStudyComparisonGroup_extension(ctx, field, obj) case "linkId": out.Values[i] = ec._ResearchStudyComparisonGroup_linkId(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ResearchStudyComparisonGroup_modifierExtension(ctx, field, obj) + case "id": + out.Values[i] = ec._ResearchStudyComparisonGroup_id(ctx, field, obj) + case "name": + out.Values[i] = ec._ResearchStudyComparisonGroup_name(ctx, field, obj) + case "observedGroup": + out.Values[i] = ec._ResearchStudyComparisonGroup_observedGroup(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "type": out.Values[i] = ec._ResearchStudyComparisonGroup_type(ctx, field, obj) - case "extension": - out.Values[i] = ec._ResearchStudyComparisonGroup_extension(ctx, field, obj) + case "description": + out.Values[i] = ec._ResearchStudyComparisonGroup_description(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186569,6 +187358,8 @@ func (ec *executionContext) _ResearchStudyLabel(ctx context.Context, sel ast.Sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchStudyLabel") + case "type": + out.Values[i] = ec._ResearchStudyLabel_type(ctx, field, obj) case "value": out.Values[i] = ec._ResearchStudyLabel_value(ctx, field, obj) case "extension": @@ -186579,8 +187370,6 @@ func (ec *executionContext) _ResearchStudyLabel(ctx context.Context, sel ast.Sel out.Values[i] = ec._ResearchStudyLabel_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._ResearchStudyLabel_resourceType(ctx, field, obj) - case "type": - out.Values[i] = ec._ResearchStudyLabel_type(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186615,8 +187404,6 @@ func (ec *executionContext) _ResearchStudyObjective(ctx context.Context, sel ast switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchStudyObjective") - case "description": - out.Values[i] = ec._ResearchStudyObjective_description(ctx, field, obj) case "extension": out.Values[i] = ec._ResearchStudyObjective_extension(ctx, field, obj) case "id": @@ -186629,6 +187416,8 @@ func (ec *executionContext) _ResearchStudyObjective(ctx context.Context, sel ast out.Values[i] = ec._ResearchStudyObjective_resourceType(ctx, field, obj) case "type": out.Values[i] = ec._ResearchStudyObjective_type(ctx, field, obj) + case "description": + out.Values[i] = ec._ResearchStudyObjective_description(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186663,10 +187452,6 @@ func (ec *executionContext) _ResearchStudyOutcomeMeasure(ctx context.Context, se switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchStudyOutcomeMeasure") - case "id": - out.Values[i] = ec._ResearchStudyOutcomeMeasure_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._ResearchStudyOutcomeMeasure_modifierExtension(ctx, field, obj) case "name": out.Values[i] = ec._ResearchStudyOutcomeMeasure_name(ctx, field, obj) case "resourceType": @@ -186677,6 +187462,10 @@ func (ec *executionContext) _ResearchStudyOutcomeMeasure(ctx context.Context, se out.Values[i] = ec._ResearchStudyOutcomeMeasure_description(ctx, field, obj) case "extension": out.Values[i] = ec._ResearchStudyOutcomeMeasure_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._ResearchStudyOutcomeMeasure_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ResearchStudyOutcomeMeasure_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186711,12 +187500,6 @@ func (ec *executionContext) _ResearchStudyProgressStatus(ctx context.Context, se switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchStudyProgressStatus") - case "resourceType": - out.Values[i] = ec._ResearchStudyProgressStatus_resourceType(ctx, field, obj) - case "state": - out.Values[i] = ec._ResearchStudyProgressStatus_state(ctx, field, obj) - case "actual": - out.Values[i] = ec._ResearchStudyProgressStatus_actual(ctx, field, obj) case "extension": out.Values[i] = ec._ResearchStudyProgressStatus_extension(ctx, field, obj) case "id": @@ -186725,6 +187508,12 @@ func (ec *executionContext) _ResearchStudyProgressStatus(ctx context.Context, se out.Values[i] = ec._ResearchStudyProgressStatus_modifierExtension(ctx, field, obj) case "period": out.Values[i] = ec._ResearchStudyProgressStatus_period(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ResearchStudyProgressStatus_resourceType(ctx, field, obj) + case "state": + out.Values[i] = ec._ResearchStudyProgressStatus_state(ctx, field, obj) + case "actual": + out.Values[i] = ec._ResearchStudyProgressStatus_actual(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186759,14 +187548,13 @@ func (ec *executionContext) _ResearchStudyRecruitment(ctx context.Context, sel a switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchStudyRecruitment") - case "targetNumber": - out.Values[i] = ec._ResearchStudyRecruitment_targetNumber(ctx, field, obj) - case "actualGroup": - out.Values[i] = ec._ResearchStudyRecruitment_actualGroup(ctx, field, obj) case "actualNumber": out.Values[i] = ec._ResearchStudyRecruitment_actualNumber(ctx, field, obj) case "eligibility": out.Values[i] = ec._ResearchStudyRecruitment_eligibility(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "extension": out.Values[i] = ec._ResearchStudyRecruitment_extension(ctx, field, obj) case "id": @@ -186775,6 +187563,13 @@ func (ec *executionContext) _ResearchStudyRecruitment(ctx context.Context, sel a out.Values[i] = ec._ResearchStudyRecruitment_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._ResearchStudyRecruitment_resourceType(ctx, field, obj) + case "targetNumber": + out.Values[i] = ec._ResearchStudyRecruitment_targetNumber(ctx, field, obj) + case "actualGroup": + out.Values[i] = ec._ResearchStudyRecruitment_actualGroup(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186798,7 +187593,7 @@ func (ec *executionContext) _ResearchStudyRecruitment(ctx context.Context, sel a return out } -var researchStudyTypeImplementors = []string{"ResearchStudyType", "UsageContextValueReferenceUnion", "TaskInputValueUsageContextUnion", "ResearchStudySiteUnion", "ExtensionValueUsageContextUnion", "TaskOutputValueUsageContextUnion", "ResourceUnion"} +var researchStudyTypeImplementors = []string{"ResearchStudyType", "ResearchStudySiteUnion", "TaskInputValueUsageContextUnion", "TaskOutputValueUsageContextUnion", "ExtensionValueUsageContextUnion", "UsageContextValueReferenceUnion", "ResourceUnion"} func (ec *executionContext) _ResearchStudyType(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchStudyType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, researchStudyTypeImplementors) @@ -186809,86 +187604,104 @@ func (ec *executionContext) _ResearchStudyType(ctx context.Context, sel ast.Sele switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchStudyType") + case "language": + out.Values[i] = ec._ResearchStudyType_language(ctx, field, obj) case "region": out.Values[i] = ec._ResearchStudyType_region(ctx, field, obj) - case "title": - out.Values[i] = ec._ResearchStudyType_title(ctx, field, obj) - case "condition": - out.Values[i] = ec._ResearchStudyType_condition(ctx, field, obj) - case "contained": - out.Values[i] = ec._ResearchStudyType_contained(ctx, field, obj) - case "period": - out.Values[i] = ec._ResearchStudyType_period(ctx, field, obj) - case "descriptionSummary": - out.Values[i] = ec._ResearchStudyType_descriptionSummary(ctx, field, obj) + case "identifier": + out.Values[i] = ec._ResearchStudyType_identifier(ctx, field, obj) + case "note": + out.Values[i] = ec._ResearchStudyType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "focus": + out.Values[i] = ec._ResearchStudyType_focus(ctx, field, obj) case "primaryPurposeType": out.Values[i] = ec._ResearchStudyType_primaryPurposeType(ctx, field, obj) - case "comparisonGroup": - out.Values[i] = ec._ResearchStudyType_comparisonGroup(ctx, field, obj) + case "progressStatus": + out.Values[i] = ec._ResearchStudyType_progressStatus(ctx, field, obj) case "whyStopped": out.Values[i] = ec._ResearchStudyType_whyStopped(ctx, field, obj) - case "date": - out.Values[i] = ec._ResearchStudyType_date(ctx, field, obj) - case "recruitment": - out.Values[i] = ec._ResearchStudyType_recruitment(ctx, field, obj) - case "classifier": - out.Values[i] = ec._ResearchStudyType_classifier(ctx, field, obj) - case "phase": - out.Values[i] = ec._ResearchStudyType_phase(ctx, field, obj) - case "language": - out.Values[i] = ec._ResearchStudyType_language(ctx, field, obj) - case "meta": - out.Values[i] = ec._ResearchStudyType_meta(ctx, field, obj) - case "name": - out.Values[i] = ec._ResearchStudyType_name(ctx, field, obj) - case "text": - out.Values[i] = ec._ResearchStudyType_text(ctx, field, obj) case "result": out.Values[i] = ec._ResearchStudyType_result(ctx, field, obj) - case "progressStatus": - out.Values[i] = ec._ResearchStudyType_progressStatus(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._ResearchStudyType_modifierExtension(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "version": + out.Values[i] = ec._ResearchStudyType_version(ctx, field, obj) + case "url": + out.Values[i] = ec._ResearchStudyType_url(ctx, field, obj) + case "relatedArtifact": + out.Values[i] = ec._ResearchStudyType_relatedArtifact(ctx, field, obj) + case "name": + out.Values[i] = ec._ResearchStudyType_name(ctx, field, obj) + case "studyDesign": + out.Values[i] = ec._ResearchStudyType_studyDesign(ctx, field, obj) + case "objective": + out.Values[i] = ec._ResearchStudyType_objective(ctx, field, obj) + case "recruitment": + out.Values[i] = ec._ResearchStudyType_recruitment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "title": + out.Values[i] = ec._ResearchStudyType_title(ctx, field, obj) case "associatedParty": out.Values[i] = ec._ResearchStudyType_associatedParty(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "id": + out.Values[i] = ec._ResearchStudyType_id(ctx, field, obj) + case "contained": + out.Values[i] = ec._ResearchStudyType_contained(ctx, field, obj) case "description": out.Values[i] = ec._ResearchStudyType_description(ctx, field, obj) - case "site": - out.Values[i] = ec._ResearchStudyType_site(ctx, field, obj) - case "url": - out.Values[i] = ec._ResearchStudyType_url(ctx, field, obj) + case "comparisonGroup": + out.Values[i] = ec._ResearchStudyType_comparisonGroup(ctx, field, obj) case "implicitRules": out.Values[i] = ec._ResearchStudyType_implicitRules(ctx, field, obj) - case "version": - out.Values[i] = ec._ResearchStudyType_version(ctx, field, obj) - case "outcomeMeasure": - out.Values[i] = ec._ResearchStudyType_outcomeMeasure(ctx, field, obj) - case "id": - out.Values[i] = ec._ResearchStudyType_id(ctx, field, obj) - case "identifier": - out.Values[i] = ec._ResearchStudyType_identifier(ctx, field, obj) - case "objective": - out.Values[i] = ec._ResearchStudyType_objective(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ResearchStudyType_resourceType(ctx, field, obj) - case "keyword": - out.Values[i] = ec._ResearchStudyType_keyword(ctx, field, obj) - case "note": - out.Values[i] = ec._ResearchStudyType_note(ctx, field, obj) - case "status": - out.Values[i] = ec._ResearchStudyType_status(ctx, field, obj) + case "partOf": + out.Values[i] = ec._ResearchStudyType_partOf(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "classifier": + out.Values[i] = ec._ResearchStudyType_classifier(ctx, field, obj) case "label": out.Values[i] = ec._ResearchStudyType_label(ctx, field, obj) - case "relatedArtifact": - out.Values[i] = ec._ResearchStudyType_relatedArtifact(ctx, field, obj) - case "studyDesign": - out.Values[i] = ec._ResearchStudyType_studyDesign(ctx, field, obj) + case "keyword": + out.Values[i] = ec._ResearchStudyType_keyword(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ResearchStudyType_modifierExtension(ctx, field, obj) + case "period": + out.Values[i] = ec._ResearchStudyType_period(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ResearchStudyType_resourceType(ctx, field, obj) + case "date": + out.Values[i] = ec._ResearchStudyType_date(ctx, field, obj) + case "descriptionSummary": + out.Values[i] = ec._ResearchStudyType_descriptionSummary(ctx, field, obj) case "extension": out.Values[i] = ec._ResearchStudyType_extension(ctx, field, obj) - case "focus": - out.Values[i] = ec._ResearchStudyType_focus(ctx, field, obj) - case "partOf": - out.Values[i] = ec._ResearchStudyType_partOf(ctx, field, obj) + case "text": + out.Values[i] = ec._ResearchStudyType_text(ctx, field, obj) + case "meta": + out.Values[i] = ec._ResearchStudyType_meta(ctx, field, obj) + case "phase": + out.Values[i] = ec._ResearchStudyType_phase(ctx, field, obj) + case "condition": + out.Values[i] = ec._ResearchStudyType_condition(ctx, field, obj) + case "status": + out.Values[i] = ec._ResearchStudyType_status(ctx, field, obj) + case "outcomeMeasure": + out.Values[i] = ec._ResearchStudyType_outcomeMeasure(ctx, field, obj) + case "site": + out.Values[i] = ec._ResearchStudyType_site(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186923,26 +187736,26 @@ func (ec *executionContext) _ResearchSubjectProgress(ctx context.Context, sel as switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchSubjectProgress") - case "endDate": - out.Values[i] = ec._ResearchSubjectProgress_endDate(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._ResearchSubjectProgress_modifierExtension(ctx, field, obj) - case "type": - out.Values[i] = ec._ResearchSubjectProgress_type(ctx, field, obj) - case "extension": - out.Values[i] = ec._ResearchSubjectProgress_extension(ctx, field, obj) + case "subjectState": + out.Values[i] = ec._ResearchSubjectProgress_subjectState(ctx, field, obj) + case "id": + out.Values[i] = ec._ResearchSubjectProgress_id(ctx, field, obj) case "milestone": out.Values[i] = ec._ResearchSubjectProgress_milestone(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ResearchSubjectProgress_resourceType(ctx, field, obj) case "reason": out.Values[i] = ec._ResearchSubjectProgress_reason(ctx, field, obj) case "startDate": out.Values[i] = ec._ResearchSubjectProgress_startDate(ctx, field, obj) - case "subjectState": - out.Values[i] = ec._ResearchSubjectProgress_subjectState(ctx, field, obj) - case "id": - out.Values[i] = ec._ResearchSubjectProgress_id(ctx, field, obj) + case "type": + out.Values[i] = ec._ResearchSubjectProgress_type(ctx, field, obj) + case "extension": + out.Values[i] = ec._ResearchSubjectProgress_extension(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ResearchSubjectProgress_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ResearchSubjectProgress_resourceType(ctx, field, obj) + case "endDate": + out.Values[i] = ec._ResearchSubjectProgress_endDate(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -186977,40 +187790,46 @@ func (ec *executionContext) _ResearchSubjectType(ctx context.Context, sel ast.Se switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ResearchSubjectType") - case "subject": - out.Values[i] = ec._ResearchSubjectType_subject(ctx, field, obj) - case "text": - out.Values[i] = ec._ResearchSubjectType_text(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._ResearchSubjectType_resourceType(ctx, field, obj) + case "study": + out.Values[i] = ec._ResearchSubjectType_study(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "implicitRules": out.Values[i] = ec._ResearchSubjectType_implicitRules(ctx, field, obj) - case "meta": - out.Values[i] = ec._ResearchSubjectType_meta(ctx, field, obj) case "status": out.Values[i] = ec._ResearchSubjectType_status(ctx, field, obj) - case "id": - out.Values[i] = ec._ResearchSubjectType_id(ctx, field, obj) - case "contained": - out.Values[i] = ec._ResearchSubjectType_contained(ctx, field, obj) - case "identifier": - out.Values[i] = ec._ResearchSubjectType_identifier(ctx, field, obj) - case "progress": - out.Values[i] = ec._ResearchSubjectType_progress(ctx, field, obj) - case "actualComparisonGroup": - out.Values[i] = ec._ResearchSubjectType_actualComparisonGroup(ctx, field, obj) - case "language": - out.Values[i] = ec._ResearchSubjectType_language(ctx, field, obj) + case "meta": + out.Values[i] = ec._ResearchSubjectType_meta(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._ResearchSubjectType_modifierExtension(ctx, field, obj) - case "study": - out.Values[i] = ec._ResearchSubjectType_study(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ResearchSubjectType_resourceType(ctx, field, obj) + case "language": + out.Values[i] = ec._ResearchSubjectType_language(ctx, field, obj) + case "text": + out.Values[i] = ec._ResearchSubjectType_text(ctx, field, obj) + case "identifier": + out.Values[i] = ec._ResearchSubjectType_identifier(ctx, field, obj) + case "contained": + out.Values[i] = ec._ResearchSubjectType_contained(ctx, field, obj) case "extension": out.Values[i] = ec._ResearchSubjectType_extension(ctx, field, obj) - case "period": - out.Values[i] = ec._ResearchSubjectType_period(ctx, field, obj) + case "actualComparisonGroup": + out.Values[i] = ec._ResearchSubjectType_actualComparisonGroup(ctx, field, obj) case "assignedComparisonGroup": out.Values[i] = ec._ResearchSubjectType_assignedComparisonGroup(ctx, field, obj) + case "progress": + out.Values[i] = ec._ResearchSubjectType_progress(ctx, field, obj) + case "period": + out.Values[i] = ec._ResearchSubjectType_period(ctx, field, obj) + case "subject": + out.Values[i] = ec._ResearchSubjectType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "id": + out.Values[i] = ec._ResearchSubjectType_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187045,30 +187864,30 @@ func (ec *executionContext) _SampledData(ctx context.Context, sel ast.SelectionS switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SampledData") - case "resourceType": - out.Values[i] = ec._SampledData_resourceType(ctx, field, obj) - case "origin": - out.Values[i] = ec._SampledData_origin(ctx, field, obj) - case "codeMap": - out.Values[i] = ec._SampledData_codeMap(ctx, field, obj) case "intervalUnit": out.Values[i] = ec._SampledData_intervalUnit(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._SampledData_resourceType(ctx, field, obj) case "lowerLimit": out.Values[i] = ec._SampledData_lowerLimit(ctx, field, obj) - case "upperLimit": - out.Values[i] = ec._SampledData_upperLimit(ctx, field, obj) - case "extension": - out.Values[i] = ec._SampledData_extension(ctx, field, obj) + case "factor": + out.Values[i] = ec._SampledData_factor(ctx, field, obj) case "id": out.Values[i] = ec._SampledData_id(ctx, field, obj) + case "extension": + out.Values[i] = ec._SampledData_extension(ctx, field, obj) + case "upperLimit": + out.Values[i] = ec._SampledData_upperLimit(ctx, field, obj) case "dimensions": out.Values[i] = ec._SampledData_dimensions(ctx, field, obj) - case "factor": - out.Values[i] = ec._SampledData_factor(ctx, field, obj) case "interval": out.Values[i] = ec._SampledData_interval(ctx, field, obj) case "offsets": out.Values[i] = ec._SampledData_offsets(ctx, field, obj) + case "origin": + out.Values[i] = ec._SampledData_origin(ctx, field, obj) + case "codeMap": + out.Values[i] = ec._SampledData_codeMap(ctx, field, obj) case "data": out.Values[i] = ec._SampledData_data(ctx, field, obj) default: @@ -187105,26 +187924,32 @@ func (ec *executionContext) _Signature(ctx context.Context, sel ast.SelectionSet switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Signature") - case "who": - out.Values[i] = ec._Signature_who(ctx, field, obj) - case "data": - out.Values[i] = ec._Signature_data(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._Signature_resourceType(ctx, field, obj) - case "sigFormat": - out.Values[i] = ec._Signature_sigFormat(ctx, field, obj) - case "id": - out.Values[i] = ec._Signature_id(ctx, field, obj) + case "targetFormat": + out.Values[i] = ec._Signature_targetFormat(ctx, field, obj) case "when": out.Values[i] = ec._Signature_when(ctx, field, obj) case "onBehalfOf": out.Values[i] = ec._Signature_onBehalfOf(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "type": out.Values[i] = ec._Signature_type(ctx, field, obj) case "extension": out.Values[i] = ec._Signature_extension(ctx, field, obj) - case "targetFormat": - out.Values[i] = ec._Signature_targetFormat(ctx, field, obj) + case "sigFormat": + out.Values[i] = ec._Signature_sigFormat(ctx, field, obj) + case "data": + out.Values[i] = ec._Signature_data(ctx, field, obj) + case "id": + out.Values[i] = ec._Signature_id(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Signature_resourceType(ctx, field, obj) + case "who": + out.Values[i] = ec._Signature_who(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187161,34 +187986,40 @@ func (ec *executionContext) _SpecimenCollection(ctx context.Context, sel ast.Sel out.Values[i] = graphql.MarshalString("SpecimenCollection") case "extension": out.Values[i] = ec._SpecimenCollection_extension(ctx, field, obj) - case "method": - out.Values[i] = ec._SpecimenCollection_method(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._SpecimenCollection_modifierExtension(ctx, field, obj) - case "quantity": - out.Values[i] = ec._SpecimenCollection_quantity(ctx, field, obj) - case "bodySite": - out.Values[i] = ec._SpecimenCollection_bodySite(ctx, field, obj) + case "fastingStatusDuration": + out.Values[i] = ec._SpecimenCollection_fastingStatusDuration(ctx, field, obj) case "collector": out.Values[i] = ec._SpecimenCollection_collector(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "fastingStatusCodeableConcept": out.Values[i] = ec._SpecimenCollection_fastingStatusCodeableConcept(ctx, field, obj) - case "collectedPeriod": - out.Values[i] = ec._SpecimenCollection_collectedPeriod(ctx, field, obj) - case "fastingStatusDuration": - out.Values[i] = ec._SpecimenCollection_fastingStatusDuration(ctx, field, obj) case "procedure": out.Values[i] = ec._SpecimenCollection_procedure(ctx, field, obj) - case "device": - out.Values[i] = ec._SpecimenCollection_device(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resourceType": + out.Values[i] = ec._SpecimenCollection_resourceType(ctx, field, obj) + case "id": + out.Values[i] = ec._SpecimenCollection_id(ctx, field, obj) + case "quantity": + out.Values[i] = ec._SpecimenCollection_quantity(ctx, field, obj) + case "bodySite": + out.Values[i] = ec._SpecimenCollection_bodySite(ctx, field, obj) case "collectedDateTime": out.Values[i] = ec._SpecimenCollection_collectedDateTime(ctx, field, obj) + case "collectedPeriod": + out.Values[i] = ec._SpecimenCollection_collectedPeriod(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SpecimenCollection_modifierExtension(ctx, field, obj) + case "method": + out.Values[i] = ec._SpecimenCollection_method(ctx, field, obj) + case "device": + out.Values[i] = ec._SpecimenCollection_device(ctx, field, obj) case "duration": out.Values[i] = ec._SpecimenCollection_duration(ctx, field, obj) - case "id": - out.Values[i] = ec._SpecimenCollection_id(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._SpecimenCollection_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187223,16 +188054,16 @@ func (ec *executionContext) _SpecimenContainer(ctx context.Context, sel ast.Sele switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SpecimenContainer") + case "extension": + out.Values[i] = ec._SpecimenContainer_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._SpecimenContainer_id(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._SpecimenContainer_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._SpecimenContainer_resourceType(ctx, field, obj) case "specimenQuantity": out.Values[i] = ec._SpecimenContainer_specimenQuantity(ctx, field, obj) - case "extension": - out.Values[i] = ec._SpecimenContainer_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._SpecimenContainer_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187267,6 +188098,8 @@ func (ec *executionContext) _SpecimenFeature(ctx context.Context, sel ast.Select switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SpecimenFeature") + case "description": + out.Values[i] = ec._SpecimenFeature_description(ctx, field, obj) case "extension": out.Values[i] = ec._SpecimenFeature_extension(ctx, field, obj) case "id": @@ -187277,8 +188110,6 @@ func (ec *executionContext) _SpecimenFeature(ctx context.Context, sel ast.Select out.Values[i] = ec._SpecimenFeature_resourceType(ctx, field, obj) case "type": out.Values[i] = ec._SpecimenFeature_type(ctx, field, obj) - case "description": - out.Values[i] = ec._SpecimenFeature_description(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187313,24 +188144,27 @@ func (ec *executionContext) _SpecimenProcessing(ctx context.Context, sel ast.Sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SpecimenProcessing") - case "timePeriod": - out.Values[i] = ec._SpecimenProcessing_timePeriod(ctx, field, obj) - case "additive": - out.Values[i] = ec._SpecimenProcessing_additive(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._SpecimenProcessing_modifierExtension(ctx, field, obj) + case "extension": + out.Values[i] = ec._SpecimenProcessing_extension(ctx, field, obj) case "description": out.Values[i] = ec._SpecimenProcessing_description(ctx, field, obj) - case "id": - out.Values[i] = ec._SpecimenProcessing_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SpecimenProcessing_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._SpecimenProcessing_resourceType(ctx, field, obj) + case "additive": + out.Values[i] = ec._SpecimenProcessing_additive(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "method": out.Values[i] = ec._SpecimenProcessing_method(ctx, field, obj) case "timeDateTime": out.Values[i] = ec._SpecimenProcessing_timeDateTime(ctx, field, obj) - case "extension": - out.Values[i] = ec._SpecimenProcessing_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._SpecimenProcessing_id(ctx, field, obj) + case "timePeriod": + out.Values[i] = ec._SpecimenProcessing_timePeriod(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187354,7 +188188,7 @@ func (ec *executionContext) _SpecimenProcessing(ctx context.Context, sel ast.Sel return out } -var specimenTypeImplementors = []string{"SpecimenType", "GroupMemberUnion", "GroupMemberEntityUnion", "ObservationSpecimenUnion", "ProcedureFocusUnion", "ResearchSubjectSubjectUnion", "ResourceUnion"} +var specimenTypeImplementors = []string{"SpecimenType", "ResearchSubjectSubjectUnion", "GroupMemberUnion", "GroupMemberEntityUnion", "ProcedureFocusUnion", "ObservationSpecimenUnion", "ResourceUnion"} func (ec *executionContext) _SpecimenType(ctx context.Context, sel ast.SelectionSet, obj *model.SpecimenType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, specimenTypeImplementors) @@ -187365,54 +188199,66 @@ func (ec *executionContext) _SpecimenType(ctx context.Context, sel ast.Selection switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SpecimenType") - case "identifier": - out.Values[i] = ec._SpecimenType_identifier(ctx, field, obj) - case "text": - out.Values[i] = ec._SpecimenType_text(ctx, field, obj) - case "contained": - out.Values[i] = ec._SpecimenType_contained(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._SpecimenType_resourceType(ctx, field, obj) + case "subject": + out.Values[i] = ec._SpecimenType_subject(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "combined": out.Values[i] = ec._SpecimenType_combined(ctx, field, obj) - case "role": - out.Values[i] = ec._SpecimenType_role(ctx, field, obj) - case "extension": - out.Values[i] = ec._SpecimenType_extension(ctx, field, obj) + case "accessionIdentifier": + out.Values[i] = ec._SpecimenType_accessionIdentifier(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SpecimenType_modifierExtension(ctx, field, obj) case "type": out.Values[i] = ec._SpecimenType_type(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._SpecimenType_resourceType(ctx, field, obj) - case "id": - out.Values[i] = ec._SpecimenType_id(ctx, field, obj) + case "text": + out.Values[i] = ec._SpecimenType_text(ctx, field, obj) + case "container": + out.Values[i] = ec._SpecimenType_container(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._SpecimenType_implicitRules(ctx, field, obj) case "parent": out.Values[i] = ec._SpecimenType_parent(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._SpecimenType_modifierExtension(ctx, field, obj) - case "status": - out.Values[i] = ec._SpecimenType_status(ctx, field, obj) - case "condition": - out.Values[i] = ec._SpecimenType_condition(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "meta": out.Values[i] = ec._SpecimenType_meta(ctx, field, obj) - case "receivedTime": - out.Values[i] = ec._SpecimenType_receivedTime(ctx, field, obj) + case "condition": + out.Values[i] = ec._SpecimenType_condition(ctx, field, obj) case "feature": out.Values[i] = ec._SpecimenType_feature(ctx, field, obj) + case "contained": + out.Values[i] = ec._SpecimenType_contained(ctx, field, obj) + case "id": + out.Values[i] = ec._SpecimenType_id(ctx, field, obj) + case "processing": + out.Values[i] = ec._SpecimenType_processing(ctx, field, obj) + case "extension": + out.Values[i] = ec._SpecimenType_extension(ctx, field, obj) + case "identifier": + out.Values[i] = ec._SpecimenType_identifier(ctx, field, obj) case "collection": out.Values[i] = ec._SpecimenType_collection(ctx, field, obj) - case "subject": - out.Values[i] = ec._SpecimenType_subject(ctx, field, obj) - case "accessionIdentifier": - out.Values[i] = ec._SpecimenType_accessionIdentifier(ctx, field, obj) - case "container": - out.Values[i] = ec._SpecimenType_container(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "receivedTime": + out.Values[i] = ec._SpecimenType_receivedTime(ctx, field, obj) + case "role": + out.Values[i] = ec._SpecimenType_role(ctx, field, obj) case "language": out.Values[i] = ec._SpecimenType_language(ctx, field, obj) - case "processing": - out.Values[i] = ec._SpecimenType_processing(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._SpecimenType_implicitRules(ctx, field, obj) case "note": out.Values[i] = ec._SpecimenType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._SpecimenType_status(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187497,24 +188343,30 @@ func (ec *executionContext) _SubstanceDefinitionCode(ctx context.Context, sel as switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceDefinitionCode") - case "source": - out.Values[i] = ec._SubstanceDefinitionCode_source(ctx, field, obj) - case "status": - out.Values[i] = ec._SubstanceDefinitionCode_status(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._SubstanceDefinitionCode_resourceType(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._SubstanceDefinitionCode_modifierExtension(ctx, field, obj) - case "statusDate": - out.Values[i] = ec._SubstanceDefinitionCode_statusDate(ctx, field, obj) case "extension": out.Values[i] = ec._SubstanceDefinitionCode_extension(ctx, field, obj) - case "note": - out.Values[i] = ec._SubstanceDefinitionCode_note(ctx, field, obj) case "code": out.Values[i] = ec._SubstanceDefinitionCode_code(ctx, field, obj) + case "note": + out.Values[i] = ec._SubstanceDefinitionCode_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "statusDate": + out.Values[i] = ec._SubstanceDefinitionCode_statusDate(ctx, field, obj) case "id": out.Values[i] = ec._SubstanceDefinitionCode_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SubstanceDefinitionCode_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._SubstanceDefinitionCode_resourceType(ctx, field, obj) + case "source": + out.Values[i] = ec._SubstanceDefinitionCode_source(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._SubstanceDefinitionCode_status(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187549,32 +188401,32 @@ func (ec *executionContext) _SubstanceDefinitionMoiety(ctx context.Context, sel switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceDefinitionMoiety") - case "measurementType": - out.Values[i] = ec._SubstanceDefinitionMoiety_measurementType(ctx, field, obj) - case "name": - out.Values[i] = ec._SubstanceDefinitionMoiety_name(ctx, field, obj) case "amountString": out.Values[i] = ec._SubstanceDefinitionMoiety_amountString(ctx, field, obj) + case "stereochemistry": + out.Values[i] = ec._SubstanceDefinitionMoiety_stereochemistry(ctx, field, obj) case "extension": out.Values[i] = ec._SubstanceDefinitionMoiety_extension(ctx, field, obj) case "identifier": out.Values[i] = ec._SubstanceDefinitionMoiety_identifier(ctx, field, obj) - case "molecularFormula": - out.Values[i] = ec._SubstanceDefinitionMoiety_molecularFormula(ctx, field, obj) - case "opticalActivity": - out.Values[i] = ec._SubstanceDefinitionMoiety_opticalActivity(ctx, field, obj) - case "stereochemistry": - out.Values[i] = ec._SubstanceDefinitionMoiety_stereochemistry(ctx, field, obj) + case "name": + out.Values[i] = ec._SubstanceDefinitionMoiety_name(ctx, field, obj) case "role": out.Values[i] = ec._SubstanceDefinitionMoiety_role(ctx, field, obj) case "id": out.Values[i] = ec._SubstanceDefinitionMoiety_id(ctx, field, obj) + case "measurementType": + out.Values[i] = ec._SubstanceDefinitionMoiety_measurementType(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._SubstanceDefinitionMoiety_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._SubstanceDefinitionMoiety_resourceType(ctx, field, obj) + case "molecularFormula": + out.Values[i] = ec._SubstanceDefinitionMoiety_molecularFormula(ctx, field, obj) case "amountQuantity": out.Values[i] = ec._SubstanceDefinitionMoiety_amountQuantity(ctx, field, obj) + case "opticalActivity": + out.Values[i] = ec._SubstanceDefinitionMoiety_opticalActivity(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._SubstanceDefinitionMoiety_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187609,12 +188461,6 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight(ctx context.Cont switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceDefinitionMolecularWeight") - case "id": - out.Values[i] = ec._SubstanceDefinitionMolecularWeight_id(ctx, field, obj) - case "method": - out.Values[i] = ec._SubstanceDefinitionMolecularWeight_method(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._SubstanceDefinitionMolecularWeight_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._SubstanceDefinitionMolecularWeight_resourceType(ctx, field, obj) case "type": @@ -187623,6 +188469,12 @@ func (ec *executionContext) _SubstanceDefinitionMolecularWeight(ctx context.Cont out.Values[i] = ec._SubstanceDefinitionMolecularWeight_amount(ctx, field, obj) case "extension": out.Values[i] = ec._SubstanceDefinitionMolecularWeight_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._SubstanceDefinitionMolecularWeight_id(ctx, field, obj) + case "method": + out.Values[i] = ec._SubstanceDefinitionMolecularWeight_method(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SubstanceDefinitionMolecularWeight_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187657,36 +188509,39 @@ func (ec *executionContext) _SubstanceDefinitionName(ctx context.Context, sel as switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceDefinitionName") - case "status": - out.Values[i] = ec._SubstanceDefinitionName_status(ctx, field, obj) - case "synonym": - out.Values[i] = ec._SubstanceDefinitionName_synonym(ctx, field, obj) + case "id": + out.Values[i] = ec._SubstanceDefinitionName_id(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._SubstanceDefinitionName_modifierExtension(ctx, field, obj) - case "translation": - out.Values[i] = ec._SubstanceDefinitionName_translation(ctx, field, obj) - case "type": - out.Values[i] = ec._SubstanceDefinitionName_type(ctx, field, obj) - case "official": - out.Values[i] = ec._SubstanceDefinitionName_official(ctx, field, obj) case "name": out.Values[i] = ec._SubstanceDefinitionName_name(ctx, field, obj) - case "id": - out.Values[i] = ec._SubstanceDefinitionName_id(ctx, field, obj) - case "language": - out.Values[i] = ec._SubstanceDefinitionName_language(ctx, field, obj) - case "domain": - out.Values[i] = ec._SubstanceDefinitionName_domain(ctx, field, obj) - case "extension": - out.Values[i] = ec._SubstanceDefinitionName_extension(ctx, field, obj) - case "jurisdiction": - out.Values[i] = ec._SubstanceDefinitionName_jurisdiction(ctx, field, obj) - case "preferred": - out.Values[i] = ec._SubstanceDefinitionName_preferred(ctx, field, obj) case "source": out.Values[i] = ec._SubstanceDefinitionName_source(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "preferred": + out.Values[i] = ec._SubstanceDefinitionName_preferred(ctx, field, obj) + case "translation": + out.Values[i] = ec._SubstanceDefinitionName_translation(ctx, field, obj) + case "jurisdiction": + out.Values[i] = ec._SubstanceDefinitionName_jurisdiction(ctx, field, obj) case "resourceType": out.Values[i] = ec._SubstanceDefinitionName_resourceType(ctx, field, obj) + case "domain": + out.Values[i] = ec._SubstanceDefinitionName_domain(ctx, field, obj) + case "official": + out.Values[i] = ec._SubstanceDefinitionName_official(ctx, field, obj) + case "synonym": + out.Values[i] = ec._SubstanceDefinitionName_synonym(ctx, field, obj) + case "extension": + out.Values[i] = ec._SubstanceDefinitionName_extension(ctx, field, obj) + case "type": + out.Values[i] = ec._SubstanceDefinitionName_type(ctx, field, obj) + case "language": + out.Values[i] = ec._SubstanceDefinitionName_language(ctx, field, obj) + case "status": + out.Values[i] = ec._SubstanceDefinitionName_status(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187721,6 +188576,10 @@ func (ec *executionContext) _SubstanceDefinitionNameOfficial(ctx context.Context switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceDefinitionNameOfficial") + case "id": + out.Values[i] = ec._SubstanceDefinitionNameOfficial_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SubstanceDefinitionNameOfficial_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._SubstanceDefinitionNameOfficial_resourceType(ctx, field, obj) case "status": @@ -187731,10 +188590,6 @@ func (ec *executionContext) _SubstanceDefinitionNameOfficial(ctx context.Context out.Values[i] = ec._SubstanceDefinitionNameOfficial_date(ctx, field, obj) case "extension": out.Values[i] = ec._SubstanceDefinitionNameOfficial_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._SubstanceDefinitionNameOfficial_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._SubstanceDefinitionNameOfficial_modifierExtension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187775,20 +188630,20 @@ func (ec *executionContext) _SubstanceDefinitionProperty(ctx context.Context, se out.Values[i] = ec._SubstanceDefinitionProperty_modifierExtension(ctx, field, obj) case "valueAttachment": out.Values[i] = ec._SubstanceDefinitionProperty_valueAttachment(ctx, field, obj) - case "valueQuantity": - out.Values[i] = ec._SubstanceDefinitionProperty_valueQuantity(ctx, field, obj) - case "id": - out.Values[i] = ec._SubstanceDefinitionProperty_id(ctx, field, obj) + case "valueCodeableConcept": + out.Values[i] = ec._SubstanceDefinitionProperty_valueCodeableConcept(ctx, field, obj) + case "valueDate": + out.Values[i] = ec._SubstanceDefinitionProperty_valueDate(ctx, field, obj) case "resourceType": out.Values[i] = ec._SubstanceDefinitionProperty_resourceType(ctx, field, obj) case "type": out.Values[i] = ec._SubstanceDefinitionProperty_type(ctx, field, obj) + case "valueQuantity": + out.Values[i] = ec._SubstanceDefinitionProperty_valueQuantity(ctx, field, obj) + case "id": + out.Values[i] = ec._SubstanceDefinitionProperty_id(ctx, field, obj) case "valueBoolean": out.Values[i] = ec._SubstanceDefinitionProperty_valueBoolean(ctx, field, obj) - case "valueCodeableConcept": - out.Values[i] = ec._SubstanceDefinitionProperty_valueCodeableConcept(ctx, field, obj) - case "valueDate": - out.Values[i] = ec._SubstanceDefinitionProperty_valueDate(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187823,34 +188678,40 @@ func (ec *executionContext) _SubstanceDefinitionRelationship(ctx context.Context switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceDefinitionRelationship") - case "substanceDefinitionReference": - out.Values[i] = ec._SubstanceDefinitionRelationship_substanceDefinitionReference(ctx, field, obj) + case "isDefining": + out.Values[i] = ec._SubstanceDefinitionRelationship_isDefining(ctx, field, obj) + case "substanceDefinitionCodeableConcept": + out.Values[i] = ec._SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(ctx, field, obj) + case "extension": + out.Values[i] = ec._SubstanceDefinitionRelationship_extension(ctx, field, obj) case "amountQuantity": out.Values[i] = ec._SubstanceDefinitionRelationship_amountQuantity(ctx, field, obj) - case "amountRatio": - out.Values[i] = ec._SubstanceDefinitionRelationship_amountRatio(ctx, field, obj) case "id": out.Values[i] = ec._SubstanceDefinitionRelationship_id(ctx, field, obj) - case "ratioHighLimitAmount": - out.Values[i] = ec._SubstanceDefinitionRelationship_ratioHighLimitAmount(ctx, field, obj) - case "source": - out.Values[i] = ec._SubstanceDefinitionRelationship_source(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._SubstanceDefinitionRelationship_resourceType(ctx, field, obj) - case "amountString": - out.Values[i] = ec._SubstanceDefinitionRelationship_amountString(ctx, field, obj) - case "isDefining": - out.Values[i] = ec._SubstanceDefinitionRelationship_isDefining(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._SubstanceDefinitionRelationship_modifierExtension(ctx, field, obj) + case "amountString": + out.Values[i] = ec._SubstanceDefinitionRelationship_amountString(ctx, field, obj) + case "source": + out.Values[i] = ec._SubstanceDefinitionRelationship_source(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "comparator": out.Values[i] = ec._SubstanceDefinitionRelationship_comparator(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._SubstanceDefinitionRelationship_resourceType(ctx, field, obj) + case "ratioHighLimitAmount": + out.Values[i] = ec._SubstanceDefinitionRelationship_ratioHighLimitAmount(ctx, field, obj) case "type": out.Values[i] = ec._SubstanceDefinitionRelationship_type(ctx, field, obj) - case "extension": - out.Values[i] = ec._SubstanceDefinitionRelationship_extension(ctx, field, obj) - case "substanceDefinitionCodeableConcept": - out.Values[i] = ec._SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(ctx, field, obj) + case "substanceDefinitionReference": + out.Values[i] = ec._SubstanceDefinitionRelationship_substanceDefinitionReference(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "amountRatio": + out.Values[i] = ec._SubstanceDefinitionRelationship_amountRatio(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187885,22 +188746,22 @@ func (ec *executionContext) _SubstanceDefinitionSourceMaterial(ctx context.Conte switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceDefinitionSourceMaterial") - case "genus": - out.Values[i] = ec._SubstanceDefinitionSourceMaterial_genus(ctx, field, obj) - case "type": - out.Values[i] = ec._SubstanceDefinitionSourceMaterial_type(ctx, field, obj) - case "extension": - out.Values[i] = ec._SubstanceDefinitionSourceMaterial_extension(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._SubstanceDefinitionSourceMaterial_modifierExtension(ctx, field, obj) case "resourceType": out.Values[i] = ec._SubstanceDefinitionSourceMaterial_resourceType(ctx, field, obj) - case "countryOfOrigin": - out.Values[i] = ec._SubstanceDefinitionSourceMaterial_countryOfOrigin(ctx, field, obj) + case "extension": + out.Values[i] = ec._SubstanceDefinitionSourceMaterial_extension(ctx, field, obj) + case "genus": + out.Values[i] = ec._SubstanceDefinitionSourceMaterial_genus(ctx, field, obj) case "id": out.Values[i] = ec._SubstanceDefinitionSourceMaterial_id(ctx, field, obj) case "species": out.Values[i] = ec._SubstanceDefinitionSourceMaterial_species(ctx, field, obj) + case "type": + out.Values[i] = ec._SubstanceDefinitionSourceMaterial_type(ctx, field, obj) + case "countryOfOrigin": + out.Values[i] = ec._SubstanceDefinitionSourceMaterial_countryOfOrigin(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SubstanceDefinitionSourceMaterial_modifierExtension(ctx, field, obj) case "part": out.Values[i] = ec._SubstanceDefinitionSourceMaterial_part(ctx, field, obj) default: @@ -187937,30 +188798,33 @@ func (ec *executionContext) _SubstanceDefinitionStructure(ctx context.Context, s switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceDefinitionStructure") - case "sourceDocument": - out.Values[i] = ec._SubstanceDefinitionStructure_sourceDocument(ctx, field, obj) + case "stereochemistry": + out.Values[i] = ec._SubstanceDefinitionStructure_stereochemistry(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._SubstanceDefinitionStructure_modifierExtension(ctx, field, obj) - case "molecularFormula": - out.Values[i] = ec._SubstanceDefinitionStructure_molecularFormula(ctx, field, obj) case "resourceType": out.Values[i] = ec._SubstanceDefinitionStructure_resourceType(ctx, field, obj) - case "id": - out.Values[i] = ec._SubstanceDefinitionStructure_id(ctx, field, obj) - case "stereochemistry": - out.Values[i] = ec._SubstanceDefinitionStructure_stereochemistry(ctx, field, obj) case "technique": out.Values[i] = ec._SubstanceDefinitionStructure_technique(ctx, field, obj) - case "opticalActivity": - out.Values[i] = ec._SubstanceDefinitionStructure_opticalActivity(ctx, field, obj) - case "molecularFormulaByMoiety": - out.Values[i] = ec._SubstanceDefinitionStructure_molecularFormulaByMoiety(ctx, field, obj) case "molecularWeight": out.Values[i] = ec._SubstanceDefinitionStructure_molecularWeight(ctx, field, obj) - case "representation": - out.Values[i] = ec._SubstanceDefinitionStructure_representation(ctx, field, obj) + case "opticalActivity": + out.Values[i] = ec._SubstanceDefinitionStructure_opticalActivity(ctx, field, obj) + case "sourceDocument": + out.Values[i] = ec._SubstanceDefinitionStructure_sourceDocument(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "extension": out.Values[i] = ec._SubstanceDefinitionStructure_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._SubstanceDefinitionStructure_id(ctx, field, obj) + case "molecularFormula": + out.Values[i] = ec._SubstanceDefinitionStructure_molecularFormula(ctx, field, obj) + case "representation": + out.Values[i] = ec._SubstanceDefinitionStructure_representation(ctx, field, obj) + case "molecularFormulaByMoiety": + out.Values[i] = ec._SubstanceDefinitionStructure_molecularFormulaByMoiety(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -187997,6 +188861,9 @@ func (ec *executionContext) _SubstanceDefinitionStructureRepresentation(ctx cont out.Values[i] = graphql.MarshalString("SubstanceDefinitionStructureRepresentation") case "document": out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_document(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "extension": out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_extension(ctx, field, obj) case "format": @@ -188045,62 +188912,71 @@ func (ec *executionContext) _SubstanceDefinitionType(ctx context.Context, sel as switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceDefinitionType") - case "text": - out.Values[i] = ec._SubstanceDefinitionType_text(ctx, field, obj) - case "moiety": - out.Values[i] = ec._SubstanceDefinitionType_moiety(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._SubstanceDefinitionType_implicitRules(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._SubstanceDefinitionType_modifierExtension(ctx, field, obj) - case "characterization": - out.Values[i] = ec._SubstanceDefinitionType_characterization(ctx, field, obj) - case "supplier": - out.Values[i] = ec._SubstanceDefinitionType_supplier(ctx, field, obj) - case "note": - out.Values[i] = ec._SubstanceDefinitionType_note(ctx, field, obj) - case "description": - out.Values[i] = ec._SubstanceDefinitionType_description(ctx, field, obj) - case "structure": - out.Values[i] = ec._SubstanceDefinitionType_structure(ctx, field, obj) - case "id": - out.Values[i] = ec._SubstanceDefinitionType_id(ctx, field, obj) - case "language": - out.Values[i] = ec._SubstanceDefinitionType_language(ctx, field, obj) - case "contained": - out.Values[i] = ec._SubstanceDefinitionType_contained(ctx, field, obj) - case "domain": - out.Values[i] = ec._SubstanceDefinitionType_domain(ctx, field, obj) - case "extension": - out.Values[i] = ec._SubstanceDefinitionType_extension(ctx, field, obj) - case "identifier": - out.Values[i] = ec._SubstanceDefinitionType_identifier(ctx, field, obj) case "version": out.Values[i] = ec._SubstanceDefinitionType_version(ctx, field, obj) - case "relationship": - out.Values[i] = ec._SubstanceDefinitionType_relationship(ctx, field, obj) + case "extension": + out.Values[i] = ec._SubstanceDefinitionType_extension(ctx, field, obj) case "manufacturer": out.Values[i] = ec._SubstanceDefinitionType_manufacturer(ctx, field, obj) - case "grade": - out.Values[i] = ec._SubstanceDefinitionType_grade(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._SubstanceDefinitionType_resourceType(ctx, field, obj) - case "name": - out.Values[i] = ec._SubstanceDefinitionType_name(ctx, field, obj) - case "status": - out.Values[i] = ec._SubstanceDefinitionType_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "id": + out.Values[i] = ec._SubstanceDefinitionType_id(ctx, field, obj) case "meta": out.Values[i] = ec._SubstanceDefinitionType_meta(ctx, field, obj) - case "molecularWeight": - out.Values[i] = ec._SubstanceDefinitionType_molecularWeight(ctx, field, obj) - case "sourceMaterial": - out.Values[i] = ec._SubstanceDefinitionType_sourceMaterial(ctx, field, obj) case "classification": out.Values[i] = ec._SubstanceDefinitionType_classification(ctx, field, obj) case "code": out.Values[i] = ec._SubstanceDefinitionType_code(ctx, field, obj) + case "characterization": + out.Values[i] = ec._SubstanceDefinitionType_characterization(ctx, field, obj) + case "supplier": + out.Values[i] = ec._SubstanceDefinitionType_supplier(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resourceType": + out.Values[i] = ec._SubstanceDefinitionType_resourceType(ctx, field, obj) + case "sourceMaterial": + out.Values[i] = ec._SubstanceDefinitionType_sourceMaterial(ctx, field, obj) + case "contained": + out.Values[i] = ec._SubstanceDefinitionType_contained(ctx, field, obj) + case "status": + out.Values[i] = ec._SubstanceDefinitionType_status(ctx, field, obj) case "property": out.Values[i] = ec._SubstanceDefinitionType_property(ctx, field, obj) + case "language": + out.Values[i] = ec._SubstanceDefinitionType_language(ctx, field, obj) + case "name": + out.Values[i] = ec._SubstanceDefinitionType_name(ctx, field, obj) + case "structure": + out.Values[i] = ec._SubstanceDefinitionType_structure(ctx, field, obj) + case "description": + out.Values[i] = ec._SubstanceDefinitionType_description(ctx, field, obj) + case "text": + out.Values[i] = ec._SubstanceDefinitionType_text(ctx, field, obj) + case "molecularWeight": + out.Values[i] = ec._SubstanceDefinitionType_molecularWeight(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._SubstanceDefinitionType_implicitRules(ctx, field, obj) + case "identifier": + out.Values[i] = ec._SubstanceDefinitionType_identifier(ctx, field, obj) + case "relationship": + out.Values[i] = ec._SubstanceDefinitionType_relationship(ctx, field, obj) + case "domain": + out.Values[i] = ec._SubstanceDefinitionType_domain(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SubstanceDefinitionType_modifierExtension(ctx, field, obj) + case "moiety": + out.Values[i] = ec._SubstanceDefinitionType_moiety(ctx, field, obj) + case "note": + out.Values[i] = ec._SubstanceDefinitionType_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "grade": + out.Values[i] = ec._SubstanceDefinitionType_grade(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188135,8 +189011,15 @@ func (ec *executionContext) _SubstanceIngredient(ctx context.Context, sel ast.Se switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceIngredient") + case "resourceType": + out.Values[i] = ec._SubstanceIngredient_resourceType(ctx, field, obj) + case "substanceCodeableConcept": + out.Values[i] = ec._SubstanceIngredient_substanceCodeableConcept(ctx, field, obj) case "substanceReference": out.Values[i] = ec._SubstanceIngredient_substanceReference(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "extension": out.Values[i] = ec._SubstanceIngredient_extension(ctx, field, obj) case "id": @@ -188145,10 +189028,6 @@ func (ec *executionContext) _SubstanceIngredient(ctx context.Context, sel ast.Se out.Values[i] = ec._SubstanceIngredient_modifierExtension(ctx, field, obj) case "quantity": out.Values[i] = ec._SubstanceIngredient_quantity(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._SubstanceIngredient_resourceType(ctx, field, obj) - case "substanceCodeableConcept": - out.Values[i] = ec._SubstanceIngredient_substanceCodeableConcept(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188172,7 +189051,7 @@ func (ec *executionContext) _SubstanceIngredient(ctx context.Context, sel ast.Se return out } -var substanceTypeImplementors = []string{"SubstanceType", "SpecimenSubjectUnion", "ObservationSubjectUnion", "ResearchSubjectSubjectUnion", "DiagnosticReportSubjectUnion", "ResourceUnion"} +var substanceTypeImplementors = []string{"SubstanceType", "ResearchSubjectSubjectUnion", "SpecimenSubjectUnion", "DiagnosticReportSubjectUnion", "ObservationSubjectUnion", "ResourceUnion"} func (ec *executionContext) _SubstanceType(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, substanceTypeImplementors) @@ -188183,42 +189062,42 @@ func (ec *executionContext) _SubstanceType(ctx context.Context, sel ast.Selectio switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("SubstanceType") - case "id": - out.Values[i] = ec._SubstanceType_id(ctx, field, obj) - case "language": - out.Values[i] = ec._SubstanceType_language(ctx, field, obj) - case "ingredient": - out.Values[i] = ec._SubstanceType_ingredient(ctx, field, obj) - case "category": - out.Values[i] = ec._SubstanceType_category(ctx, field, obj) + case "status": + out.Values[i] = ec._SubstanceType_status(ctx, field, obj) + case "quantity": + out.Values[i] = ec._SubstanceType_quantity(ctx, field, obj) + case "text": + out.Values[i] = ec._SubstanceType_text(ctx, field, obj) case "identifier": out.Values[i] = ec._SubstanceType_identifier(ctx, field, obj) - case "contained": - out.Values[i] = ec._SubstanceType_contained(ctx, field, obj) + case "language": + out.Values[i] = ec._SubstanceType_language(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._SubstanceType_implicitRules(ctx, field, obj) case "resourceType": out.Values[i] = ec._SubstanceType_resourceType(ctx, field, obj) case "instance": out.Values[i] = ec._SubstanceType_instance(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._SubstanceType_implicitRules(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._SubstanceType_modifierExtension(ctx, field, obj) + case "category": + out.Values[i] = ec._SubstanceType_category(ctx, field, obj) case "expiry": out.Values[i] = ec._SubstanceType_expiry(ctx, field, obj) - case "description": - out.Values[i] = ec._SubstanceType_description(ctx, field, obj) - case "status": - out.Values[i] = ec._SubstanceType_status(ctx, field, obj) + case "ingredient": + out.Values[i] = ec._SubstanceType_ingredient(ctx, field, obj) case "meta": out.Values[i] = ec._SubstanceType_meta(ctx, field, obj) case "code": out.Values[i] = ec._SubstanceType_code(ctx, field, obj) + case "description": + out.Values[i] = ec._SubstanceType_description(ctx, field, obj) case "extension": out.Values[i] = ec._SubstanceType_extension(ctx, field, obj) - case "quantity": - out.Values[i] = ec._SubstanceType_quantity(ctx, field, obj) - case "text": - out.Values[i] = ec._SubstanceType_text(ctx, field, obj) + case "contained": + out.Values[i] = ec._SubstanceType_contained(ctx, field, obj) + case "id": + out.Values[i] = ec._SubstanceType_id(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188253,122 +189132,131 @@ func (ec *executionContext) _TaskInput(ctx context.Context, sel ast.SelectionSet switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("TaskInput") - case "valueAddress": - out.Values[i] = ec._TaskInput_valueAddress(ctx, field, obj) - case "valueUrl": - out.Values[i] = ec._TaskInput_valueUrl(ctx, field, obj) - case "valueDosage": - out.Values[i] = ec._TaskInput_valueDosage(ctx, field, obj) - case "valueRelatedArtifact": - out.Values[i] = ec._TaskInput_valueRelatedArtifact(ctx, field, obj) - case "valueDateTime": - out.Values[i] = ec._TaskInput_valueDateTime(ctx, field, obj) - case "valueExpression": - out.Values[i] = ec._TaskInput_valueExpression(ctx, field, obj) - case "valueCanonical": - out.Values[i] = ec._TaskInput_valueCanonical(ctx, field, obj) - case "valueContactPoint": - out.Values[i] = ec._TaskInput_valueContactPoint(ctx, field, obj) - case "valueUnsignedInt": - out.Values[i] = ec._TaskInput_valueUnsignedInt(ctx, field, obj) - case "valueInstant": - out.Values[i] = ec._TaskInput_valueInstant(ctx, field, obj) - case "valueMoney": - out.Values[i] = ec._TaskInput_valueMoney(ctx, field, obj) - case "valueParameterDefinition": - out.Values[i] = ec._TaskInput_valueParameterDefinition(ctx, field, obj) - case "valueUuid": - out.Values[i] = ec._TaskInput_valueUuid(ctx, field, obj) - case "valueAttachment": - out.Values[i] = ec._TaskInput_valueAttachment(ctx, field, obj) - case "valueUsageContext": - out.Values[i] = ec._TaskInput_valueUsageContext(ctx, field, obj) - case "valueTime": - out.Values[i] = ec._TaskInput_valueTime(ctx, field, obj) - case "valueUri": - out.Values[i] = ec._TaskInput_valueUri(ctx, field, obj) - case "valueSignature": - out.Values[i] = ec._TaskInput_valueSignature(ctx, field, obj) - case "valueQuantity": - out.Values[i] = ec._TaskInput_valueQuantity(ctx, field, obj) - case "valueContactDetail": - out.Values[i] = ec._TaskInput_valueContactDetail(ctx, field, obj) - case "valueMeta": - out.Values[i] = ec._TaskInput_valueMeta(ctx, field, obj) + case "valueBase64Binary": + out.Values[i] = ec._TaskInput_valueBase64Binary(ctx, field, obj) case "valueCode": out.Values[i] = ec._TaskInput_valueCode(ctx, field, obj) case "valueTriggerDefinition": out.Values[i] = ec._TaskInput_valueTriggerDefinition(ctx, field, obj) - case "valueOid": - out.Values[i] = ec._TaskInput_valueOid(ctx, field, obj) - case "valueInteger64": - out.Values[i] = ec._TaskInput_valueInteger64(ctx, field, obj) + case "valueUsageContext": + out.Values[i] = ec._TaskInput_valueUsageContext(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "valueDataRequirement": out.Values[i] = ec._TaskInput_valueDataRequirement(ctx, field, obj) - case "valueBoolean": - out.Values[i] = ec._TaskInput_valueBoolean(ctx, field, obj) - case "valueCoding": - out.Values[i] = ec._TaskInput_valueCoding(ctx, field, obj) - case "valueDecimal": - out.Values[i] = ec._TaskInput_valueDecimal(ctx, field, obj) - case "valueAnnotation": - out.Values[i] = ec._TaskInput_valueAnnotation(ctx, field, obj) - case "valueCount": - out.Values[i] = ec._TaskInput_valueCount(ctx, field, obj) - case "valueBase64Binary": - out.Values[i] = ec._TaskInput_valueBase64Binary(ctx, field, obj) + case "valueUuid": + out.Values[i] = ec._TaskInput_valueUuid(ctx, field, obj) + case "valueOid": + out.Values[i] = ec._TaskInput_valueOid(ctx, field, obj) + case "valueRatio": + out.Values[i] = ec._TaskInput_valueRatio(ctx, field, obj) + case "type": + out.Values[i] = ec._TaskInput_type(ctx, field, obj) case "valueCodeableReference": out.Values[i] = ec._TaskInput_valueCodeableReference(ctx, field, obj) - case "valueDistance": - out.Values[i] = ec._TaskInput_valueDistance(ctx, field, obj) - case "valueHumanName": - out.Values[i] = ec._TaskInput_valueHumanName(ctx, field, obj) case "valueId": out.Values[i] = ec._TaskInput_valueId(ctx, field, obj) + case "valueInstant": + out.Values[i] = ec._TaskInput_valueInstant(ctx, field, obj) + case "valueHumanName": + out.Values[i] = ec._TaskInput_valueHumanName(ctx, field, obj) + case "valueMoney": + out.Values[i] = ec._TaskInput_valueMoney(ctx, field, obj) + case "valueSignature": + out.Values[i] = ec._TaskInput_valueSignature(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "valueAvailability": + out.Values[i] = ec._TaskInput_valueAvailability(ctx, field, obj) + case "valueUnsignedInt": + out.Values[i] = ec._TaskInput_valueUnsignedInt(ctx, field, obj) + case "valueMarkdown": + out.Values[i] = ec._TaskInput_valueMarkdown(ctx, field, obj) + case "valueString": + out.Values[i] = ec._TaskInput_valueString(ctx, field, obj) + case "valueSampledData": + out.Values[i] = ec._TaskInput_valueSampledData(ctx, field, obj) + case "valueDistance": + out.Values[i] = ec._TaskInput_valueDistance(ctx, field, obj) + case "valueAge": + out.Values[i] = ec._TaskInput_valueAge(ctx, field, obj) + case "valueTime": + out.Values[i] = ec._TaskInput_valueTime(ctx, field, obj) + case "valueRange": + out.Values[i] = ec._TaskInput_valueRange(ctx, field, obj) + case "valueAnnotation": + out.Values[i] = ec._TaskInput_valueAnnotation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "valueUrl": + out.Values[i] = ec._TaskInput_valueUrl(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._TaskInput_modifierExtension(ctx, field, obj) + case "valueInteger64": + out.Values[i] = ec._TaskInput_valueInteger64(ctx, field, obj) + case "valueAttachment": + out.Values[i] = ec._TaskInput_valueAttachment(ctx, field, obj) + case "valueInteger": + out.Values[i] = ec._TaskInput_valueInteger(ctx, field, obj) + case "valueDosage": + out.Values[i] = ec._TaskInput_valueDosage(ctx, field, obj) + case "valueExpression": + out.Values[i] = ec._TaskInput_valueExpression(ctx, field, obj) + case "valueContactPoint": + out.Values[i] = ec._TaskInput_valueContactPoint(ctx, field, obj) + case "valueMeta": + out.Values[i] = ec._TaskInput_valueMeta(ctx, field, obj) case "resourceType": out.Values[i] = ec._TaskInput_resourceType(ctx, field, obj) - case "valueRatio": - out.Values[i] = ec._TaskInput_valueRatio(ctx, field, obj) + case "valueDate": + out.Values[i] = ec._TaskInput_valueDate(ctx, field, obj) + case "valueDateTime": + out.Values[i] = ec._TaskInput_valueDateTime(ctx, field, obj) case "valueExtendedContactDetail": out.Values[i] = ec._TaskInput_valueExtendedContactDetail(ctx, field, obj) case "valueRatioRange": out.Values[i] = ec._TaskInput_valueRatioRange(ctx, field, obj) - case "valueMarkdown": - out.Values[i] = ec._TaskInput_valueMarkdown(ctx, field, obj) - case "type": - out.Values[i] = ec._TaskInput_type(ctx, field, obj) + case "valueAddress": + out.Values[i] = ec._TaskInput_valueAddress(ctx, field, obj) case "id": out.Values[i] = ec._TaskInput_id(ctx, field, obj) - case "valueSampledData": - out.Values[i] = ec._TaskInput_valueSampledData(ctx, field, obj) - case "extension": - out.Values[i] = ec._TaskInput_extension(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._TaskInput_modifierExtension(ctx, field, obj) + case "valueQuantity": + out.Values[i] = ec._TaskInput_valueQuantity(ctx, field, obj) case "valueTiming": out.Values[i] = ec._TaskInput_valueTiming(ctx, field, obj) - case "valueIdentifier": - out.Values[i] = ec._TaskInput_valueIdentifier(ctx, field, obj) case "valuePositiveInt": out.Values[i] = ec._TaskInput_valuePositiveInt(ctx, field, obj) - case "valueAvailability": - out.Values[i] = ec._TaskInput_valueAvailability(ctx, field, obj) + case "valuePeriod": + out.Values[i] = ec._TaskInput_valuePeriod(ctx, field, obj) + case "valueCount": + out.Values[i] = ec._TaskInput_valueCount(ctx, field, obj) case "valueDuration": out.Values[i] = ec._TaskInput_valueDuration(ctx, field, obj) - case "valueString": - out.Values[i] = ec._TaskInput_valueString(ctx, field, obj) + case "valueCanonical": + out.Values[i] = ec._TaskInput_valueCanonical(ctx, field, obj) + case "valueParameterDefinition": + out.Values[i] = ec._TaskInput_valueParameterDefinition(ctx, field, obj) + case "valueRelatedArtifact": + out.Values[i] = ec._TaskInput_valueRelatedArtifact(ctx, field, obj) + case "extension": + out.Values[i] = ec._TaskInput_extension(ctx, field, obj) + case "valueContactDetail": + out.Values[i] = ec._TaskInput_valueContactDetail(ctx, field, obj) + case "valueUri": + out.Values[i] = ec._TaskInput_valueUri(ctx, field, obj) + case "valueDecimal": + out.Values[i] = ec._TaskInput_valueDecimal(ctx, field, obj) + case "valueBoolean": + out.Values[i] = ec._TaskInput_valueBoolean(ctx, field, obj) + case "valueIdentifier": + out.Values[i] = ec._TaskInput_valueIdentifier(ctx, field, obj) case "valueCodeableConcept": out.Values[i] = ec._TaskInput_valueCodeableConcept(ctx, field, obj) - case "valueAge": - out.Values[i] = ec._TaskInput_valueAge(ctx, field, obj) - case "valueDate": - out.Values[i] = ec._TaskInput_valueDate(ctx, field, obj) - case "valuePeriod": - out.Values[i] = ec._TaskInput_valuePeriod(ctx, field, obj) - case "valueInteger": - out.Values[i] = ec._TaskInput_valueInteger(ctx, field, obj) - case "valueRange": - out.Values[i] = ec._TaskInput_valueRange(ctx, field, obj) + case "valueCoding": + out.Values[i] = ec._TaskInput_valueCoding(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188403,122 +189291,131 @@ func (ec *executionContext) _TaskOutput(ctx context.Context, sel ast.SelectionSe switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("TaskOutput") - case "valuePeriod": - out.Values[i] = ec._TaskOutput_valuePeriod(ctx, field, obj) - case "id": - out.Values[i] = ec._TaskOutput_id(ctx, field, obj) - case "valueString": - out.Values[i] = ec._TaskOutput_valueString(ctx, field, obj) - case "valueOid": - out.Values[i] = ec._TaskOutput_valueOid(ctx, field, obj) - case "valueRatio": - out.Values[i] = ec._TaskOutput_valueRatio(ctx, field, obj) - case "valueAge": - out.Values[i] = ec._TaskOutput_valueAge(ctx, field, obj) - case "valueSampledData": - out.Values[i] = ec._TaskOutput_valueSampledData(ctx, field, obj) - case "valueBase64Binary": - out.Values[i] = ec._TaskOutput_valueBase64Binary(ctx, field, obj) - case "valueMeta": - out.Values[i] = ec._TaskOutput_valueMeta(ctx, field, obj) - case "valueSignature": - out.Values[i] = ec._TaskOutput_valueSignature(ctx, field, obj) - case "valueTime": - out.Values[i] = ec._TaskOutput_valueTime(ctx, field, obj) - case "valueDistance": - out.Values[i] = ec._TaskOutput_valueDistance(ctx, field, obj) - case "valueDate": - out.Values[i] = ec._TaskOutput_valueDate(ctx, field, obj) - case "valueTiming": - out.Values[i] = ec._TaskOutput_valueTiming(ctx, field, obj) - case "valueAnnotation": - out.Values[i] = ec._TaskOutput_valueAnnotation(ctx, field, obj) - case "valueCanonical": - out.Values[i] = ec._TaskOutput_valueCanonical(ctx, field, obj) - case "valueMarkdown": - out.Values[i] = ec._TaskOutput_valueMarkdown(ctx, field, obj) - case "valueUrl": - out.Values[i] = ec._TaskOutput_valueUrl(ctx, field, obj) - case "valueContactDetail": - out.Values[i] = ec._TaskOutput_valueContactDetail(ctx, field, obj) - case "valueCodeableConcept": - out.Values[i] = ec._TaskOutput_valueCodeableConcept(ctx, field, obj) - case "valueUuid": - out.Values[i] = ec._TaskOutput_valueUuid(ctx, field, obj) - case "valueInstant": - out.Values[i] = ec._TaskOutput_valueInstant(ctx, field, obj) - case "valueExpression": - out.Values[i] = ec._TaskOutput_valueExpression(ctx, field, obj) - case "valueUnsignedInt": - out.Values[i] = ec._TaskOutput_valueUnsignedInt(ctx, field, obj) case "type": out.Values[i] = ec._TaskOutput_type(ctx, field, obj) - case "valueParameterDefinition": - out.Values[i] = ec._TaskOutput_valueParameterDefinition(ctx, field, obj) - case "valueMoney": - out.Values[i] = ec._TaskOutput_valueMoney(ctx, field, obj) - case "extension": - out.Values[i] = ec._TaskOutput_extension(ctx, field, obj) - case "valueExtendedContactDetail": - out.Values[i] = ec._TaskOutput_valueExtendedContactDetail(ctx, field, obj) - case "valueCode": - out.Values[i] = ec._TaskOutput_valueCode(ctx, field, obj) case "valueIdentifier": out.Values[i] = ec._TaskOutput_valueIdentifier(ctx, field, obj) - case "valueHumanName": - out.Values[i] = ec._TaskOutput_valueHumanName(ctx, field, obj) - case "valueDuration": - out.Values[i] = ec._TaskOutput_valueDuration(ctx, field, obj) - case "valueInteger64": - out.Values[i] = ec._TaskOutput_valueInteger64(ctx, field, obj) + case "valueRange": + out.Values[i] = ec._TaskOutput_valueRange(ctx, field, obj) case "valueUri": out.Values[i] = ec._TaskOutput_valueUri(ctx, field, obj) - case "valueContactPoint": - out.Values[i] = ec._TaskOutput_valueContactPoint(ctx, field, obj) + case "valueCodeableConcept": + out.Values[i] = ec._TaskOutput_valueCodeableConcept(ctx, field, obj) + case "valueContactDetail": + out.Values[i] = ec._TaskOutput_valueContactDetail(ctx, field, obj) + case "valueInstant": + out.Values[i] = ec._TaskOutput_valueInstant(ctx, field, obj) + case "valueDuration": + out.Values[i] = ec._TaskOutput_valueDuration(ctx, field, obj) + case "id": + out.Values[i] = ec._TaskOutput_id(ctx, field, obj) + case "valueTime": + out.Values[i] = ec._TaskOutput_valueTime(ctx, field, obj) + case "valueMoney": + out.Values[i] = ec._TaskOutput_valueMoney(ctx, field, obj) + case "valueRatioRange": + out.Values[i] = ec._TaskOutput_valueRatioRange(ctx, field, obj) + case "valueInteger": + out.Values[i] = ec._TaskOutput_valueInteger(ctx, field, obj) + case "valueDate": + out.Values[i] = ec._TaskOutput_valueDate(ctx, field, obj) case "valueCount": out.Values[i] = ec._TaskOutput_valueCount(ctx, field, obj) case "valueCodeableReference": out.Values[i] = ec._TaskOutput_valueCodeableReference(ctx, field, obj) - case "valueRelatedArtifact": - out.Values[i] = ec._TaskOutput_valueRelatedArtifact(ctx, field, obj) - case "valueId": - out.Values[i] = ec._TaskOutput_valueId(ctx, field, obj) - case "valueDosage": - out.Values[i] = ec._TaskOutput_valueDosage(ctx, field, obj) case "valueBoolean": out.Values[i] = ec._TaskOutput_valueBoolean(ctx, field, obj) - case "valueAttachment": - out.Values[i] = ec._TaskOutput_valueAttachment(ctx, field, obj) - case "valueTriggerDefinition": - out.Values[i] = ec._TaskOutput_valueTriggerDefinition(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._TaskOutput_resourceType(ctx, field, obj) case "valuePositiveInt": out.Values[i] = ec._TaskOutput_valuePositiveInt(ctx, field, obj) - case "valueRange": - out.Values[i] = ec._TaskOutput_valueRange(ctx, field, obj) - case "valueAddress": - out.Values[i] = ec._TaskOutput_valueAddress(ctx, field, obj) - case "valueInteger": - out.Values[i] = ec._TaskOutput_valueInteger(ctx, field, obj) - case "valueAvailability": - out.Values[i] = ec._TaskOutput_valueAvailability(ctx, field, obj) - case "valueUsageContext": - out.Values[i] = ec._TaskOutput_valueUsageContext(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._TaskOutput_resourceType(ctx, field, obj) case "valueDateTime": out.Values[i] = ec._TaskOutput_valueDateTime(ctx, field, obj) + case "valueUnsignedInt": + out.Values[i] = ec._TaskOutput_valueUnsignedInt(ctx, field, obj) + case "valueAddress": + out.Values[i] = ec._TaskOutput_valueAddress(ctx, field, obj) + case "valueTriggerDefinition": + out.Values[i] = ec._TaskOutput_valueTriggerDefinition(ctx, field, obj) case "valueDataRequirement": out.Values[i] = ec._TaskOutput_valueDataRequirement(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._TaskOutput_modifierExtension(ctx, field, obj) - case "valueCoding": - out.Values[i] = ec._TaskOutput_valueCoding(ctx, field, obj) - case "valueRatioRange": - out.Values[i] = ec._TaskOutput_valueRatioRange(ctx, field, obj) + case "valueParameterDefinition": + out.Values[i] = ec._TaskOutput_valueParameterDefinition(ctx, field, obj) + case "valueMeta": + out.Values[i] = ec._TaskOutput_valueMeta(ctx, field, obj) + case "valueCode": + out.Values[i] = ec._TaskOutput_valueCode(ctx, field, obj) + case "valueExpression": + out.Values[i] = ec._TaskOutput_valueExpression(ctx, field, obj) + case "valueSampledData": + out.Values[i] = ec._TaskOutput_valueSampledData(ctx, field, obj) + case "valueMarkdown": + out.Values[i] = ec._TaskOutput_valueMarkdown(ctx, field, obj) case "valueDecimal": out.Values[i] = ec._TaskOutput_valueDecimal(ctx, field, obj) + case "valueUrl": + out.Values[i] = ec._TaskOutput_valueUrl(ctx, field, obj) + case "valueHumanName": + out.Values[i] = ec._TaskOutput_valueHumanName(ctx, field, obj) + case "valueRelatedArtifact": + out.Values[i] = ec._TaskOutput_valueRelatedArtifact(ctx, field, obj) + case "valueInteger64": + out.Values[i] = ec._TaskOutput_valueInteger64(ctx, field, obj) + case "valueAnnotation": + out.Values[i] = ec._TaskOutput_valueAnnotation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "valueUsageContext": + out.Values[i] = ec._TaskOutput_valueUsageContext(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "valueDosage": + out.Values[i] = ec._TaskOutput_valueDosage(ctx, field, obj) + case "valueDistance": + out.Values[i] = ec._TaskOutput_valueDistance(ctx, field, obj) + case "valueAge": + out.Values[i] = ec._TaskOutput_valueAge(ctx, field, obj) + case "valueRatio": + out.Values[i] = ec._TaskOutput_valueRatio(ctx, field, obj) + case "valueOid": + out.Values[i] = ec._TaskOutput_valueOid(ctx, field, obj) + case "valueExtendedContactDetail": + out.Values[i] = ec._TaskOutput_valueExtendedContactDetail(ctx, field, obj) + case "valueBase64Binary": + out.Values[i] = ec._TaskOutput_valueBase64Binary(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._TaskOutput_modifierExtension(ctx, field, obj) + case "valueContactPoint": + out.Values[i] = ec._TaskOutput_valueContactPoint(ctx, field, obj) + case "valueSignature": + out.Values[i] = ec._TaskOutput_valueSignature(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "valueAvailability": + out.Values[i] = ec._TaskOutput_valueAvailability(ctx, field, obj) + case "valuePeriod": + out.Values[i] = ec._TaskOutput_valuePeriod(ctx, field, obj) case "valueQuantity": out.Values[i] = ec._TaskOutput_valueQuantity(ctx, field, obj) + case "valueCoding": + out.Values[i] = ec._TaskOutput_valueCoding(ctx, field, obj) + case "valueTiming": + out.Values[i] = ec._TaskOutput_valueTiming(ctx, field, obj) + case "valueCanonical": + out.Values[i] = ec._TaskOutput_valueCanonical(ctx, field, obj) + case "valueAttachment": + out.Values[i] = ec._TaskOutput_valueAttachment(ctx, field, obj) + case "extension": + out.Values[i] = ec._TaskOutput_extension(ctx, field, obj) + case "valueString": + out.Values[i] = ec._TaskOutput_valueString(ctx, field, obj) + case "valueUuid": + out.Values[i] = ec._TaskOutput_valueUuid(ctx, field, obj) + case "valueId": + out.Values[i] = ec._TaskOutput_valueId(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188553,18 +189450,21 @@ func (ec *executionContext) _TaskPerformer(ctx context.Context, sel ast.Selectio switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("TaskPerformer") - case "id": - out.Values[i] = ec._TaskPerformer_id(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._TaskPerformer_modifierExtension(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._TaskPerformer_resourceType(ctx, field, obj) case "actor": out.Values[i] = ec._TaskPerformer_actor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "extension": out.Values[i] = ec._TaskPerformer_extension(ctx, field, obj) case "function": out.Values[i] = ec._TaskPerformer_function(ctx, field, obj) + case "id": + out.Values[i] = ec._TaskPerformer_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._TaskPerformer_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._TaskPerformer_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188599,6 +189499,8 @@ func (ec *executionContext) _TaskRestriction(ctx context.Context, sel ast.Select switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("TaskRestriction") + case "repetitions": + out.Values[i] = ec._TaskRestriction_repetitions(ctx, field, obj) case "resourceType": out.Values[i] = ec._TaskRestriction_resourceType(ctx, field, obj) case "extension": @@ -188611,8 +189513,9 @@ func (ec *executionContext) _TaskRestriction(ctx context.Context, sel ast.Select out.Values[i] = ec._TaskRestriction_period(ctx, field, obj) case "recipient": out.Values[i] = ec._TaskRestriction_recipient(ctx, field, obj) - case "repetitions": - out.Values[i] = ec._TaskRestriction_repetitions(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188647,80 +189550,104 @@ func (ec *executionContext) _TaskType(ctx context.Context, sel ast.SelectionSet, switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("TaskType") - case "input": - out.Values[i] = ec._TaskType_input(ctx, field, obj) - case "basedOn": - out.Values[i] = ec._TaskType_basedOn(ctx, field, obj) - case "output": - out.Values[i] = ec._TaskType_output(ctx, field, obj) - case "lastModified": - out.Values[i] = ec._TaskType_lastModified(ctx, field, obj) - case "authoredOn": - out.Values[i] = ec._TaskType_authoredOn(ctx, field, obj) - case "modifierExtension": - out.Values[i] = ec._TaskType_modifierExtension(ctx, field, obj) - case "requester": - out.Values[i] = ec._TaskType_requester(ctx, field, obj) + case "instantiatesUri": + out.Values[i] = ec._TaskType_instantiatesUri(ctx, field, obj) + case "owner": + out.Values[i] = ec._TaskType_owner(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "id": + out.Values[i] = ec._TaskType_id(ctx, field, obj) case "intent": out.Values[i] = ec._TaskType_intent(ctx, field, obj) - case "partOf": - out.Values[i] = ec._TaskType_partOf(ctx, field, obj) - case "businessStatus": - out.Values[i] = ec._TaskType_businessStatus(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._TaskType_resourceType(ctx, field, obj) case "code": out.Values[i] = ec._TaskType_code(ctx, field, obj) - case "instantiatesUri": - out.Values[i] = ec._TaskType_instantiatesUri(ctx, field, obj) - case "instantiatesCanonical": - out.Values[i] = ec._TaskType_instantiatesCanonical(ctx, field, obj) - case "reason": - out.Values[i] = ec._TaskType_reason(ctx, field, obj) - case "contained": - out.Values[i] = ec._TaskType_contained(ctx, field, obj) case "requestedPeriod": out.Values[i] = ec._TaskType_requestedPeriod(ctx, field, obj) - case "groupIdentifier": - out.Values[i] = ec._TaskType_groupIdentifier(ctx, field, obj) - case "priority": - out.Values[i] = ec._TaskType_priority(ctx, field, obj) - case "text": - out.Values[i] = ec._TaskType_text(ctx, field, obj) - case "identifier": - out.Values[i] = ec._TaskType_identifier(ctx, field, obj) - case "description": - out.Values[i] = ec._TaskType_description(ctx, field, obj) - case "performer": - out.Values[i] = ec._TaskType_performer(ctx, field, obj) - case "id": - out.Values[i] = ec._TaskType_id(ctx, field, obj) - case "implicitRules": - out.Values[i] = ec._TaskType_implicitRules(ctx, field, obj) - case "meta": - out.Values[i] = ec._TaskType_meta(ctx, field, obj) case "restriction": out.Values[i] = ec._TaskType_restriction(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "authoredOn": + out.Values[i] = ec._TaskType_authoredOn(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._TaskType_modifierExtension(ctx, field, obj) case "note": out.Values[i] = ec._TaskType_note(ctx, field, obj) - case "executionPeriod": - out.Values[i] = ec._TaskType_executionPeriod(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "doNotPerform": + out.Values[i] = ec._TaskType_doNotPerform(ctx, field, obj) + case "text": + out.Values[i] = ec._TaskType_text(ctx, field, obj) + case "identifier": + out.Values[i] = ec._TaskType_identifier(ctx, field, obj) case "language": out.Values[i] = ec._TaskType_language(ctx, field, obj) - case "requestedPerformer": - out.Values[i] = ec._TaskType_requestedPerformer(ctx, field, obj) - case "status": - out.Values[i] = ec._TaskType_status(ctx, field, obj) + case "output": + out.Values[i] = ec._TaskType_output(ctx, field, obj) case "extension": out.Values[i] = ec._TaskType_extension(ctx, field, obj) - case "focus": - out.Values[i] = ec._TaskType_focus(ctx, field, obj) - case "owner": - out.Values[i] = ec._TaskType_owner(ctx, field, obj) + case "instantiatesCanonical": + out.Values[i] = ec._TaskType_instantiatesCanonical(ctx, field, obj) + case "status": + out.Values[i] = ec._TaskType_status(ctx, field, obj) + case "businessStatus": + out.Values[i] = ec._TaskType_businessStatus(ctx, field, obj) + case "executionPeriod": + out.Values[i] = ec._TaskType_executionPeriod(ctx, field, obj) + case "meta": + out.Values[i] = ec._TaskType_meta(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._TaskType_implicitRules(ctx, field, obj) + case "basedOn": + out.Values[i] = ec._TaskType_basedOn(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "partOf": + out.Values[i] = ec._TaskType_partOf(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "statusReason": out.Values[i] = ec._TaskType_statusReason(ctx, field, obj) - case "doNotPerform": - out.Values[i] = ec._TaskType_doNotPerform(ctx, field, obj) + case "contained": + out.Values[i] = ec._TaskType_contained(ctx, field, obj) + case "performer": + out.Values[i] = ec._TaskType_performer(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "input": + out.Values[i] = ec._TaskType_input(ctx, field, obj) + case "requester": + out.Values[i] = ec._TaskType_requester(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec._TaskType_description(ctx, field, obj) + case "groupIdentifier": + out.Values[i] = ec._TaskType_groupIdentifier(ctx, field, obj) + case "focus": + out.Values[i] = ec._TaskType_focus(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "priority": + out.Values[i] = ec._TaskType_priority(ctx, field, obj) + case "lastModified": + out.Values[i] = ec._TaskType_lastModified(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._TaskType_resourceType(ctx, field, obj) + case "requestedPerformer": + out.Values[i] = ec._TaskType_requestedPerformer(ctx, field, obj) + case "reason": + out.Values[i] = ec._TaskType_reason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188755,10 +189682,6 @@ func (ec *executionContext) _Timing(ctx context.Context, sel ast.SelectionSet, o switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Timing") - case "repeat": - out.Values[i] = ec._Timing_repeat(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._Timing_resourceType(ctx, field, obj) case "code": out.Values[i] = ec._Timing_code(ctx, field, obj) case "event": @@ -188769,6 +189692,10 @@ func (ec *executionContext) _Timing(ctx context.Context, sel ast.SelectionSet, o out.Values[i] = ec._Timing_id(ctx, field, obj) case "modifierExtension": out.Values[i] = ec._Timing_modifierExtension(ctx, field, obj) + case "repeat": + out.Values[i] = ec._Timing_repeat(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Timing_resourceType(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188803,46 +189730,46 @@ func (ec *executionContext) _TimingRepeat(ctx context.Context, sel ast.Selection switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("TimingRepeat") + case "resourceType": + out.Values[i] = ec._TimingRepeat_resourceType(ctx, field, obj) case "boundsRange": out.Values[i] = ec._TimingRepeat_boundsRange(ctx, field, obj) case "countMax": out.Values[i] = ec._TimingRepeat_countMax(ctx, field, obj) + case "boundsDuration": + out.Values[i] = ec._TimingRepeat_boundsDuration(ctx, field, obj) case "durationUnit": out.Values[i] = ec._TimingRepeat_durationUnit(ctx, field, obj) - case "duration": - out.Values[i] = ec._TimingRepeat_duration(ctx, field, obj) - case "periodUnit": - out.Values[i] = ec._TimingRepeat_periodUnit(ctx, field, obj) - case "resourceType": - out.Values[i] = ec._TimingRepeat_resourceType(ctx, field, obj) case "count": out.Values[i] = ec._TimingRepeat_count(ctx, field, obj) - case "extension": - out.Values[i] = ec._TimingRepeat_extension(ctx, field, obj) + case "frequencyMax": + out.Values[i] = ec._TimingRepeat_frequencyMax(ctx, field, obj) + case "periodMax": + out.Values[i] = ec._TimingRepeat_periodMax(ctx, field, obj) case "when": out.Values[i] = ec._TimingRepeat_when(ctx, field, obj) - case "id": - out.Values[i] = ec._TimingRepeat_id(ctx, field, obj) case "durationMax": out.Values[i] = ec._TimingRepeat_durationMax(ctx, field, obj) + case "id": + out.Values[i] = ec._TimingRepeat_id(ctx, field, obj) + case "timeOfDay": + out.Values[i] = ec._TimingRepeat_timeOfDay(ctx, field, obj) case "period": out.Values[i] = ec._TimingRepeat_period(ctx, field, obj) - case "boundsDuration": - out.Values[i] = ec._TimingRepeat_boundsDuration(ctx, field, obj) - case "frequencyMax": - out.Values[i] = ec._TimingRepeat_frequencyMax(ctx, field, obj) - case "frequency": - out.Values[i] = ec._TimingRepeat_frequency(ctx, field, obj) - case "periodMax": - out.Values[i] = ec._TimingRepeat_periodMax(ctx, field, obj) - case "boundsPeriod": - out.Values[i] = ec._TimingRepeat_boundsPeriod(ctx, field, obj) case "dayOfWeek": out.Values[i] = ec._TimingRepeat_dayOfWeek(ctx, field, obj) - case "timeOfDay": - out.Values[i] = ec._TimingRepeat_timeOfDay(ctx, field, obj) case "offset": out.Values[i] = ec._TimingRepeat_offset(ctx, field, obj) + case "frequency": + out.Values[i] = ec._TimingRepeat_frequency(ctx, field, obj) + case "duration": + out.Values[i] = ec._TimingRepeat_duration(ctx, field, obj) + case "boundsPeriod": + out.Values[i] = ec._TimingRepeat_boundsPeriod(ctx, field, obj) + case "extension": + out.Values[i] = ec._TimingRepeat_extension(ctx, field, obj) + case "periodUnit": + out.Values[i] = ec._TimingRepeat_periodUnit(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188877,30 +189804,30 @@ func (ec *executionContext) _TriggerDefinition(ctx context.Context, sel ast.Sele switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("TriggerDefinition") - case "condition": - out.Values[i] = ec._TriggerDefinition_condition(ctx, field, obj) - case "name": - out.Values[i] = ec._TriggerDefinition_name(ctx, field, obj) case "data": out.Values[i] = ec._TriggerDefinition_data(ctx, field, obj) - case "extension": - out.Values[i] = ec._TriggerDefinition_extension(ctx, field, obj) case "id": out.Values[i] = ec._TriggerDefinition_id(ctx, field, obj) - case "timingTiming": - out.Values[i] = ec._TriggerDefinition_timingTiming(ctx, field, obj) + case "name": + out.Values[i] = ec._TriggerDefinition_name(ctx, field, obj) case "code": out.Values[i] = ec._TriggerDefinition_code(ctx, field, obj) + case "condition": + out.Values[i] = ec._TriggerDefinition_condition(ctx, field, obj) + case "timingTiming": + out.Values[i] = ec._TriggerDefinition_timingTiming(ctx, field, obj) + case "subscriptionTopic": + out.Values[i] = ec._TriggerDefinition_subscriptionTopic(ctx, field, obj) + case "timingDate": + out.Values[i] = ec._TriggerDefinition_timingDate(ctx, field, obj) case "timingDateTime": out.Values[i] = ec._TriggerDefinition_timingDateTime(ctx, field, obj) - case "type": - out.Values[i] = ec._TriggerDefinition_type(ctx, field, obj) + case "extension": + out.Values[i] = ec._TriggerDefinition_extension(ctx, field, obj) case "resourceType": out.Values[i] = ec._TriggerDefinition_resourceType(ctx, field, obj) - case "timingDate": - out.Values[i] = ec._TriggerDefinition_timingDate(ctx, field, obj) - case "subscriptionTopic": - out.Values[i] = ec._TriggerDefinition_subscriptionTopic(ctx, field, obj) + case "type": + out.Values[i] = ec._TriggerDefinition_type(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188935,8 +189862,6 @@ func (ec *executionContext) _UsageContext(ctx context.Context, sel ast.Selection switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("UsageContext") - case "extension": - out.Values[i] = ec._UsageContext_extension(ctx, field, obj) case "id": out.Values[i] = ec._UsageContext_id(ctx, field, obj) case "resourceType": @@ -188949,8 +189874,13 @@ func (ec *executionContext) _UsageContext(ctx context.Context, sel ast.Selection out.Values[i] = ec._UsageContext_valueRange(ctx, field, obj) case "valueReference": out.Values[i] = ec._UsageContext_valueReference(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "code": out.Values[i] = ec._UsageContext_code(ctx, field, obj) + case "extension": + out.Values[i] = ec._UsageContext_extension(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -188985,28 +189915,28 @@ func (ec *executionContext) _VirtualServiceDetail(ctx context.Context, sel ast.S switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("VirtualServiceDetail") + case "maxParticipants": + out.Values[i] = ec._VirtualServiceDetail_maxParticipants(ctx, field, obj) case "resourceType": out.Values[i] = ec._VirtualServiceDetail_resourceType(ctx, field, obj) case "additionalInfo": out.Values[i] = ec._VirtualServiceDetail_additionalInfo(ctx, field, obj) - case "addressContactPoint": - out.Values[i] = ec._VirtualServiceDetail_addressContactPoint(ctx, field, obj) - case "addressExtendedContactDetail": - out.Values[i] = ec._VirtualServiceDetail_addressExtendedContactDetail(ctx, field, obj) - case "sessionKey": - out.Values[i] = ec._VirtualServiceDetail_sessionKey(ctx, field, obj) case "extension": out.Values[i] = ec._VirtualServiceDetail_extension(ctx, field, obj) - case "id": - out.Values[i] = ec._VirtualServiceDetail_id(ctx, field, obj) + case "sessionKey": + out.Values[i] = ec._VirtualServiceDetail_sessionKey(ctx, field, obj) + case "addressContactPoint": + out.Values[i] = ec._VirtualServiceDetail_addressContactPoint(ctx, field, obj) case "addressString": out.Values[i] = ec._VirtualServiceDetail_addressString(ctx, field, obj) + case "addressExtendedContactDetail": + out.Values[i] = ec._VirtualServiceDetail_addressExtendedContactDetail(ctx, field, obj) case "addressUrl": out.Values[i] = ec._VirtualServiceDetail_addressUrl(ctx, field, obj) + case "id": + out.Values[i] = ec._VirtualServiceDetail_id(ctx, field, obj) case "channelType": out.Values[i] = ec._VirtualServiceDetail_channelType(ctx, field, obj) - case "maxParticipants": - out.Values[i] = ec._VirtualServiceDetail_maxParticipants(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -189209,5210 +190139,168 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection out.Invalids++ } case "description": - out.Values[i] = ec.___InputValue_description(ctx, field, obj) - case "type": - out.Values[i] = ec.___InputValue_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "defaultValue": - out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __SchemaImplementors = []string{"__Schema"} - -func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Schema") - case "description": - out.Values[i] = ec.___Schema_description(ctx, field, obj) - case "types": - out.Values[i] = ec.___Schema_types(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "queryType": - out.Values[i] = ec.___Schema_queryType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "mutationType": - out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) - case "subscriptionType": - out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) - case "directives": - out.Values[i] = ec.___Schema_directives(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __TypeImplementors = []string{"__Type"} - -func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Type") - case "kind": - out.Values[i] = ec.___Type_kind(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec.___Type_name(ctx, field, obj) - case "description": - out.Values[i] = ec.___Type_description(ctx, field, obj) - case "fields": - out.Values[i] = ec.___Type_fields(ctx, field, obj) - case "interfaces": - out.Values[i] = ec.___Type_interfaces(ctx, field, obj) - case "possibleTypes": - out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) - case "enumValues": - out.Values[i] = ec.___Type_enumValues(ctx, field, obj) - case "inputFields": - out.Values[i] = ec.___Type_inputFields(ctx, field, obj) - case "ofType": - out.Values[i] = ec.___Type_ofType(ctx, field, obj) - case "specifiedByURL": - out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -// endregion **************************** object.gotpl **************************** - -// region ***************************** type.gotpl ***************************** - -func (ec *executionContext) marshalNBodyStructureType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx context.Context, sel ast.SelectionSet, v model.BodyStructureType) graphql.Marshaler { - return ec._BodyStructureType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNBodyStructureType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.BodyStructureType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNBodyStructureType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNConditionType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionType(ctx context.Context, sel ast.SelectionSet, v model.ConditionType) graphql.Marshaler { - return ec._ConditionType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNConditionType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ConditionType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNConditionType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDiagnosticReportType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportType(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportType) graphql.Marshaler { - return ec._DiagnosticReportType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDiagnosticReportType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDiagnosticReportType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDocumentReferenceType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceType) graphql.Marshaler { - return ec._DocumentReferenceType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentReferenceType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DocumentReferenceType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDocumentReferenceType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNFamilyMemberHistoryType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryType(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryType) graphql.Marshaler { - return ec._FamilyMemberHistoryType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFamilyMemberHistoryType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.FamilyMemberHistoryType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNFamilyMemberHistoryType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNGroupType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx context.Context, sel ast.SelectionSet, v model.GroupType) graphql.Marshaler { - return ec._GroupType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GroupType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGroupType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNImagingStudyType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyType(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudyType) graphql.Marshaler { - return ec._ImagingStudyType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNImagingStudyType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ImagingStudyType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNImagingStudyType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMedicationAdministrationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationType(ctx context.Context, sel ast.SelectionSet, v model.MedicationAdministrationType) graphql.Marshaler { - return ec._MedicationAdministrationType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMedicationAdministrationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MedicationAdministrationType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMedicationAdministrationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMedicationRequestType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestType) graphql.Marshaler { - return ec._MedicationRequestType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMedicationRequestType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMedicationRequestType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMedicationStatementType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementType(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementType) graphql.Marshaler { - return ec._MedicationStatementType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMedicationStatementType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MedicationStatementType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMedicationStatementType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMedicationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationType(ctx context.Context, sel ast.SelectionSet, v model.MedicationType) graphql.Marshaler { - return ec._MedicationType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMedicationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MedicationType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMedicationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNObservationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx context.Context, sel ast.SelectionSet, v model.ObservationType) graphql.Marshaler { - return ec._ObservationType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNObservationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ObservationType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNObservationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNOrganizationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx context.Context, sel ast.SelectionSet, v model.OrganizationType) graphql.Marshaler { - return ec._OrganizationType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganizationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.OrganizationType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNOrganizationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPatientType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx context.Context, sel ast.SelectionSet, v model.PatientType) graphql.Marshaler { - return ec._PatientType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPatientType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.PatientType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPatientType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPractitionerRoleType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerRoleType(ctx context.Context, sel ast.SelectionSet, v model.PractitionerRoleType) graphql.Marshaler { - return ec._PractitionerRoleType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPractitionerRoleType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerRoleTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.PractitionerRoleType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPractitionerRoleType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerRoleType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPractitionerType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx context.Context, sel ast.SelectionSet, v model.PractitionerType) graphql.Marshaler { - return ec._PractitionerType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPractitionerType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.PractitionerType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPractitionerType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNProcedureType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx context.Context, sel ast.SelectionSet, v model.ProcedureType) graphql.Marshaler { - return ec._ProcedureType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProcedureType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProcedureType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNProcedureType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNResearchStudyType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyType) graphql.Marshaler { - return ec._ResearchStudyType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNResearchStudyType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ResearchStudyType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNResearchStudyType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNResearchSubjectType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectType(ctx context.Context, sel ast.SelectionSet, v model.ResearchSubjectType) graphql.Marshaler { - return ec._ResearchSubjectType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNResearchSubjectType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ResearchSubjectType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNResearchSubjectType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNSpecimenType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx context.Context, sel ast.SelectionSet, v model.SpecimenType) graphql.Marshaler { - return ec._SpecimenType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSpecimenType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SpecimenType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNSpecimenType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNSubstanceDefinitionType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx context.Context, sel ast.SelectionSet, v model.SubstanceDefinitionType) graphql.Marshaler { - return ec._SubstanceDefinitionType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubstanceDefinitionType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SubstanceDefinitionType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNSubstanceDefinitionType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNSubstanceType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx context.Context, sel ast.SelectionSet, v model.SubstanceType) graphql.Marshaler { - return ec._SubstanceType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubstanceType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SubstanceType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNSubstanceType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { - return ec.___Directive(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { - return ec.___EnumValue(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { - return ec.___Field(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { - return ec.___InputValue(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { - return ec.___Type(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec.___Type(ctx, sel, v) -} - -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx context.Context, v interface{}) (*model.Accessibility, error) { - if v == nil { - return nil, nil - } - var res = new(model.Accessibility) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx context.Context, sel ast.SelectionSet, v *model.Accessibility) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) marshalOAddress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx context.Context, sel ast.SelectionSet, v []*model.Address) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx context.Context, sel ast.SelectionSet, v *model.Address) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Address(ctx, sel, v) -} - -func (ec *executionContext) marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx context.Context, sel ast.SelectionSet, v *model.Age) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Age(ctx, sel, v) -} - -func (ec *executionContext) marshalOAnnotation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v []*model.Annotation) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOAnnotation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotation(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOAnnotation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v *model.Annotation) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Annotation(ctx, sel, v) -} - -func (ec *executionContext) marshalOAnnotationAuthorReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotationAuthorReferenceUnion(ctx context.Context, sel ast.SelectionSet, v model.AnnotationAuthorReferenceUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AnnotationAuthorReferenceUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOAnnotationAuthorReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotationAuthorReferenceUnion(ctx context.Context, sel ast.SelectionSet, v []model.AnnotationAuthorReferenceUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOAnnotationAuthorReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotationAuthorReferenceUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx context.Context, sel ast.SelectionSet, v []*model.Attachment) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx context.Context, sel ast.SelectionSet, v *model.Attachment) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Attachment(ctx, sel, v) -} - -func (ec *executionContext) marshalOAvailability2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx context.Context, sel ast.SelectionSet, v []*model.Availability) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx context.Context, sel ast.SelectionSet, v *model.Availability) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Availability(ctx, sel, v) -} - -func (ec *executionContext) marshalOAvailabilityAvailableTime2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityAvailableTime(ctx context.Context, sel ast.SelectionSet, v []*model.AvailabilityAvailableTime) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOAvailabilityAvailableTime2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityAvailableTime(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOAvailabilityAvailableTime2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityAvailableTime(ctx context.Context, sel ast.SelectionSet, v *model.AvailabilityAvailableTime) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AvailabilityAvailableTime(ctx, sel, v) -} - -func (ec *executionContext) marshalOAvailabilityNotAvailableTime2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityNotAvailableTime(ctx context.Context, sel ast.SelectionSet, v []*model.AvailabilityNotAvailableTime) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOAvailabilityNotAvailableTime2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityNotAvailableTime(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOAvailabilityNotAvailableTime2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityNotAvailableTime(ctx context.Context, sel ast.SelectionSet, v *model.AvailabilityNotAvailableTime) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AvailabilityNotAvailableTime(ctx, sel, v) -} - -func (ec *executionContext) marshalOBodyStructureIncludedStructure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx context.Context, sel ast.SelectionSet, v []*model.BodyStructureIncludedStructure) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOBodyStructureIncludedStructure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOBodyStructureIncludedStructure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx context.Context, sel ast.SelectionSet, v *model.BodyStructureIncludedStructure) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._BodyStructureIncludedStructure(ctx, sel, v) -} - -func (ec *executionContext) marshalOBodyStructureIncludedStructureBodyLandmarkOrientation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientation(ctx context.Context, sel ast.SelectionSet, v []*model.BodyStructureIncludedStructureBodyLandmarkOrientation) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOBodyStructureIncludedStructureBodyLandmarkOrientation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientation(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOBodyStructureIncludedStructureBodyLandmarkOrientation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientation(ctx context.Context, sel ast.SelectionSet, v *model.BodyStructureIncludedStructureBodyLandmarkOrientation) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._BodyStructureIncludedStructureBodyLandmarkOrientation(ctx, sel, v) -} - -func (ec *executionContext) marshalOBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx context.Context, sel ast.SelectionSet, v []*model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx context.Context, sel ast.SelectionSet, v *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx, sel, v) -} - -func (ec *executionContext) marshalOBodyStructureType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx context.Context, sel ast.SelectionSet, v []*model.BodyStructureType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOBodyStructureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOBodyStructureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx context.Context, sel ast.SelectionSet, v *model.BodyStructureType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._BodyStructureType(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - return res -} - -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalBoolean(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalBoolean(*v) - return res -} - -func (ec *executionContext) marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx context.Context, sel ast.SelectionSet, v []*model.CodeableConcept) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx context.Context, sel ast.SelectionSet, v *model.CodeableConcept) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CodeableConcept(ctx, sel, v) -} - -func (ec *executionContext) marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx context.Context, sel ast.SelectionSet, v []*model.CodeableReference) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx context.Context, sel ast.SelectionSet, v *model.CodeableReference) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CodeableReference(ctx, sel, v) -} - -func (ec *executionContext) marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx context.Context, sel ast.SelectionSet, v []*model.Coding) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx context.Context, sel ast.SelectionSet, v *model.Coding) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Coding(ctx, sel, v) -} - -func (ec *executionContext) marshalOConditionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ConditionNoteUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOConditionNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.ConditionNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOConditionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionNoteUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOConditionParticipantActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantActorUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionParticipantActorUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ConditionParticipantActorUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOConditionParticipantActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantActorUnion(ctx context.Context, sel ast.SelectionSet, v []model.ConditionParticipantActorUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOConditionParticipantActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantActorUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOConditionParticipantUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionParticipantUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ConditionParticipantUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOConditionParticipantUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantUnion(ctx context.Context, sel ast.SelectionSet, v []model.ConditionParticipantUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOConditionParticipantUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOConditionStageAssessmentUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageAssessmentUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionStageAssessmentUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ConditionStageAssessmentUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOConditionStageAssessmentUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageAssessmentUnion(ctx context.Context, sel ast.SelectionSet, v []model.ConditionStageAssessmentUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOConditionStageAssessmentUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageAssessmentUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOConditionStageUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionStageUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ConditionStageUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOConditionStageUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageUnion(ctx context.Context, sel ast.SelectionSet, v []model.ConditionStageUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOConditionStageUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOConditionSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionSubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ConditionSubjectUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOConditionSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionSubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.ConditionSubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOConditionSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionSubjectUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactDetail(ctx context.Context, sel ast.SelectionSet, v *model.ContactDetail) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ContactDetail(ctx, sel, v) -} - -func (ec *executionContext) marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx context.Context, sel ast.SelectionSet, v []*model.ContactPoint) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx context.Context, sel ast.SelectionSet, v *model.ContactPoint) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ContactPoint(ctx, sel, v) -} - -func (ec *executionContext) marshalOCount2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCount(ctx context.Context, sel ast.SelectionSet, v *model.Count) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Count(ctx, sel, v) -} - -func (ec *executionContext) marshalODataRequirement2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirement) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirement) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DataRequirement(ctx, sel, v) -} - -func (ec *executionContext) marshalODataRequirementCodeFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementCodeFilter(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirementCodeFilter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODataRequirementCodeFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementCodeFilter(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODataRequirementCodeFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementCodeFilter(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirementCodeFilter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DataRequirementCodeFilter(ctx, sel, v) -} - -func (ec *executionContext) marshalODataRequirementDateFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementDateFilter(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirementDateFilter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODataRequirementDateFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementDateFilter(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODataRequirementDateFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementDateFilter(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirementDateFilter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DataRequirementDateFilter(ctx, sel, v) -} - -func (ec *executionContext) marshalODataRequirementSort2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementSort(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirementSort) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODataRequirementSort2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementSort(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODataRequirementSort2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementSort(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirementSort) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DataRequirementSort(ctx, sel, v) -} - -func (ec *executionContext) marshalODataRequirementValueFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementValueFilter(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirementValueFilter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODataRequirementValueFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementValueFilter(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODataRequirementValueFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementValueFilter(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirementValueFilter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DataRequirementValueFilter(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportBasedOnUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiagnosticReportBasedOnUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportBasedOnUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODiagnosticReportBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportBasedOnUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODiagnosticReportMedia2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportMedia(ctx context.Context, sel ast.SelectionSet, v []*model.DiagnosticReportMedia) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODiagnosticReportMedia2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportMedia(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODiagnosticReportMedia2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportMedia(ctx context.Context, sel ast.SelectionSet, v *model.DiagnosticReportMedia) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiagnosticReportMedia(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiagnosticReportNoteUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODiagnosticReportNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportNoteUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODiagnosticReportPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportPerformerUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiagnosticReportPerformerUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportPerformerUnion(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportPerformerUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODiagnosticReportPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportPerformerUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODiagnosticReportResultsInterpreterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportResultsInterpreterUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportResultsInterpreterUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiagnosticReportResultsInterpreterUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportResultsInterpreterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportResultsInterpreterUnion(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportResultsInterpreterUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODiagnosticReportResultsInterpreterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportResultsInterpreterUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODiagnosticReportStudyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportStudyUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportStudyUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiagnosticReportStudyUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportStudyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportStudyUnion(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportStudyUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODiagnosticReportStudyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportStudyUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODiagnosticReportSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportSubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiagnosticReportSubjectUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportSubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODiagnosticReportSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSubjectUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODiagnosticReportSupportingInfoReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoReferenceUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportSupportingInfoReferenceUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiagnosticReportSupportingInfoReferenceUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportSupportingInfoReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoReferenceUnion(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportSupportingInfoReferenceUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODiagnosticReportSupportingInfoReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoReferenceUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODiagnosticReportSupportingInfoUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportSupportingInfoUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiagnosticReportSupportingInfoUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODiagnosticReportSupportingInfoUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoUnion(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportSupportingInfoUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODiagnosticReportSupportingInfoUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx context.Context, sel ast.SelectionSet, v *model.Distance) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Distance(ctx, sel, v) -} - -func (ec *executionContext) marshalODocumentReferenceAttesterPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterPartyUnion(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceAttesterPartyUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentReferenceAttesterPartyUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODocumentReferenceAttesterPartyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterPartyUnion(ctx context.Context, sel ast.SelectionSet, v []model.DocumentReferenceAttesterPartyUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODocumentReferenceAttesterPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterPartyUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODocumentReferenceAttesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterUnion(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceAttesterUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentReferenceAttesterUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODocumentReferenceAttesterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterUnion(ctx context.Context, sel ast.SelectionSet, v []model.DocumentReferenceAttesterUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODocumentReferenceAttesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODocumentReferenceAuthorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAuthorUnion(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceAuthorUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentReferenceAuthorUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODocumentReferenceAuthorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAuthorUnion(ctx context.Context, sel ast.SelectionSet, v []model.DocumentReferenceAuthorUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODocumentReferenceAuthorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAuthorUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODocumentReferenceBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceBasedOnUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentReferenceBasedOnUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalODocumentReferenceBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v []model.DocumentReferenceBasedOnUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODocumentReferenceBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceBasedOnUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODocumentReferenceContent2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContent(ctx context.Context, sel ast.SelectionSet, v []*model.DocumentReferenceContent) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODocumentReferenceContent2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContent(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODocumentReferenceContent2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContent(ctx context.Context, sel ast.SelectionSet, v *model.DocumentReferenceContent) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentReferenceContent(ctx, sel, v) -} - -func (ec *executionContext) marshalODocumentReferenceContentProfile2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContentProfile(ctx context.Context, sel ast.SelectionSet, v []*model.DocumentReferenceContentProfile) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODocumentReferenceContentProfile2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContentProfile(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODocumentReferenceContentProfile2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContentProfile(ctx context.Context, sel ast.SelectionSet, v *model.DocumentReferenceContentProfile) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentReferenceContentProfile(ctx, sel, v) -} - -func (ec *executionContext) marshalODocumentReferenceRelatesTo2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceRelatesTo(ctx context.Context, sel ast.SelectionSet, v []*model.DocumentReferenceRelatesTo) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODocumentReferenceRelatesTo2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceRelatesTo(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODocumentReferenceRelatesTo2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceRelatesTo(ctx context.Context, sel ast.SelectionSet, v *model.DocumentReferenceRelatesTo) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentReferenceRelatesTo(ctx, sel, v) -} - -func (ec *executionContext) marshalODocumentReferenceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx context.Context, sel ast.SelectionSet, v []*model.DocumentReferenceType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx context.Context, sel ast.SelectionSet, v *model.DocumentReferenceType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentReferenceType(ctx, sel, v) -} - -func (ec *executionContext) marshalODosage2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx context.Context, sel ast.SelectionSet, v []*model.Dosage) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx context.Context, sel ast.SelectionSet, v *model.Dosage) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Dosage(ctx, sel, v) -} - -func (ec *executionContext) marshalODosageDoseAndRate2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosageDoseAndRate(ctx context.Context, sel ast.SelectionSet, v []*model.DosageDoseAndRate) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalODosageDoseAndRate2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosageDoseAndRate(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalODosageDoseAndRate2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosageDoseAndRate(ctx context.Context, sel ast.SelectionSet, v *model.DosageDoseAndRate) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DosageDoseAndRate(ctx, sel, v) -} - -func (ec *executionContext) marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx context.Context, sel ast.SelectionSet, v *model.Duration) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Duration(ctx, sel, v) -} - -func (ec *executionContext) marshalOEncounterAdmission2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterAdmission(ctx context.Context, sel ast.SelectionSet, v *model.EncounterAdmission) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EncounterAdmission(ctx, sel, v) -} - -func (ec *executionContext) marshalOEncounterDiagnosis2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterDiagnosis(ctx context.Context, sel ast.SelectionSet, v []*model.EncounterDiagnosis) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOEncounterDiagnosis2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterDiagnosis(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOEncounterDiagnosis2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterDiagnosis(ctx context.Context, sel ast.SelectionSet, v *model.EncounterDiagnosis) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EncounterDiagnosis(ctx, sel, v) -} - -func (ec *executionContext) marshalOEncounterLocation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterLocation(ctx context.Context, sel ast.SelectionSet, v []*model.EncounterLocation) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOEncounterLocation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterLocation(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOEncounterLocation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterLocation(ctx context.Context, sel ast.SelectionSet, v *model.EncounterLocation) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EncounterLocation(ctx, sel, v) -} - -func (ec *executionContext) marshalOEncounterParticipant2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterParticipant(ctx context.Context, sel ast.SelectionSet, v []*model.EncounterParticipant) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOEncounterParticipant2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterParticipant(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOEncounterParticipant2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterParticipant(ctx context.Context, sel ast.SelectionSet, v *model.EncounterParticipant) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EncounterParticipant(ctx, sel, v) -} - -func (ec *executionContext) marshalOEncounterReason2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterReason(ctx context.Context, sel ast.SelectionSet, v []*model.EncounterReason) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOEncounterReason2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterReason(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOEncounterReason2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterReason(ctx context.Context, sel ast.SelectionSet, v *model.EncounterReason) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EncounterReason(ctx, sel, v) -} - -func (ec *executionContext) marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx context.Context, sel ast.SelectionSet, v *model.Expression) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Expression(ctx, sel, v) -} - -func (ec *executionContext) marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx context.Context, sel ast.SelectionSet, v []*model.ExtendedContactDetail) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx context.Context, sel ast.SelectionSet, v *model.ExtendedContactDetail) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ExtendedContactDetail(ctx, sel, v) -} - -func (ec *executionContext) marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx context.Context, sel ast.SelectionSet, v []*model.Extension) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOExtension2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOExtension2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx context.Context, sel ast.SelectionSet, v *model.Extension) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Extension(ctx, sel, v) -} - -func (ec *executionContext) marshalOExtensionValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v model.ExtensionValueAnnotationUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ExtensionValueAnnotationUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOExtensionValueAnnotationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v []model.ExtensionValueAnnotationUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOExtensionValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueAnnotationUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOExtensionValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, v model.ExtensionValueSignatureUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ExtensionValueSignatureUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOExtensionValueSignatureUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, v []model.ExtensionValueSignatureUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOExtensionValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueSignatureUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOExtensionValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, v model.ExtensionValueUsageContextUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ExtensionValueUsageContextUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOExtensionValueUsageContextUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, v []model.ExtensionValueUsageContextUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOExtensionValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueUsageContextUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOFamilyMemberHistoryCondition2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryCondition(ctx context.Context, sel ast.SelectionSet, v []*model.FamilyMemberHistoryCondition) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOFamilyMemberHistoryCondition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryCondition(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOFamilyMemberHistoryCondition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryCondition(ctx context.Context, sel ast.SelectionSet, v *model.FamilyMemberHistoryCondition) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._FamilyMemberHistoryCondition(ctx, sel, v) -} - -func (ec *executionContext) marshalOFamilyMemberHistoryConditionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryConditionNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryConditionNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._FamilyMemberHistoryConditionNoteUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOFamilyMemberHistoryConditionNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryConditionNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.FamilyMemberHistoryConditionNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOFamilyMemberHistoryConditionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryConditionNoteUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOFamilyMemberHistoryNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._FamilyMemberHistoryNoteUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOFamilyMemberHistoryNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.FamilyMemberHistoryNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOFamilyMemberHistoryNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryNoteUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOFamilyMemberHistoryParticipantActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantActorUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryParticipantActorUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._FamilyMemberHistoryParticipantActorUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOFamilyMemberHistoryParticipantActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantActorUnion(ctx context.Context, sel ast.SelectionSet, v []model.FamilyMemberHistoryParticipantActorUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOFamilyMemberHistoryParticipantActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantActorUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOFamilyMemberHistoryParticipantUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryParticipantUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._FamilyMemberHistoryParticipantUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOFamilyMemberHistoryParticipantUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantUnion(ctx context.Context, sel ast.SelectionSet, v []model.FamilyMemberHistoryParticipantUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOFamilyMemberHistoryParticipantUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOFamilyMemberHistoryProcedure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedure(ctx context.Context, sel ast.SelectionSet, v []*model.FamilyMemberHistoryProcedure) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOFamilyMemberHistoryProcedure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedure(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOFamilyMemberHistoryProcedure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedure(ctx context.Context, sel ast.SelectionSet, v *model.FamilyMemberHistoryProcedure) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._FamilyMemberHistoryProcedure(ctx, sel, v) -} - -func (ec *executionContext) marshalOFamilyMemberHistoryProcedureNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedureNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryProcedureNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._FamilyMemberHistoryProcedureNoteUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOFamilyMemberHistoryProcedureNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedureNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.FamilyMemberHistoryProcedureNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOFamilyMemberHistoryProcedureNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedureNoteUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx context.Context, v interface{}) (*model.Format, error) { - if v == nil { - return nil, nil - } - var res = new(model.Format) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx context.Context, sel ast.SelectionSet, v *model.Format) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) marshalOGroupCharacteristic2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupCharacteristic(ctx context.Context, sel ast.SelectionSet, v []*model.GroupCharacteristic) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOGroupCharacteristic2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupCharacteristic(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOGroupCharacteristic2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupCharacteristic(ctx context.Context, sel ast.SelectionSet, v *model.GroupCharacteristic) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._GroupCharacteristic(ctx, sel, v) -} - -func (ec *executionContext) marshalOGroupManagingEntityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupManagingEntityUnion(ctx context.Context, sel ast.SelectionSet, v model.GroupManagingEntityUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._GroupManagingEntityUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOGroupManagingEntityUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupManagingEntityUnion(ctx context.Context, sel ast.SelectionSet, v []model.GroupManagingEntityUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOGroupManagingEntityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupManagingEntityUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOGroupMemberEntityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberEntityUnion(ctx context.Context, sel ast.SelectionSet, v model.GroupMemberEntityUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._GroupMemberEntityUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOGroupMemberEntityUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberEntityUnion(ctx context.Context, sel ast.SelectionSet, v []model.GroupMemberEntityUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOGroupMemberEntityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberEntityUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOGroupMemberUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberUnion(ctx context.Context, sel ast.SelectionSet, v model.GroupMemberUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._GroupMemberUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOGroupMemberUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberUnion(ctx context.Context, sel ast.SelectionSet, v []model.GroupMemberUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOGroupMemberUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOGroupType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx context.Context, sel ast.SelectionSet, v []*model.GroupType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOGroupType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOGroupType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx context.Context, sel ast.SelectionSet, v *model.GroupType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._GroupType(ctx, sel, v) -} - -func (ec *executionContext) marshalOHumanName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx context.Context, sel ast.SelectionSet, v []*model.HumanName) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx context.Context, sel ast.SelectionSet, v *model.HumanName) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._HumanName(ctx, sel, v) -} - -func (ec *executionContext) marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx context.Context, sel ast.SelectionSet, v []*model.Identifier) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx context.Context, sel ast.SelectionSet, v *model.Identifier) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Identifier(ctx, sel, v) -} - -func (ec *executionContext) marshalOImagingStudyBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudyBasedOnUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ImagingStudyBasedOnUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOImagingStudyBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v []model.ImagingStudyBasedOnUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOImagingStudyBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyBasedOnUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOImagingStudyNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudyNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ImagingStudyNoteUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOImagingStudyNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.ImagingStudyNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOImagingStudyNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyNoteUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOImagingStudyReferrerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyReferrerUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudyReferrerUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ImagingStudyReferrerUnion(ctx, sel, v) -} - -func (ec *executionContext) marshalOImagingStudyReferrerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyReferrerUnion(ctx context.Context, sel ast.SelectionSet, v []model.ImagingStudyReferrerUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOImagingStudyReferrerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyReferrerUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOImagingStudySeries2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeries(ctx context.Context, sel ast.SelectionSet, v []*model.ImagingStudySeries) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOImagingStudySeries2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeries(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOImagingStudySeries2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeries(ctx context.Context, sel ast.SelectionSet, v *model.ImagingStudySeries) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ImagingStudySeries(ctx, sel, v) -} - -func (ec *executionContext) marshalOImagingStudySeriesInstance2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesInstance(ctx context.Context, sel ast.SelectionSet, v []*model.ImagingStudySeriesInstance) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() + out.Values[i] = ec.___InputValue_description(ctx, field, obj) + case "type": + out.Values[i] = ec.___InputValue_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - ret[i] = ec.marshalOImagingStudySeriesInstance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesInstance(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + case "defaultValue": + out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) } - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOImagingStudySeriesInstance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesInstance(ctx context.Context, sel ast.SelectionSet, v *model.ImagingStudySeriesInstance) graphql.Marshaler { - if v == nil { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } - return ec._ImagingStudySeriesInstance(ctx, sel, v) -} -func (ec *executionContext) marshalOImagingStudySeriesPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerActorUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudySeriesPerformerActorUnion) graphql.Marshaler { - if v == nil { - return graphql.Null + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) } - return ec._ImagingStudySeriesPerformerActorUnion(ctx, sel, v) + + return out } -func (ec *executionContext) marshalOImagingStudySeriesPerformerActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerActorUnion(ctx context.Context, sel ast.SelectionSet, v []model.ImagingStudySeriesPerformerActorUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() +var __SchemaImplementors = []string{"__Schema"} + +func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Schema") + case "description": + out.Values[i] = ec.___Schema_description(ctx, field, obj) + case "types": + out.Values[i] = ec.___Schema_types(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - ret[i] = ec.marshalOImagingStudySeriesPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerActorUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + case "queryType": + out.Values[i] = ec.___Schema_queryType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "mutationType": + out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) + case "subscriptionType": + out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) + case "directives": + out.Values[i] = ec.___Schema_directives(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) } - } - wg.Wait() + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - return ret -} + atomic.AddInt32(&ec.deferred, int32(len(deferred))) -func (ec *executionContext) marshalOImagingStudySeriesPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudySeriesPerformerUnion) graphql.Marshaler { - if v == nil { - return graphql.Null + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) } - return ec._ImagingStudySeriesPerformerUnion(ctx, sel, v) + + return out } -func (ec *executionContext) marshalOImagingStudySeriesPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerUnion(ctx context.Context, sel ast.SelectionSet, v []model.ImagingStudySeriesPerformerUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() +var __TypeImplementors = []string{"__Type"} + +func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Type") + case "kind": + out.Values[i] = ec.___Type_kind(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - ret[i] = ec.marshalOImagingStudySeriesPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + case "name": + out.Values[i] = ec.___Type_name(ctx, field, obj) + case "description": + out.Values[i] = ec.___Type_description(ctx, field, obj) + case "fields": + out.Values[i] = ec.___Type_fields(ctx, field, obj) + case "interfaces": + out.Values[i] = ec.___Type_interfaces(ctx, field, obj) + case "possibleTypes": + out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) + case "enumValues": + out.Values[i] = ec.___Type_enumValues(ctx, field, obj) + case "inputFields": + out.Values[i] = ec.___Type_inputFields(ctx, field, obj) + case "ofType": + out.Values[i] = ec.___Type_ofType(ctx, field, obj) + case "specifiedByURL": + out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) } - wg.Wait() - return ret + return out } -func (ec *executionContext) marshalOImagingStudySubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudySubjectUnion) graphql.Marshaler { +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNAnnotationAuthorReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotationAuthorReferenceUnion(ctx context.Context, sel ast.SelectionSet, v model.AnnotationAuthorReferenceUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ImagingStudySubjectUnion(ctx, sel, v) + return ec._AnnotationAuthorReferenceUnion(ctx, sel, v) } -func (ec *executionContext) marshalOImagingStudySubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.ImagingStudySubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalNBodyStructureType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx context.Context, sel ast.SelectionSet, v model.BodyStructureType) graphql.Marshaler { + return ec._BodyStructureType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNBodyStructureType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.BodyStructureType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -194436,7 +190324,7 @@ func (ec *executionContext) marshalOImagingStudySubjectUnion2ᚕgithubᚗcomᚋb if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOImagingStudySubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySubjectUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNBodyStructureType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -194447,157 +190335,105 @@ func (ec *executionContext) marshalOImagingStudySubjectUnion2ᚕgithubᚗcomᚋb } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOImmunizationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx context.Context, sel ast.SelectionSet, v []*model.ImmunizationPerformer) graphql.Marshaler { +func (ec *executionContext) marshalNBodyStructureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx context.Context, sel ast.SelectionSet, v *model.BodyStructureType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOImmunizationPerformer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } + return ec._BodyStructureType(ctx, sel, v) +} - } - wg.Wait() +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { + res, err := graphql.UnmarshalBoolean(v) + return res, graphql.ErrorOnPath(ctx, err) +} - return ret +func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { + res := graphql.MarshalBoolean(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res } -func (ec *executionContext) marshalOImmunizationPerformer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx context.Context, sel ast.SelectionSet, v *model.ImmunizationPerformer) graphql.Marshaler { +func (ec *executionContext) marshalNConditionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ImmunizationPerformer(ctx, sel, v) + return ec._ConditionNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOImmunizationProgramEligibility2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProgramEligibility(ctx context.Context, sel ast.SelectionSet, v []*model.ImmunizationProgramEligibility) graphql.Marshaler { +func (ec *executionContext) marshalNConditionParticipantActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantActorUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionParticipantActorUnion) graphql.Marshaler { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOImmunizationProgramEligibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProgramEligibility(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - + return graphql.Null } - wg.Wait() - - return ret + return ec._ConditionParticipantActorUnion(ctx, sel, v) } -func (ec *executionContext) marshalOImmunizationProgramEligibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProgramEligibility(ctx context.Context, sel ast.SelectionSet, v *model.ImmunizationProgramEligibility) graphql.Marshaler { +func (ec *executionContext) marshalNConditionParticipantUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionParticipantUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionParticipantUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ImmunizationProgramEligibility(ctx, sel, v) + return ec._ConditionParticipantUnion(ctx, sel, v) } -func (ec *executionContext) marshalOImmunizationProtocolApplied2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProtocolApplied(ctx context.Context, sel ast.SelectionSet, v []*model.ImmunizationProtocolApplied) graphql.Marshaler { +func (ec *executionContext) marshalNConditionStageAssessmentUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageAssessmentUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionStageAssessmentUnion) graphql.Marshaler { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOImmunizationProtocolApplied2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProtocolApplied(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - + return graphql.Null } - wg.Wait() - - return ret + return ec._ConditionStageAssessmentUnion(ctx, sel, v) } -func (ec *executionContext) marshalOImmunizationProtocolApplied2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProtocolApplied(ctx context.Context, sel ast.SelectionSet, v *model.ImmunizationProtocolApplied) graphql.Marshaler { +func (ec *executionContext) marshalNConditionStageUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionStageUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ImmunizationProtocolApplied(ctx, sel, v) + return ec._ConditionStageUnion(ctx, sel, v) } -func (ec *executionContext) marshalOImmunizationReaction2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx context.Context, sel ast.SelectionSet, v []*model.ImmunizationReaction) graphql.Marshaler { +func (ec *executionContext) marshalNConditionSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ConditionSubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._ConditionSubjectUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNConditionType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionType(ctx context.Context, sel ast.SelectionSet, v model.ConditionType) graphql.Marshaler { + return ec._ConditionType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNConditionType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ConditionType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -194621,7 +190457,7 @@ func (ec *executionContext) marshalOImmunizationReaction2ᚕᚖgithubᚗcomᚋbm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOImmunizationReaction2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx, sel, v[i]) + ret[i] = ec.marshalNConditionType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -194632,73 +190468,100 @@ func (ec *executionContext) marshalOImmunizationReaction2ᚕᚖgithubᚗcomᚋbm } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOImmunizationReaction2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx context.Context, sel ast.SelectionSet, v *model.ImmunizationReaction) graphql.Marshaler { +func (ec *executionContext) marshalNDiagnosticReportBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportBasedOnUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ImmunizationReaction(ctx, sel, v) + return ec._DiagnosticReportBasedOnUnion(ctx, sel, v) } -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) marshalNDiagnosticReportNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportNoteUnion) graphql.Marshaler { if v == nil { - return nil, nil + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - res, err := graphql.UnmarshalInt(v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._DiagnosticReportNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { +func (ec *executionContext) marshalNDiagnosticReportPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportPerformerUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - res := graphql.MarshalInt(*v) - return res + return ec._DiagnosticReportPerformerUnion(ctx, sel, v) } -func (ec *executionContext) unmarshalOJSON2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) marshalNDiagnosticReportResultsInterpreterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportResultsInterpreterUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportResultsInterpreterUnion) graphql.Marshaler { if v == nil { - return nil, nil + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - res, err := graphql.UnmarshalString(v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._DiagnosticReportResultsInterpreterUnion(ctx, sel, v) } -func (ec *executionContext) marshalOJSON2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { +func (ec *executionContext) marshalNDiagnosticReportStudyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportStudyUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportStudyUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - res := graphql.MarshalString(*v) - return res + return ec._DiagnosticReportStudyUnion(ctx, sel, v) } -func (ec *executionContext) marshalOLocationPosition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐLocationPosition(ctx context.Context, sel ast.SelectionSet, v *model.LocationPosition) graphql.Marshaler { +func (ec *executionContext) marshalNDiagnosticReportSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportSubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._LocationPosition(ctx, sel, v) + return ec._DiagnosticReportSubjectUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationAdministrationDosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationDosage(ctx context.Context, sel ast.SelectionSet, v *model.MedicationAdministrationDosage) graphql.Marshaler { +func (ec *executionContext) marshalNDiagnosticReportSupportingInfoReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoReferenceUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportSupportingInfoReferenceUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationAdministrationDosage(ctx, sel, v) + return ec._DiagnosticReportSupportingInfoReferenceUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationAdministrationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationAdministrationNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalNDiagnosticReportSupportingInfoUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoUnion(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportSupportingInfoUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationAdministrationNoteUnion(ctx, sel, v) + return ec._DiagnosticReportSupportingInfoUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationAdministrationNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationAdministrationNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalNDiagnosticReportType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportType(ctx context.Context, sel ast.SelectionSet, v model.DiagnosticReportType) graphql.Marshaler { + return ec._DiagnosticReportType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNDiagnosticReportType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DiagnosticReportType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -194722,7 +190585,7 @@ func (ec *executionContext) marshalOMedicationAdministrationNoteUnion2ᚕgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOMedicationAdministrationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationNoteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNDiagnosticReportType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -194733,116 +190596,60 @@ func (ec *executionContext) marshalOMedicationAdministrationNoteUnion2ᚕgithub } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOMedicationAdministrationPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPartOfUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationAdministrationPartOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalNDocumentReferenceAttesterPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterPartyUnion(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceAttesterPartyUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationAdministrationPartOfUnion(ctx, sel, v) + return ec._DocumentReferenceAttesterPartyUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationAdministrationPartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPartOfUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationAdministrationPartOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalNDocumentReferenceAttesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterUnion(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceAttesterUnion) graphql.Marshaler { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationAdministrationPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPartOfUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - + return graphql.Null } - wg.Wait() - - return ret + return ec._DocumentReferenceAttesterUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationAdministrationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPerformer(ctx context.Context, sel ast.SelectionSet, v []*model.MedicationAdministrationPerformer) graphql.Marshaler { +func (ec *executionContext) marshalNDocumentReferenceAuthorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAuthorUnion(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceAuthorUnion) graphql.Marshaler { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationAdministrationPerformer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPerformer(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - + return graphql.Null } - wg.Wait() - - return ret + return ec._DocumentReferenceAuthorUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationAdministrationPerformer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPerformer(ctx context.Context, sel ast.SelectionSet, v *model.MedicationAdministrationPerformer) graphql.Marshaler { +func (ec *executionContext) marshalNDocumentReferenceBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceBasedOnUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationAdministrationPerformer(ctx, sel, v) + return ec._DocumentReferenceBasedOnUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationAdministrationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationAdministrationSubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._MedicationAdministrationSubjectUnion(ctx, sel, v) +func (ec *executionContext) marshalNDocumentReferenceType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx context.Context, sel ast.SelectionSet, v model.DocumentReferenceType) graphql.Marshaler { + return ec._DocumentReferenceType(ctx, sel, &v) } -func (ec *executionContext) marshalOMedicationAdministrationSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationSubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationAdministrationSubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalNDocumentReferenceType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DocumentReferenceType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -194866,7 +190673,7 @@ func (ec *executionContext) marshalOMedicationAdministrationSubjectUnion2ᚕgith if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOMedicationAdministrationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationSubjectUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNDocumentReferenceType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -194877,130 +190684,110 @@ func (ec *executionContext) marshalOMedicationAdministrationSubjectUnion2ᚕgith } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOMedicationBatch2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationBatch(ctx context.Context, sel ast.SelectionSet, v *model.MedicationBatch) graphql.Marshaler { +func (ec *executionContext) marshalNDocumentReferenceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceType(ctx context.Context, sel ast.SelectionSet, v *model.DocumentReferenceType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationBatch(ctx, sel, v) + return ec._DocumentReferenceType(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationIngredient(ctx context.Context, sel ast.SelectionSet, v []*model.MedicationIngredient) graphql.Marshaler { +func (ec *executionContext) marshalNExtensionValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v model.ExtensionValueAnnotationUnion) graphql.Marshaler { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationIngredient2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationIngredient(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - + return graphql.Null } - wg.Wait() - - return ret + return ec._ExtensionValueAnnotationUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationIngredient2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationIngredient(ctx context.Context, sel ast.SelectionSet, v *model.MedicationIngredient) graphql.Marshaler { +func (ec *executionContext) marshalNExtensionValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, v model.ExtensionValueSignatureUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationIngredient(ctx, sel, v) + return ec._ExtensionValueSignatureUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestBasedOnUnion) graphql.Marshaler { +func (ec *executionContext) marshalNExtensionValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, v model.ExtensionValueUsageContextUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestBasedOnUnion(ctx, sel, v) + return ec._ExtensionValueUsageContextUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestBasedOnUnion) graphql.Marshaler { +func (ec *executionContext) marshalNFamilyMemberHistoryConditionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryConditionNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryConditionNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationRequestBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestBasedOnUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } + return ec._FamilyMemberHistoryConditionNoteUnion(ctx, sel, v) +} +func (ec *executionContext) marshalNFamilyMemberHistoryNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryNoteUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - wg.Wait() - - return ret + return ec._FamilyMemberHistoryNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestDispenseRequest2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequest(ctx context.Context, sel ast.SelectionSet, v *model.MedicationRequestDispenseRequest) graphql.Marshaler { +func (ec *executionContext) marshalNFamilyMemberHistoryParticipantActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantActorUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryParticipantActorUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestDispenseRequest(ctx, sel, v) + return ec._FamilyMemberHistoryParticipantActorUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestDispenseRequestDispenserInstructionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestDispenserInstructionUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestDispenseRequestDispenserInstructionUnion) graphql.Marshaler { +func (ec *executionContext) marshalNFamilyMemberHistoryParticipantUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryParticipantUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestDispenseRequestDispenserInstructionUnion(ctx, sel, v) + return ec._FamilyMemberHistoryParticipantUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestDispenseRequestDispenserInstructionUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestDispenserInstructionUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestDispenseRequestDispenserInstructionUnion) graphql.Marshaler { +func (ec *executionContext) marshalNFamilyMemberHistoryProcedureNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedureNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryProcedureNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._FamilyMemberHistoryProcedureNoteUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNFamilyMemberHistoryType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryType(ctx context.Context, sel ast.SelectionSet, v model.FamilyMemberHistoryType) graphql.Marshaler { + return ec._FamilyMemberHistoryType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNFamilyMemberHistoryType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.FamilyMemberHistoryType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195024,7 +190811,7 @@ func (ec *executionContext) marshalOMedicationRequestDispenseRequestDispenserIns if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOMedicationRequestDispenseRequestDispenserInstructionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestDispenserInstructionUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNFamilyMemberHistoryType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195035,27 +190822,50 @@ func (ec *executionContext) marshalOMedicationRequestDispenseRequestDispenserIns } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOMedicationRequestDispenseRequestInitialFill2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestInitialFill(ctx context.Context, sel ast.SelectionSet, v *model.MedicationRequestDispenseRequestInitialFill) graphql.Marshaler { +func (ec *executionContext) marshalNGroupManagingEntityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupManagingEntityUnion(ctx context.Context, sel ast.SelectionSet, v model.GroupManagingEntityUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestDispenseRequestInitialFill(ctx, sel, v) + return ec._GroupManagingEntityUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestInformationSourceUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestInformationSourceUnion) graphql.Marshaler { +func (ec *executionContext) marshalNGroupMemberEntityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberEntityUnion(ctx context.Context, sel ast.SelectionSet, v model.GroupMemberEntityUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestInformationSourceUnion(ctx, sel, v) + return ec._GroupMemberEntityUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestInformationSourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestInformationSourceUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestInformationSourceUnion) graphql.Marshaler { +func (ec *executionContext) marshalNGroupMemberUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberUnion(ctx context.Context, sel ast.SelectionSet, v model.GroupMemberUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._GroupMemberUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx context.Context, sel ast.SelectionSet, v model.GroupType) graphql.Marshaler { + return ec._GroupType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GroupType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195079,7 +190889,7 @@ func (ec *executionContext) marshalOMedicationRequestInformationSourceUnion2ᚕg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOMedicationRequestInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestInformationSourceUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195090,116 +190900,90 @@ func (ec *executionContext) marshalOMedicationRequestInformationSourceUnion2ᚕg } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOMedicationRequestNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalNGroupType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx context.Context, sel ast.SelectionSet, v *model.GroupType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestNoteUnion(ctx, sel, v) + return ec._GroupType(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalNImagingStudyBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudyBasedOnUnion) graphql.Marshaler { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationRequestNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestNoteUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - + return graphql.Null } - wg.Wait() - - return ret + return ec._ImagingStudyBasedOnUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestPerformerUnion) graphql.Marshaler { +func (ec *executionContext) marshalNImagingStudyNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudyNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestPerformerUnion(ctx, sel, v) + return ec._ImagingStudyNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestPerformerUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestPerformerUnion) graphql.Marshaler { +func (ec *executionContext) marshalNImagingStudyReferrerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyReferrerUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudyReferrerUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationRequestPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestPerformerUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } + return ec._ImagingStudyReferrerUnion(ctx, sel, v) +} +func (ec *executionContext) marshalNImagingStudySeriesPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerActorUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudySeriesPerformerActorUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - wg.Wait() - - return ret + return ec._ImagingStudySeriesPerformerActorUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRecorderUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestRecorderUnion) graphql.Marshaler { +func (ec *executionContext) marshalNImagingStudySeriesPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudySeriesPerformerUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestRecorderUnion(ctx, sel, v) + return ec._ImagingStudySeriesPerformerUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestRecorderUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRecorderUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestRecorderUnion) graphql.Marshaler { +func (ec *executionContext) marshalNImagingStudySubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudySubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._ImagingStudySubjectUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNImagingStudyType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyType(ctx context.Context, sel ast.SelectionSet, v model.ImagingStudyType) graphql.Marshaler { + return ec._ImagingStudyType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNImagingStudyType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ImagingStudyType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195223,7 +191007,7 @@ func (ec *executionContext) marshalOMedicationRequestRecorderUnion2ᚕgithubᚗc if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOMedicationRequestRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRecorderUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNImagingStudyType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195234,68 +191018,50 @@ func (ec *executionContext) marshalOMedicationRequestRecorderUnion2ᚕgithubᚗc } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOMedicationRequestRequesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRequesterUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestRequesterUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationAdministrationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationAdministrationNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestRequesterUnion(ctx, sel, v) + return ec._MedicationAdministrationNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestRequesterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRequesterUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestRequesterUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationAdministrationPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPartOfUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationAdministrationPartOfUnion) graphql.Marshaler { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationRequestRequesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRequesterUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - + return graphql.Null } - wg.Wait() - - return ret + return ec._MedicationAdministrationPartOfUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestSubjectUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationAdministrationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationAdministrationSubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestSubjectUnion(ctx, sel, v) + return ec._MedicationAdministrationSubjectUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestSubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalNMedicationAdministrationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationType(ctx context.Context, sel ast.SelectionSet, v model.MedicationAdministrationType) graphql.Marshaler { + return ec._MedicationAdministrationType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNMedicationAdministrationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MedicationAdministrationType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195319,7 +191085,7 @@ func (ec *executionContext) marshalOMedicationRequestSubjectUnion2ᚕgithubᚗco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOMedicationRequestSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubjectUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNMedicationAdministrationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195330,130 +191096,100 @@ func (ec *executionContext) marshalOMedicationRequestSubjectUnion2ᚕgithubᚗco } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOMedicationRequestSubstitution2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubstitution(ctx context.Context, sel ast.SelectionSet, v *model.MedicationRequestSubstitution) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationRequestBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestBasedOnUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestSubstitution(ctx, sel, v) + return ec._MedicationRequestBasedOnUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx context.Context, sel ast.SelectionSet, v []*model.MedicationRequestType) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationRequestDispenseRequestDispenserInstructionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestDispenserInstructionUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestDispenseRequestDispenserInstructionUnion) graphql.Marshaler { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationRequestType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - + return graphql.Null } - wg.Wait() - - return ret + return ec._MedicationRequestDispenseRequestDispenserInstructionUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationRequestType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx context.Context, sel ast.SelectionSet, v *model.MedicationRequestType) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationRequestInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestInformationSourceUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestInformationSourceUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationRequestType(ctx, sel, v) + return ec._MedicationRequestInformationSourceUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationStatementAdherence2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementAdherence(ctx context.Context, sel ast.SelectionSet, v *model.MedicationStatementAdherence) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationRequestNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationStatementAdherence(ctx, sel, v) + return ec._MedicationRequestNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationStatementInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementInformationSourceUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementInformationSourceUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationRequestPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestPerformerUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationStatementInformationSourceUnion(ctx, sel, v) + return ec._MedicationRequestPerformerUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationStatementInformationSourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementInformationSourceUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationStatementInformationSourceUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationRequestRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRecorderUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestRecorderUnion) graphql.Marshaler { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationStatementInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementInformationSourceUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - + return graphql.Null } - wg.Wait() - - return ret + return ec._MedicationRequestRecorderUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationStatementNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationRequestRequesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRequesterUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestRequesterUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationStatementNoteUnion(ctx, sel, v) + return ec._MedicationRequestRequesterUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationStatementNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationStatementNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationRequestSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestSubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._MedicationRequestSubjectUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNMedicationRequestType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestType) graphql.Marshaler { + return ec._MedicationRequestType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNMedicationRequestType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MedicationRequestType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195477,7 +191213,7 @@ func (ec *executionContext) marshalOMedicationStatementNoteUnion2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOMedicationStatementNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementNoteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNMedicationRequestType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195488,68 +191224,80 @@ func (ec *executionContext) marshalOMedicationStatementNoteUnion2ᚕgithubᚗcom } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOMedicationStatementPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementPartOfUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementPartOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationRequestType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx context.Context, sel ast.SelectionSet, v *model.MedicationRequestType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._MedicationStatementPartOfUnion(ctx, sel, v) + return ec._MedicationRequestType(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationStatementPartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementPartOfUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationStatementPartOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationStatementInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementInformationSourceUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementInformationSourceUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMedicationStatementPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementPartOfUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } + return ec._MedicationStatementInformationSourceUnion(ctx, sel, v) +} +func (ec *executionContext) marshalNMedicationStatementNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementNoteUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - wg.Wait() + return ec._MedicationStatementNoteUnion(ctx, sel, v) +} - return ret +func (ec *executionContext) marshalNMedicationStatementPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementPartOfUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementPartOfUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._MedicationStatementPartOfUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationStatementRelatedClinicalInformationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementRelatedClinicalInformationUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementRelatedClinicalInformationUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationStatementRelatedClinicalInformationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementRelatedClinicalInformationUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementRelatedClinicalInformationUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } return ec._MedicationStatementRelatedClinicalInformationUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMedicationStatementRelatedClinicalInformationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementRelatedClinicalInformationUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationStatementRelatedClinicalInformationUnion) graphql.Marshaler { +func (ec *executionContext) marshalNMedicationStatementSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementSubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._MedicationStatementSubjectUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNMedicationStatementType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementType(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementType) graphql.Marshaler { + return ec._MedicationStatementType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNMedicationStatementType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MedicationStatementType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195573,7 +191321,7 @@ func (ec *executionContext) marshalOMedicationStatementRelatedClinicalInformatio if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOMedicationStatementRelatedClinicalInformationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementRelatedClinicalInformationUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNMedicationStatementType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195584,20 +191332,20 @@ func (ec *executionContext) marshalOMedicationStatementRelatedClinicalInformatio } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOMedicationStatementSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementSubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._MedicationStatementSubjectUnion(ctx, sel, v) +func (ec *executionContext) marshalNMedicationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationType(ctx context.Context, sel ast.SelectionSet, v model.MedicationType) graphql.Marshaler { + return ec._MedicationType(ctx, sel, &v) } -func (ec *executionContext) marshalOMedicationStatementSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementSubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.MedicationStatementSubjectUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalNMedicationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MedicationType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195621,7 +191369,7 @@ func (ec *executionContext) marshalOMedicationStatementSubjectUnion2ᚕgithubᚗ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOMedicationStatementSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementSubjectUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNMedicationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195632,41 +191380,100 @@ func (ec *executionContext) marshalOMedicationStatementSubjectUnion2ᚕgithubᚗ } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx context.Context, sel ast.SelectionSet, v *model.Meta) graphql.Marshaler { +func (ec *executionContext) marshalNObservationBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationBasedOnUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._Meta(ctx, sel, v) + return ec._ObservationBasedOnUnion(ctx, sel, v) } -func (ec *executionContext) marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx context.Context, sel ast.SelectionSet, v *model.Money) graphql.Marshaler { +func (ec *executionContext) marshalNObservationDerivedFromUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationDerivedFromUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationDerivedFromUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._Money(ctx, sel, v) + return ec._ObservationDerivedFromUnion(ctx, sel, v) } -func (ec *executionContext) marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx context.Context, sel ast.SelectionSet, v *model.Narrative) graphql.Marshaler { +func (ec *executionContext) marshalNObservationHasMemberUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationHasMemberUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationHasMemberUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._Narrative(ctx, sel, v) + return ec._ObservationHasMemberUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationBasedOnUnion) graphql.Marshaler { +func (ec *executionContext) marshalNObservationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationBasedOnUnion(ctx, sel, v) + return ec._ObservationNoteUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNObservationPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPartOfUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationPartOfUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ObservationPartOfUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNObservationPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationPerformerUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ObservationPerformerUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNObservationSpecimenUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSpecimenUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationSpecimenUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ObservationSpecimenUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v []model.ObservationBasedOnUnion) graphql.Marshaler { +func (ec *executionContext) marshalNObservationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationSubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._ObservationSubjectUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNObservationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx context.Context, sel ast.SelectionSet, v model.ObservationType) graphql.Marshaler { + return ec._ObservationType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNObservationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ObservationType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195690,7 +191497,7 @@ func (ec *executionContext) marshalOObservationBasedOnUnion2ᚕgithubᚗcomᚋbm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOObservationBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationBasedOnUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNObservationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195701,13 +191508,30 @@ func (ec *executionContext) marshalOObservationBasedOnUnion2ᚕgithubᚗcomᚋbm } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOObservationComponent2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationComponent(ctx context.Context, sel ast.SelectionSet, v []*model.ObservationComponent) graphql.Marshaler { +func (ec *executionContext) marshalNObservationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx context.Context, sel ast.SelectionSet, v *model.ObservationType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._ObservationType(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrganizationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx context.Context, sel ast.SelectionSet, v model.OrganizationType) graphql.Marshaler { + return ec._OrganizationType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.OrganizationType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195731,7 +191555,7 @@ func (ec *executionContext) marshalOObservationComponent2ᚕᚖgithubᚗcomᚋbm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOObservationComponent2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationComponent(ctx, sel, v[i]) + ret[i] = ec.marshalNOrganizationType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195742,27 +191566,60 @@ func (ec *executionContext) marshalOObservationComponent2ᚕᚖgithubᚗcomᚋbm } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOObservationComponent2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationComponent(ctx context.Context, sel ast.SelectionSet, v *model.ObservationComponent) graphql.Marshaler { +func (ec *executionContext) marshalNOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationType) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationType(ctx, sel, v) +} + +func (ec *executionContext) marshalNPatientGeneralPractitionerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientGeneralPractitionerUnion(ctx context.Context, sel ast.SelectionSet, v model.PatientGeneralPractitionerUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationComponent(ctx, sel, v) + return ec._PatientGeneralPractitionerUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationDerivedFromUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationDerivedFromUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationDerivedFromUnion) graphql.Marshaler { +func (ec *executionContext) marshalNPatientLinkOtherUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkOtherUnion(ctx context.Context, sel ast.SelectionSet, v model.PatientLinkOtherUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationDerivedFromUnion(ctx, sel, v) + return ec._PatientLinkOtherUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationDerivedFromUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationDerivedFromUnion(ctx context.Context, sel ast.SelectionSet, v []model.ObservationDerivedFromUnion) graphql.Marshaler { +func (ec *executionContext) marshalNPatientLinkUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkUnion(ctx context.Context, sel ast.SelectionSet, v model.PatientLinkUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._PatientLinkUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNPatientType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx context.Context, sel ast.SelectionSet, v model.PatientType) graphql.Marshaler { + return ec._PatientType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPatientType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.PatientType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195786,7 +191643,7 @@ func (ec *executionContext) marshalOObservationDerivedFromUnion2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOObservationDerivedFromUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationDerivedFromUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNPatientType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195797,20 +191654,30 @@ func (ec *executionContext) marshalOObservationDerivedFromUnion2ᚕgithubᚗcom } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOObservationHasMemberUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationHasMemberUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationHasMemberUnion) graphql.Marshaler { +func (ec *executionContext) marshalNPatientType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx context.Context, sel ast.SelectionSet, v *model.PatientType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationHasMemberUnion(ctx, sel, v) + return ec._PatientType(ctx, sel, v) } -func (ec *executionContext) marshalOObservationHasMemberUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationHasMemberUnion(ctx context.Context, sel ast.SelectionSet, v []model.ObservationHasMemberUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalNPractitionerRoleType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerRoleType(ctx context.Context, sel ast.SelectionSet, v model.PractitionerRoleType) graphql.Marshaler { + return ec._PractitionerRoleType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPractitionerRoleType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerRoleTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.PractitionerRoleType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195834,7 +191701,7 @@ func (ec *executionContext) marshalOObservationHasMemberUnion2ᚕgithubᚗcomᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOObservationHasMemberUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationHasMemberUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNPractitionerRoleType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerRoleType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195845,20 +191712,20 @@ func (ec *executionContext) marshalOObservationHasMemberUnion2ᚕgithubᚗcomᚋ } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOObservationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ObservationNoteUnion(ctx, sel, v) +func (ec *executionContext) marshalNPractitionerType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx context.Context, sel ast.SelectionSet, v model.PractitionerType) graphql.Marshaler { + return ec._PractitionerType(ctx, sel, &v) } -func (ec *executionContext) marshalOObservationNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.ObservationNoteUnion) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalNPractitionerType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.PractitionerType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -195882,7 +191749,7 @@ func (ec *executionContext) marshalOObservationNoteUnion2ᚕgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOObservationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationNoteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNPractitionerType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -195893,109 +191760,120 @@ func (ec *executionContext) marshalOObservationNoteUnion2ᚕgithubᚗcomᚋbmeg } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOObservationPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPartOfUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationPartOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalNPractitionerType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx context.Context, sel ast.SelectionSet, v *model.PractitionerType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationPartOfUnion(ctx, sel, v) + return ec._PractitionerType(ctx, sel, v) } -func (ec *executionContext) marshalOObservationPartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPartOfUnion(ctx context.Context, sel ast.SelectionSet, v []model.ObservationPartOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalNProcedureFocusUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocusUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureFocusUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOObservationPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPartOfUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } + return ec._ProcedureFocusUnion(ctx, sel, v) +} +func (ec *executionContext) marshalNProcedureNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureNoteUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - wg.Wait() - - return ret + return ec._ProcedureNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationPerformerUnion) graphql.Marshaler { +func (ec *executionContext) marshalNProcedurePartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePartOfUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedurePartOfUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationPerformerUnion(ctx, sel, v) + return ec._ProcedurePartOfUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPerformerUnion(ctx context.Context, sel ast.SelectionSet, v []model.ObservationPerformerUnion) graphql.Marshaler { +func (ec *executionContext) marshalNProcedurePerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerActorUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedurePerformerActorUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOObservationPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPerformerUnion(ctx, sel, v[i]) + return ec._ProcedurePerformerActorUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNProcedurePerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedurePerformerUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - if isLen1 { - f(i) - } else { - go f(i) + return graphql.Null + } + return ec._ProcedurePerformerUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNProcedureRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureRecorderUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureRecorderUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null + } + return ec._ProcedureRecorderUnion(ctx, sel, v) +} +func (ec *executionContext) marshalNProcedureReportUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureReportUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - wg.Wait() + return ec._ProcedureReportUnion(ctx, sel, v) +} - return ret +func (ec *executionContext) marshalNProcedureReportedReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportedReferenceUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureReportedReferenceUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProcedureReportedReferenceUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationReferenceRange2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx context.Context, sel ast.SelectionSet, v []*model.ObservationReferenceRange) graphql.Marshaler { +func (ec *executionContext) marshalNProcedureSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureSubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._ProcedureSubjectUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNProcedureType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx context.Context, sel ast.SelectionSet, v model.ProcedureType) graphql.Marshaler { + return ec._ProcedureType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProcedureType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProcedureType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196019,7 +191897,7 @@ func (ec *executionContext) marshalOObservationReferenceRange2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOObservationReferenceRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx, sel, v[i]) + ret[i] = ec.marshalNProcedureType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196030,75 +191908,100 @@ func (ec *executionContext) marshalOObservationReferenceRange2ᚕᚖgithubᚗcom } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOObservationReferenceRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx context.Context, sel ast.SelectionSet, v *model.ObservationReferenceRange) graphql.Marshaler { +func (ec *executionContext) marshalNProcedureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx context.Context, sel ast.SelectionSet, v *model.ProcedureType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationReferenceRange(ctx, sel, v) + return ec._ProcedureType(ctx, sel, v) } -func (ec *executionContext) marshalOObservationSpecimenUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSpecimenUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationSpecimenUnion) graphql.Marshaler { +func (ec *executionContext) marshalNResearchStudyAssociatedPartyPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyPartyUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyAssociatedPartyPartyUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationSpecimenUnion(ctx, sel, v) + return ec._ResearchStudyAssociatedPartyPartyUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationSpecimenUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSpecimenUnion(ctx context.Context, sel ast.SelectionSet, v []model.ObservationSpecimenUnion) graphql.Marshaler { +func (ec *executionContext) marshalNResearchStudyAssociatedPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyAssociatedPartyUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOObservationSpecimenUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSpecimenUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + return ec._ResearchStudyAssociatedPartyUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNResearchStudyNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyNoteUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null + } + return ec._ResearchStudyNoteUnion(ctx, sel, v) +} +func (ec *executionContext) marshalNResearchStudyRecruitmentEligibilityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentEligibilityUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyRecruitmentEligibilityUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - wg.Wait() + return ec._ResearchStudyRecruitmentEligibilityUnion(ctx, sel, v) +} - return ret +func (ec *executionContext) marshalNResearchStudyRecruitmentUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyRecruitmentUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ResearchStudyRecruitmentUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationSubjectUnion) graphql.Marshaler { +func (ec *executionContext) marshalNResearchStudyResultUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyResultUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyResultUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationSubjectUnion(ctx, sel, v) + return ec._ResearchStudyResultUnion(ctx, sel, v) } -func (ec *executionContext) marshalOObservationTriggeredBy2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx context.Context, sel ast.SelectionSet, v []*model.ObservationTriggeredBy) graphql.Marshaler { +func (ec *executionContext) marshalNResearchStudySiteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudySiteUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudySiteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._ResearchStudySiteUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNResearchStudyType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyType) graphql.Marshaler { + return ec._ResearchStudyType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNResearchStudyType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ResearchStudyType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196122,7 +192025,7 @@ func (ec *executionContext) marshalOObservationTriggeredBy2ᚕᚖgithubᚗcomᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOObservationTriggeredBy2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx, sel, v[i]) + ret[i] = ec.marshalNResearchStudyType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196133,20 +192036,40 @@ func (ec *executionContext) marshalOObservationTriggeredBy2ᚕᚖgithubᚗcomᚋ } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOObservationTriggeredBy2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx context.Context, sel ast.SelectionSet, v *model.ObservationTriggeredBy) graphql.Marshaler { +func (ec *executionContext) marshalNResearchStudyType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationTriggeredBy(ctx, sel, v) + return ec._ResearchStudyType(ctx, sel, v) } -func (ec *executionContext) marshalOObservationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx context.Context, sel ast.SelectionSet, v []*model.ObservationType) graphql.Marshaler { +func (ec *executionContext) marshalNResearchSubjectSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchSubjectSubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._ResearchSubjectSubjectUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNResearchSubjectType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectType(ctx context.Context, sel ast.SelectionSet, v model.ResearchSubjectType) graphql.Marshaler { + return ec._ResearchSubjectType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNResearchSubjectType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ResearchSubjectType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196170,7 +192093,7 @@ func (ec *executionContext) marshalOObservationType2ᚕᚖgithubᚗcomᚋbmegᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOObservationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, sel, v[i]) + ret[i] = ec.marshalNResearchSubjectType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196181,68 +192104,90 @@ func (ec *executionContext) marshalOObservationType2ᚕᚖgithubᚗcomᚋbmegᚋ } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOObservationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx context.Context, sel ast.SelectionSet, v *model.ObservationType) graphql.Marshaler { +func (ec *executionContext) marshalNResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx context.Context, sel ast.SelectionSet, v model.ResourceUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ObservationType(ctx, sel, v) + return ec._ResourceUnion(ctx, sel, v) } -func (ec *executionContext) marshalOOrganizationQualification2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx context.Context, sel ast.SelectionSet, v []*model.OrganizationQualification) graphql.Marshaler { +func (ec *executionContext) marshalNSignatureOnBehalfOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureOnBehalfOfUnion(ctx context.Context, sel ast.SelectionSet, v model.SignatureOnBehalfOfUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOOrganizationQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + return ec._SignatureOnBehalfOfUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNSignatureWhoUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureWhoUnion(ctx context.Context, sel ast.SelectionSet, v model.SignatureWhoUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null + } + return ec._SignatureWhoUnion(ctx, sel, v) +} +func (ec *executionContext) marshalNSpecimenCollectionCollectorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionCollectorUnion(ctx context.Context, sel ast.SelectionSet, v model.SpecimenCollectionCollectorUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - wg.Wait() + return ec._SpecimenCollectionCollectorUnion(ctx, sel, v) +} - return ret +func (ec *executionContext) marshalNSpecimenCollectionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionUnion(ctx context.Context, sel ast.SelectionSet, v model.SpecimenCollectionUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SpecimenCollectionUnion(ctx, sel, v) } -func (ec *executionContext) marshalOOrganizationQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationQualification) graphql.Marshaler { +func (ec *executionContext) marshalNSpecimenNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.SpecimenNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._OrganizationQualification(ctx, sel, v) + return ec._SpecimenNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx context.Context, sel ast.SelectionSet, v []*model.OrganizationType) graphql.Marshaler { +func (ec *executionContext) marshalNSpecimenSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.SpecimenSubjectUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._SpecimenSubjectUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNSpecimenType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx context.Context, sel ast.SelectionSet, v model.SpecimenType) graphql.Marshaler { + return ec._SpecimenType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSpecimenType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SpecimenType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196266,7 +192211,7 @@ func (ec *executionContext) marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, sel, v[i]) + ret[i] = ec.marshalNSpecimenType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196277,27 +192222,65 @@ func (ec *executionContext) marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmeg } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationType) graphql.Marshaler { +func (ec *executionContext) marshalNSpecimenType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx context.Context, sel ast.SelectionSet, v *model.SpecimenType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._OrganizationType(ctx, sel, v) + return ec._SpecimenType(ctx, sel, v) } -func (ec *executionContext) marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx context.Context, sel ast.SelectionSet, v *model.ParameterDefinition) graphql.Marshaler { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNSubstanceDefinitionCodeNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCodeNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.SubstanceDefinitionCodeNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._ParameterDefinition(ctx, sel, v) + return ec._SubstanceDefinitionCodeNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOPatientCommunication2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx context.Context, sel ast.SelectionSet, v []*model.PatientCommunication) graphql.Marshaler { +func (ec *executionContext) marshalNSubstanceDefinitionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.SubstanceDefinitionNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._SubstanceDefinitionNoteUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNSubstanceDefinitionType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx context.Context, sel ast.SelectionSet, v model.SubstanceDefinitionType) graphql.Marshaler { + return ec._SubstanceDefinitionType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubstanceDefinitionType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SubstanceDefinitionType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196321,7 +192304,7 @@ func (ec *executionContext) marshalOPatientCommunication2ᚕᚖgithubᚗcomᚋbm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOPatientCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx, sel, v[i]) + ret[i] = ec.marshalNSubstanceDefinitionType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196332,20 +192315,30 @@ func (ec *executionContext) marshalOPatientCommunication2ᚕᚖgithubᚗcomᚋbm } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOPatientCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx context.Context, sel ast.SelectionSet, v *model.PatientCommunication) graphql.Marshaler { +func (ec *executionContext) marshalNSubstanceDefinitionType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._PatientCommunication(ctx, sel, v) + return ec._SubstanceDefinitionType(ctx, sel, v) } -func (ec *executionContext) marshalOPatientContact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx context.Context, sel ast.SelectionSet, v []*model.PatientContact) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalNSubstanceType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx context.Context, sel ast.SelectionSet, v model.SubstanceType) graphql.Marshaler { + return ec._SubstanceType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubstanceType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SubstanceType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196369,7 +192362,7 @@ func (ec *executionContext) marshalOPatientContact2ᚕᚖgithubᚗcomᚋbmegᚋg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOPatientContact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx, sel, v[i]) + ret[i] = ec.marshalNSubstanceType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196380,123 +192373,160 @@ func (ec *executionContext) marshalOPatientContact2ᚕᚖgithubᚗcomᚋbmegᚋg } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOPatientContact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx context.Context, sel ast.SelectionSet, v *model.PatientContact) graphql.Marshaler { +func (ec *executionContext) marshalNSubstanceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceType) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._PatientContact(ctx, sel, v) + return ec._SubstanceType(ctx, sel, v) } -func (ec *executionContext) marshalOPatientGeneralPractitionerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientGeneralPractitionerUnion(ctx context.Context, sel ast.SelectionSet, v model.PatientGeneralPractitionerUnion) graphql.Marshaler { +func (ec *executionContext) marshalNTaskInputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskInputValueAnnotationUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._PatientGeneralPractitionerUnion(ctx, sel, v) + return ec._TaskInputValueAnnotationUnion(ctx, sel, v) } -func (ec *executionContext) marshalOPatientGeneralPractitionerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientGeneralPractitionerUnion(ctx context.Context, sel ast.SelectionSet, v []model.PatientGeneralPractitionerUnion) graphql.Marshaler { +func (ec *executionContext) marshalNTaskInputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskInputValueSignatureUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOPatientGeneralPractitionerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientGeneralPractitionerUnion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } + return ec._TaskInputValueSignatureUnion(ctx, sel, v) +} +func (ec *executionContext) marshalNTaskInputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskInputValueUsageContextUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - wg.Wait() - - return ret + return ec._TaskInputValueUsageContextUnion(ctx, sel, v) } -func (ec *executionContext) marshalOPatientLinkOtherUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkOtherUnion(ctx context.Context, sel ast.SelectionSet, v model.PatientLinkOtherUnion) graphql.Marshaler { +func (ec *executionContext) marshalNTaskNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskNoteUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._PatientLinkOtherUnion(ctx, sel, v) + return ec._TaskNoteUnion(ctx, sel, v) } -func (ec *executionContext) marshalOPatientLinkOtherUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkOtherUnion(ctx context.Context, sel ast.SelectionSet, v []model.PatientLinkOtherUnion) graphql.Marshaler { +func (ec *executionContext) marshalNTaskOutputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskOutputValueAnnotationUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) + return ec._TaskOutputValueAnnotationUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNTaskOutputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskOutputValueSignatureUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], + return ec._TaskOutputValueSignatureUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNTaskOutputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskOutputValueUsageContextUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOPatientLinkOtherUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkOtherUnion(ctx, sel, v[i]) + return graphql.Null + } + return ec._TaskOutputValueUsageContextUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNTaskOwnerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOwnerUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskOwnerUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - if isLen1 { - f(i) - } else { - go f(i) + return graphql.Null + } + return ec._TaskOwnerUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNTaskPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerActorUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskPerformerActorUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null + } + return ec._TaskPerformerActorUnion(ctx, sel, v) +} +func (ec *executionContext) marshalNTaskPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskPerformerUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - wg.Wait() + return ec._TaskPerformerUnion(ctx, sel, v) +} - return ret +func (ec *executionContext) marshalNTaskRequesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRequesterUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskRequesterUnion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TaskRequesterUnion(ctx, sel, v) } -func (ec *executionContext) marshalOPatientLinkUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkUnion(ctx context.Context, sel ast.SelectionSet, v model.PatientLinkUnion) graphql.Marshaler { +func (ec *executionContext) marshalNTaskRestrictionRecipientUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionRecipientUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskRestrictionRecipientUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._PatientLinkUnion(ctx, sel, v) + return ec._TaskRestrictionRecipientUnion(ctx, sel, v) } -func (ec *executionContext) marshalOPatientLinkUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkUnion(ctx context.Context, sel ast.SelectionSet, v []model.PatientLinkUnion) graphql.Marshaler { +func (ec *executionContext) marshalNTaskRestrictionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskRestrictionUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._TaskRestrictionUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalNTaskType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx context.Context, sel ast.SelectionSet, v model.TaskType) graphql.Marshaler { + return ec._TaskType(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTaskType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.TaskType) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196520,7 +192550,7 @@ func (ec *executionContext) marshalOPatientLinkUnion2ᚕgithubᚗcomᚋbmegᚋgr if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOPatientLinkUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkUnion(ctx, sel, v[i]) + ret[i] = ec.marshalNTaskType2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196531,13 +192561,40 @@ func (ec *executionContext) marshalOPatientLinkUnion2ᚕgithubᚗcomᚋbmegᚋgr } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOPatientType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx context.Context, sel ast.SelectionSet, v []*model.PatientType) graphql.Marshaler { +func (ec *executionContext) marshalNTaskType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx context.Context, sel ast.SelectionSet, v *model.TaskType) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TaskType(ctx, sel, v) +} + +func (ec *executionContext) marshalNUsageContextValueReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐUsageContextValueReferenceUnion(ctx context.Context, sel ast.SelectionSet, v model.UsageContextValueReferenceUnion) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._UsageContextValueReferenceUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { + return ec.___Directive(ctx, sel, &v) +} + +func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196561,7 +192618,7 @@ func (ec *executionContext) marshalOPatientType2ᚕᚖgithubᚗcomᚋbmegᚋgrip if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOPatientType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, sel, v[i]) + ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196572,20 +192629,48 @@ func (ec *executionContext) marshalOPatientType2ᚕᚖgithubᚗcomᚋbmegᚋgrip } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOPatientType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx context.Context, sel ast.SelectionSet, v *model.PatientType) graphql.Marshaler { - if v == nil { - return graphql.Null +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } } - return ec._PatientType(ctx, sel, v) + return res } -func (ec *executionContext) marshalOPeriod2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx context.Context, sel ast.SelectionSet, v []*model.Period) graphql.Marshaler { - if v == nil { - return graphql.Null +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196609,7 +192694,7 @@ func (ec *executionContext) marshalOPeriod2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgr if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, sel, v[i]) + ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196620,20 +192705,28 @@ func (ec *executionContext) marshalOPeriod2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgr } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx context.Context, sel ast.SelectionSet, v *model.Period) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Period(ctx, sel, v) +func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { + return ec.___EnumValue(ctx, sel, &v) } -func (ec *executionContext) marshalOPractitionerCommunication2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerCommunication(ctx context.Context, sel ast.SelectionSet, v []*model.PractitionerCommunication) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { + return ec.___Field(ctx, sel, &v) +} + +func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { + return ec.___InputValue(ctx, sel, &v) +} + +func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196657,7 +192750,7 @@ func (ec *executionContext) marshalOPractitionerCommunication2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOPractitionerCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerCommunication(ctx, sel, v[i]) + ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196668,20 +192761,20 @@ func (ec *executionContext) marshalOPractitionerCommunication2ᚕᚖgithubᚗcom } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOPractitionerCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerCommunication(ctx context.Context, sel ast.SelectionSet, v *model.PractitionerCommunication) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._PractitionerCommunication(ctx, sel, v) +func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { + return ec.___Type(ctx, sel, &v) } -func (ec *executionContext) marshalOPractitionerQualification2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerQualification(ctx context.Context, sel ast.SelectionSet, v []*model.PractitionerQualification) graphql.Marshaler { - if v == nil { - return graphql.Null - } +func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -196705,7 +192798,7 @@ func (ec *executionContext) marshalOPractitionerQualification2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOPractitionerQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerQualification(ctx, sel, v[i]) + ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196716,17 +192809,57 @@ func (ec *executionContext) marshalOPractitionerQualification2ᚕᚖgithubᚗcom } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOPractitionerQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerQualification(ctx context.Context, sel ast.SelectionSet, v *model.PractitionerQualification) graphql.Marshaler { +func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } - return ec._PractitionerQualification(ctx, sel, v) + return ec.___Type(ctx, sel, v) +} + +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx context.Context, v interface{}) (*model.Accessibility, error) { + if v == nil { + return nil, nil + } + var res = new(model.Accessibility) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx context.Context, sel ast.SelectionSet, v *model.Accessibility) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v } -func (ec *executionContext) marshalOPractitionerType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx context.Context, sel ast.SelectionSet, v []*model.PractitionerType) graphql.Marshaler { +func (ec *executionContext) marshalOAddress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx context.Context, sel ast.SelectionSet, v []*model.Address) graphql.Marshaler { if v == nil { return graphql.Null } @@ -196753,7 +192886,7 @@ func (ec *executionContext) marshalOPractitionerType2ᚕᚖgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOPractitionerType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx, sel, v[i]) + ret[i] = ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196767,14 +192900,21 @@ func (ec *executionContext) marshalOPractitionerType2ᚕᚖgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOPractitionerType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx context.Context, sel ast.SelectionSet, v *model.PractitionerType) graphql.Marshaler { +func (ec *executionContext) marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx context.Context, sel ast.SelectionSet, v *model.Address) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._PractitionerType(ctx, sel, v) + return ec._Address(ctx, sel, v) } -func (ec *executionContext) marshalOProcedureFocalDevice2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx context.Context, sel ast.SelectionSet, v []*model.ProcedureFocalDevice) graphql.Marshaler { +func (ec *executionContext) marshalOAge2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAge(ctx context.Context, sel ast.SelectionSet, v *model.Age) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Age(ctx, sel, v) +} + +func (ec *executionContext) marshalOAnnotation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v []*model.Annotation) graphql.Marshaler { if v == nil { return graphql.Null } @@ -196801,7 +192941,7 @@ func (ec *executionContext) marshalOProcedureFocalDevice2ᚕᚖgithubᚗcomᚋbm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedureFocalDevice2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx, sel, v[i]) + ret[i] = ec.marshalOAnnotation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotation(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196815,21 +192955,14 @@ func (ec *executionContext) marshalOProcedureFocalDevice2ᚕᚖgithubᚗcomᚋbm return ret } -func (ec *executionContext) marshalOProcedureFocalDevice2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx context.Context, sel ast.SelectionSet, v *model.ProcedureFocalDevice) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ProcedureFocalDevice(ctx, sel, v) -} - -func (ec *executionContext) marshalOProcedureFocusUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocusUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureFocusUnion) graphql.Marshaler { +func (ec *executionContext) marshalOAnnotation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v *model.Annotation) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedureFocusUnion(ctx, sel, v) + return ec._Annotation(ctx, sel, v) } -func (ec *executionContext) marshalOProcedureFocusUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocusUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedureFocusUnion) graphql.Marshaler { +func (ec *executionContext) marshalOAttachment2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx context.Context, sel ast.SelectionSet, v []*model.Attachment) graphql.Marshaler { if v == nil { return graphql.Null } @@ -196856,7 +192989,7 @@ func (ec *executionContext) marshalOProcedureFocusUnion2ᚕgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedureFocusUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocusUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196870,14 +193003,14 @@ func (ec *executionContext) marshalOProcedureFocusUnion2ᚕgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOProcedureNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOAttachment2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAttachment(ctx context.Context, sel ast.SelectionSet, v *model.Attachment) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedureNoteUnion(ctx, sel, v) + return ec._Attachment(ctx, sel, v) } -func (ec *executionContext) marshalOProcedureNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedureNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOAvailability2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx context.Context, sel ast.SelectionSet, v []*model.Availability) graphql.Marshaler { if v == nil { return graphql.Null } @@ -196904,7 +193037,7 @@ func (ec *executionContext) marshalOProcedureNoteUnion2ᚕgithubᚗcomᚋbmegᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedureNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureNoteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196918,14 +193051,14 @@ func (ec *executionContext) marshalOProcedureNoteUnion2ᚕgithubᚗcomᚋbmegᚋ return ret } -func (ec *executionContext) marshalOProcedurePartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePartOfUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedurePartOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx context.Context, sel ast.SelectionSet, v *model.Availability) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedurePartOfUnion(ctx, sel, v) + return ec._Availability(ctx, sel, v) } -func (ec *executionContext) marshalOProcedurePartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePartOfUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedurePartOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalOAvailabilityAvailableTime2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityAvailableTime(ctx context.Context, sel ast.SelectionSet, v []*model.AvailabilityAvailableTime) graphql.Marshaler { if v == nil { return graphql.Null } @@ -196952,7 +193085,7 @@ func (ec *executionContext) marshalOProcedurePartOfUnion2ᚕgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedurePartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePartOfUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOAvailabilityAvailableTime2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityAvailableTime(ctx, sel, v[i]) } if isLen1 { f(i) @@ -196966,14 +193099,14 @@ func (ec *executionContext) marshalOProcedurePartOfUnion2ᚕgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOProcedurePerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerActorUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedurePerformerActorUnion) graphql.Marshaler { +func (ec *executionContext) marshalOAvailabilityAvailableTime2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityAvailableTime(ctx context.Context, sel ast.SelectionSet, v *model.AvailabilityAvailableTime) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedurePerformerActorUnion(ctx, sel, v) + return ec._AvailabilityAvailableTime(ctx, sel, v) } -func (ec *executionContext) marshalOProcedurePerformerActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerActorUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedurePerformerActorUnion) graphql.Marshaler { +func (ec *executionContext) marshalOAvailabilityNotAvailableTime2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityNotAvailableTime(ctx context.Context, sel ast.SelectionSet, v []*model.AvailabilityNotAvailableTime) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197000,7 +193133,7 @@ func (ec *executionContext) marshalOProcedurePerformerActorUnion2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedurePerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerActorUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOAvailabilityNotAvailableTime2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityNotAvailableTime(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197014,14 +193147,14 @@ func (ec *executionContext) marshalOProcedurePerformerActorUnion2ᚕgithubᚗcom return ret } -func (ec *executionContext) marshalOProcedurePerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedurePerformerUnion) graphql.Marshaler { +func (ec *executionContext) marshalOAvailabilityNotAvailableTime2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityNotAvailableTime(ctx context.Context, sel ast.SelectionSet, v *model.AvailabilityNotAvailableTime) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedurePerformerUnion(ctx, sel, v) + return ec._AvailabilityNotAvailableTime(ctx, sel, v) } -func (ec *executionContext) marshalOProcedurePerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedurePerformerUnion) graphql.Marshaler { +func (ec *executionContext) marshalOBodyStructureIncludedStructure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx context.Context, sel ast.SelectionSet, v []*model.BodyStructureIncludedStructure) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197048,7 +193181,7 @@ func (ec *executionContext) marshalOProcedurePerformerUnion2ᚕgithubᚗcomᚋbm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedurePerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOBodyStructureIncludedStructure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197062,14 +193195,14 @@ func (ec *executionContext) marshalOProcedurePerformerUnion2ᚕgithubᚗcomᚋbm return ret } -func (ec *executionContext) marshalOProcedureRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureRecorderUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureRecorderUnion) graphql.Marshaler { +func (ec *executionContext) marshalOBodyStructureIncludedStructure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx context.Context, sel ast.SelectionSet, v *model.BodyStructureIncludedStructure) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedureRecorderUnion(ctx, sel, v) + return ec._BodyStructureIncludedStructure(ctx, sel, v) } -func (ec *executionContext) marshalOProcedureRecorderUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureRecorderUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedureRecorderUnion) graphql.Marshaler { +func (ec *executionContext) marshalOBodyStructureIncludedStructureBodyLandmarkOrientation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientation(ctx context.Context, sel ast.SelectionSet, v []*model.BodyStructureIncludedStructureBodyLandmarkOrientation) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197096,7 +193229,7 @@ func (ec *executionContext) marshalOProcedureRecorderUnion2ᚕgithubᚗcomᚋbme if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedureRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureRecorderUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOBodyStructureIncludedStructureBodyLandmarkOrientation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientation(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197110,14 +193243,14 @@ func (ec *executionContext) marshalOProcedureRecorderUnion2ᚕgithubᚗcomᚋbme return ret } -func (ec *executionContext) marshalOProcedureReportUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureReportUnion) graphql.Marshaler { +func (ec *executionContext) marshalOBodyStructureIncludedStructureBodyLandmarkOrientation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientation(ctx context.Context, sel ast.SelectionSet, v *model.BodyStructureIncludedStructureBodyLandmarkOrientation) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedureReportUnion(ctx, sel, v) + return ec._BodyStructureIncludedStructureBodyLandmarkOrientation(ctx, sel, v) } -func (ec *executionContext) marshalOProcedureReportUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedureReportUnion) graphql.Marshaler { +func (ec *executionContext) marshalOBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx context.Context, sel ast.SelectionSet, v []*model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197144,7 +193277,7 @@ func (ec *executionContext) marshalOProcedureReportUnion2ᚕgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedureReportUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197158,14 +193291,40 @@ func (ec *executionContext) marshalOProcedureReportUnion2ᚕgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOProcedureReportedReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportedReferenceUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureReportedReferenceUnion) graphql.Marshaler { +func (ec *executionContext) marshalOBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx context.Context, sel ast.SelectionSet, v *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedureReportedReferenceUnion(ctx, sel, v) + return ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { + res, err := graphql.UnmarshalBoolean(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOProcedureReportedReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportedReferenceUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedureReportedReferenceUnion) graphql.Marshaler { +func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { + res := graphql.MarshalBoolean(v) + return res +} + +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalBoolean(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalBoolean(*v) + return res +} + +func (ec *executionContext) marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx context.Context, sel ast.SelectionSet, v []*model.CodeableConcept) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197192,7 +193351,7 @@ func (ec *executionContext) marshalOProcedureReportedReferenceUnion2ᚕgithubᚗ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedureReportedReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportedReferenceUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197206,14 +193365,14 @@ func (ec *executionContext) marshalOProcedureReportedReferenceUnion2ᚕgithubᚗ return ret } -func (ec *executionContext) marshalOProcedureSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ProcedureSubjectUnion) graphql.Marshaler { +func (ec *executionContext) marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx context.Context, sel ast.SelectionSet, v *model.CodeableConcept) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedureSubjectUnion(ctx, sel, v) + return ec._CodeableConcept(ctx, sel, v) } -func (ec *executionContext) marshalOProcedureSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureSubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedureSubjectUnion) graphql.Marshaler { +func (ec *executionContext) marshalOCodeableReference2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx context.Context, sel ast.SelectionSet, v []*model.CodeableReference) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197240,7 +193399,7 @@ func (ec *executionContext) marshalOProcedureSubjectUnion2ᚕgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedureSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureSubjectUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197254,7 +193413,14 @@ func (ec *executionContext) marshalOProcedureSubjectUnion2ᚕgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOProcedureType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx context.Context, sel ast.SelectionSet, v []*model.ProcedureType) graphql.Marshaler { +func (ec *executionContext) marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx context.Context, sel ast.SelectionSet, v *model.CodeableReference) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._CodeableReference(ctx, sel, v) +} + +func (ec *executionContext) marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx context.Context, sel ast.SelectionSet, v []*model.Coding) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197281,7 +193447,7 @@ func (ec *executionContext) marshalOProcedureType2ᚕᚖgithubᚗcomᚋbmegᚋgr if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOProcedureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx, sel, v[i]) + ret[i] = ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197295,14 +193461,21 @@ func (ec *executionContext) marshalOProcedureType2ᚕᚖgithubᚗcomᚋbmegᚋgr return ret } -func (ec *executionContext) marshalOProcedureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx context.Context, sel ast.SelectionSet, v *model.ProcedureType) graphql.Marshaler { +func (ec *executionContext) marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx context.Context, sel ast.SelectionSet, v *model.Coding) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ProcedureType(ctx, sel, v) + return ec._Coding(ctx, sel, v) } -func (ec *executionContext) marshalOQuantity2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx context.Context, sel ast.SelectionSet, v []*model.Quantity) graphql.Marshaler { +func (ec *executionContext) marshalOContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactDetail(ctx context.Context, sel ast.SelectionSet, v *model.ContactDetail) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ContactDetail(ctx, sel, v) +} + +func (ec *executionContext) marshalOContactPoint2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx context.Context, sel ast.SelectionSet, v []*model.ContactPoint) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197329,7 +193502,7 @@ func (ec *executionContext) marshalOQuantity2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, sel, v[i]) + ret[i] = ec.marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197343,21 +193516,21 @@ func (ec *executionContext) marshalOQuantity2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑ return ret } -func (ec *executionContext) marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx context.Context, sel ast.SelectionSet, v *model.Quantity) graphql.Marshaler { +func (ec *executionContext) marshalOContactPoint2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐContactPoint(ctx context.Context, sel ast.SelectionSet, v *model.ContactPoint) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Quantity(ctx, sel, v) + return ec._ContactPoint(ctx, sel, v) } -func (ec *executionContext) marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx context.Context, sel ast.SelectionSet, v *model.Range) graphql.Marshaler { +func (ec *executionContext) marshalOCount2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCount(ctx context.Context, sel ast.SelectionSet, v *model.Count) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Range(ctx, sel, v) + return ec._Count(ctx, sel, v) } -func (ec *executionContext) marshalORatio2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx context.Context, sel ast.SelectionSet, v []*model.Ratio) graphql.Marshaler { +func (ec *executionContext) marshalODataRequirement2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirement) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197384,7 +193557,7 @@ func (ec *executionContext) marshalORatio2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgra if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, sel, v[i]) + ret[i] = ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197398,21 +193571,14 @@ func (ec *executionContext) marshalORatio2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgra return ret } -func (ec *executionContext) marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx context.Context, sel ast.SelectionSet, v *model.Ratio) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Ratio(ctx, sel, v) -} - -func (ec *executionContext) marshalORatioRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatioRange(ctx context.Context, sel ast.SelectionSet, v *model.RatioRange) graphql.Marshaler { +func (ec *executionContext) marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirement) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._RatioRange(ctx, sel, v) + return ec._DataRequirement(ctx, sel, v) } -func (ec *executionContext) marshalORelatedArtifact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx context.Context, sel ast.SelectionSet, v []*model.RelatedArtifact) graphql.Marshaler { +func (ec *executionContext) marshalODataRequirementCodeFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementCodeFilter(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirementCodeFilter) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197439,7 +193605,7 @@ func (ec *executionContext) marshalORelatedArtifact2ᚕᚖgithubᚗcomᚋbmegᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, sel, v[i]) + ret[i] = ec.marshalODataRequirementCodeFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementCodeFilter(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197453,21 +193619,14 @@ func (ec *executionContext) marshalORelatedArtifact2ᚕᚖgithubᚗcomᚋbmegᚋ return ret } -func (ec *executionContext) marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx context.Context, sel ast.SelectionSet, v *model.RelatedArtifact) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._RelatedArtifact(ctx, sel, v) -} - -func (ec *executionContext) marshalOResearchStudyAssociatedPartyPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyPartyUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyAssociatedPartyPartyUnion) graphql.Marshaler { +func (ec *executionContext) marshalODataRequirementCodeFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementCodeFilter(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirementCodeFilter) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyAssociatedPartyPartyUnion(ctx, sel, v) + return ec._DataRequirementCodeFilter(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyAssociatedPartyPartyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyPartyUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResearchStudyAssociatedPartyPartyUnion) graphql.Marshaler { +func (ec *executionContext) marshalODataRequirementDateFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementDateFilter(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirementDateFilter) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197494,7 +193653,7 @@ func (ec *executionContext) marshalOResearchStudyAssociatedPartyPartyUnion2ᚕgi if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyAssociatedPartyPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyPartyUnion(ctx, sel, v[i]) + ret[i] = ec.marshalODataRequirementDateFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementDateFilter(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197508,14 +193667,14 @@ func (ec *executionContext) marshalOResearchStudyAssociatedPartyPartyUnion2ᚕgi return ret } -func (ec *executionContext) marshalOResearchStudyAssociatedPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyAssociatedPartyUnion) graphql.Marshaler { +func (ec *executionContext) marshalODataRequirementDateFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementDateFilter(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirementDateFilter) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyAssociatedPartyUnion(ctx, sel, v) + return ec._DataRequirementDateFilter(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyAssociatedPartyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResearchStudyAssociatedPartyUnion) graphql.Marshaler { +func (ec *executionContext) marshalODataRequirementSort2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementSort(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirementSort) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197542,7 +193701,7 @@ func (ec *executionContext) marshalOResearchStudyAssociatedPartyUnion2ᚕgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyAssociatedPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyUnion(ctx, sel, v[i]) + ret[i] = ec.marshalODataRequirementSort2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementSort(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197556,7 +193715,14 @@ func (ec *executionContext) marshalOResearchStudyAssociatedPartyUnion2ᚕgithub return ret } -func (ec *executionContext) marshalOResearchStudyComparisonGroup2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyComparisonGroup) graphql.Marshaler { +func (ec *executionContext) marshalODataRequirementSort2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementSort(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirementSort) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._DataRequirementSort(ctx, sel, v) +} + +func (ec *executionContext) marshalODataRequirementValueFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementValueFilter(ctx context.Context, sel ast.SelectionSet, v []*model.DataRequirementValueFilter) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197583,7 +193749,7 @@ func (ec *executionContext) marshalOResearchStudyComparisonGroup2ᚕᚖgithubᚗ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyComparisonGroup2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx, sel, v[i]) + ret[i] = ec.marshalODataRequirementValueFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementValueFilter(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197597,14 +193763,14 @@ func (ec *executionContext) marshalOResearchStudyComparisonGroup2ᚕᚖgithubᚗ return ret } -func (ec *executionContext) marshalOResearchStudyComparisonGroup2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyComparisonGroup) graphql.Marshaler { +func (ec *executionContext) marshalODataRequirementValueFilter2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementValueFilter(ctx context.Context, sel ast.SelectionSet, v *model.DataRequirementValueFilter) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyComparisonGroup(ctx, sel, v) + return ec._DataRequirementValueFilter(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyLabel2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyLabel) graphql.Marshaler { +func (ec *executionContext) marshalODiagnosticReportMedia2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportMedia(ctx context.Context, sel ast.SelectionSet, v []*model.DiagnosticReportMedia) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197631,7 +193797,7 @@ func (ec *executionContext) marshalOResearchStudyLabel2ᚕᚖgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyLabel2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx, sel, v[i]) + ret[i] = ec.marshalODiagnosticReportMedia2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportMedia(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197645,21 +193811,21 @@ func (ec *executionContext) marshalOResearchStudyLabel2ᚕᚖgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOResearchStudyLabel2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyLabel) graphql.Marshaler { +func (ec *executionContext) marshalODiagnosticReportMedia2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportMedia(ctx context.Context, sel ast.SelectionSet, v *model.DiagnosticReportMedia) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyLabel(ctx, sel, v) + return ec._DiagnosticReportMedia(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx context.Context, sel ast.SelectionSet, v *model.Distance) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyNoteUnion(ctx, sel, v) + return ec._Distance(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResearchStudyNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalODocumentReferenceContent2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContent(ctx context.Context, sel ast.SelectionSet, v []*model.DocumentReferenceContent) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197686,7 +193852,7 @@ func (ec *executionContext) marshalOResearchStudyNoteUnion2ᚕgithubᚗcomᚋbme if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyNoteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalODocumentReferenceContent2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContent(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197700,7 +193866,14 @@ func (ec *executionContext) marshalOResearchStudyNoteUnion2ᚕgithubᚗcomᚋbme return ret } -func (ec *executionContext) marshalOResearchStudyObjective2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyObjective) graphql.Marshaler { +func (ec *executionContext) marshalODocumentReferenceContent2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContent(ctx context.Context, sel ast.SelectionSet, v *model.DocumentReferenceContent) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._DocumentReferenceContent(ctx, sel, v) +} + +func (ec *executionContext) marshalODocumentReferenceContentProfile2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContentProfile(ctx context.Context, sel ast.SelectionSet, v []*model.DocumentReferenceContentProfile) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197727,7 +193900,7 @@ func (ec *executionContext) marshalOResearchStudyObjective2ᚕᚖgithubᚗcomᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyObjective2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx, sel, v[i]) + ret[i] = ec.marshalODocumentReferenceContentProfile2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContentProfile(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197741,14 +193914,14 @@ func (ec *executionContext) marshalOResearchStudyObjective2ᚕᚖgithubᚗcomᚋ return ret } -func (ec *executionContext) marshalOResearchStudyObjective2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyObjective) graphql.Marshaler { +func (ec *executionContext) marshalODocumentReferenceContentProfile2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContentProfile(ctx context.Context, sel ast.SelectionSet, v *model.DocumentReferenceContentProfile) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyObjective(ctx, sel, v) + return ec._DocumentReferenceContentProfile(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyOutcomeMeasure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyOutcomeMeasure) graphql.Marshaler { +func (ec *executionContext) marshalODocumentReferenceRelatesTo2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceRelatesTo(ctx context.Context, sel ast.SelectionSet, v []*model.DocumentReferenceRelatesTo) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197775,7 +193948,7 @@ func (ec *executionContext) marshalOResearchStudyOutcomeMeasure2ᚕᚖgithubᚗc if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyOutcomeMeasure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx, sel, v[i]) + ret[i] = ec.marshalODocumentReferenceRelatesTo2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceRelatesTo(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197789,14 +193962,14 @@ func (ec *executionContext) marshalOResearchStudyOutcomeMeasure2ᚕᚖgithubᚗc return ret } -func (ec *executionContext) marshalOResearchStudyOutcomeMeasure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyOutcomeMeasure) graphql.Marshaler { +func (ec *executionContext) marshalODocumentReferenceRelatesTo2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceRelatesTo(ctx context.Context, sel ast.SelectionSet, v *model.DocumentReferenceRelatesTo) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyOutcomeMeasure(ctx, sel, v) + return ec._DocumentReferenceRelatesTo(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyProgressStatus2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyProgressStatus) graphql.Marshaler { +func (ec *executionContext) marshalODosage2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx context.Context, sel ast.SelectionSet, v []*model.Dosage) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197823,7 +193996,7 @@ func (ec *executionContext) marshalOResearchStudyProgressStatus2ᚕᚖgithubᚗc if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyProgressStatus2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx, sel, v[i]) + ret[i] = ec.marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197837,21 +194010,76 @@ func (ec *executionContext) marshalOResearchStudyProgressStatus2ᚕᚖgithubᚗc return ret } -func (ec *executionContext) marshalOResearchStudyProgressStatus2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyProgressStatus) graphql.Marshaler { +func (ec *executionContext) marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx context.Context, sel ast.SelectionSet, v *model.Dosage) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyProgressStatus(ctx, sel, v) + return ec._Dosage(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyRecruitmentEligibilityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentEligibilityUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyRecruitmentEligibilityUnion) graphql.Marshaler { +func (ec *executionContext) marshalODosageDoseAndRate2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosageDoseAndRate(ctx context.Context, sel ast.SelectionSet, v []*model.DosageDoseAndRate) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyRecruitmentEligibilityUnion(ctx, sel, v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalODosageDoseAndRate2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosageDoseAndRate(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalODosageDoseAndRate2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosageDoseAndRate(ctx context.Context, sel ast.SelectionSet, v *model.DosageDoseAndRate) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._DosageDoseAndRate(ctx, sel, v) +} + +func (ec *executionContext) marshalODuration2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDuration(ctx context.Context, sel ast.SelectionSet, v *model.Duration) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Duration(ctx, sel, v) +} + +func (ec *executionContext) marshalOEncounterAdmission2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterAdmission(ctx context.Context, sel ast.SelectionSet, v *model.EncounterAdmission) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EncounterAdmission(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyRecruitmentEligibilityUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentEligibilityUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResearchStudyRecruitmentEligibilityUnion) graphql.Marshaler { +func (ec *executionContext) marshalOEncounterDiagnosis2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterDiagnosis(ctx context.Context, sel ast.SelectionSet, v []*model.EncounterDiagnosis) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197878,7 +194106,7 @@ func (ec *executionContext) marshalOResearchStudyRecruitmentEligibilityUnion2ᚕ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyRecruitmentEligibilityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentEligibilityUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOEncounterDiagnosis2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterDiagnosis(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197892,14 +194120,14 @@ func (ec *executionContext) marshalOResearchStudyRecruitmentEligibilityUnion2ᚕ return ret } -func (ec *executionContext) marshalOResearchStudyRecruitmentUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyRecruitmentUnion) graphql.Marshaler { +func (ec *executionContext) marshalOEncounterDiagnosis2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterDiagnosis(ctx context.Context, sel ast.SelectionSet, v *model.EncounterDiagnosis) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyRecruitmentUnion(ctx, sel, v) + return ec._EncounterDiagnosis(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyRecruitmentUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResearchStudyRecruitmentUnion) graphql.Marshaler { +func (ec *executionContext) marshalOEncounterLocation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterLocation(ctx context.Context, sel ast.SelectionSet, v []*model.EncounterLocation) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197926,7 +194154,7 @@ func (ec *executionContext) marshalOResearchStudyRecruitmentUnion2ᚕgithubᚗco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyRecruitmentUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOEncounterLocation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterLocation(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197940,14 +194168,14 @@ func (ec *executionContext) marshalOResearchStudyRecruitmentUnion2ᚕgithubᚗco return ret } -func (ec *executionContext) marshalOResearchStudyResultUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyResultUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudyResultUnion) graphql.Marshaler { +func (ec *executionContext) marshalOEncounterLocation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterLocation(ctx context.Context, sel ast.SelectionSet, v *model.EncounterLocation) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyResultUnion(ctx, sel, v) + return ec._EncounterLocation(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudyResultUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyResultUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResearchStudyResultUnion) graphql.Marshaler { +func (ec *executionContext) marshalOEncounterParticipant2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterParticipant(ctx context.Context, sel ast.SelectionSet, v []*model.EncounterParticipant) graphql.Marshaler { if v == nil { return graphql.Null } @@ -197974,7 +194202,7 @@ func (ec *executionContext) marshalOResearchStudyResultUnion2ᚕgithubᚗcomᚋb if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyResultUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyResultUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOEncounterParticipant2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterParticipant(ctx, sel, v[i]) } if isLen1 { f(i) @@ -197988,14 +194216,14 @@ func (ec *executionContext) marshalOResearchStudyResultUnion2ᚕgithubᚗcomᚋb return ret } -func (ec *executionContext) marshalOResearchStudySiteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudySiteUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchStudySiteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOEncounterParticipant2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterParticipant(ctx context.Context, sel ast.SelectionSet, v *model.EncounterParticipant) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudySiteUnion(ctx, sel, v) + return ec._EncounterParticipant(ctx, sel, v) } -func (ec *executionContext) marshalOResearchStudySiteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudySiteUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResearchStudySiteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOEncounterReason2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterReason(ctx context.Context, sel ast.SelectionSet, v []*model.EncounterReason) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198022,7 +194250,7 @@ func (ec *executionContext) marshalOResearchStudySiteUnion2ᚕgithubᚗcomᚋbme if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudySiteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudySiteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOEncounterReason2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterReason(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198036,7 +194264,21 @@ func (ec *executionContext) marshalOResearchStudySiteUnion2ᚕgithubᚗcomᚋbme return ret } -func (ec *executionContext) marshalOResearchStudyType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyType) graphql.Marshaler { +func (ec *executionContext) marshalOEncounterReason2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterReason(ctx context.Context, sel ast.SelectionSet, v *model.EncounterReason) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EncounterReason(ctx, sel, v) +} + +func (ec *executionContext) marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx context.Context, sel ast.SelectionSet, v *model.Expression) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Expression(ctx, sel, v) +} + +func (ec *executionContext) marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx context.Context, sel ast.SelectionSet, v []*model.ExtendedContactDetail) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198063,7 +194305,7 @@ func (ec *executionContext) marshalOResearchStudyType2ᚕᚖgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchStudyType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, sel, v[i]) + ret[i] = ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198077,14 +194319,14 @@ func (ec *executionContext) marshalOResearchStudyType2ᚕᚖgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOResearchStudyType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyType) graphql.Marshaler { +func (ec *executionContext) marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx context.Context, sel ast.SelectionSet, v *model.ExtendedContactDetail) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchStudyType(ctx, sel, v) + return ec._ExtendedContactDetail(ctx, sel, v) } -func (ec *executionContext) marshalOResearchSubjectProgress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchSubjectProgress) graphql.Marshaler { +func (ec *executionContext) marshalOExtension2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx context.Context, sel ast.SelectionSet, v []*model.Extension) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198111,7 +194353,7 @@ func (ec *executionContext) marshalOResearchSubjectProgress2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchSubjectProgress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx, sel, v[i]) + ret[i] = ec.marshalOExtension2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198125,21 +194367,14 @@ func (ec *executionContext) marshalOResearchSubjectProgress2ᚕᚖgithubᚗcom return ret } -func (ec *executionContext) marshalOResearchSubjectProgress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx context.Context, sel ast.SelectionSet, v *model.ResearchSubjectProgress) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ResearchSubjectProgress(ctx, sel, v) -} - -func (ec *executionContext) marshalOResearchSubjectSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ResearchSubjectSubjectUnion) graphql.Marshaler { +func (ec *executionContext) marshalOExtension2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtension(ctx context.Context, sel ast.SelectionSet, v *model.Extension) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResearchSubjectSubjectUnion(ctx, sel, v) + return ec._Extension(ctx, sel, v) } -func (ec *executionContext) marshalOResearchSubjectSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectSubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResearchSubjectSubjectUnion) graphql.Marshaler { +func (ec *executionContext) marshalOFamilyMemberHistoryCondition2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryCondition(ctx context.Context, sel ast.SelectionSet, v []*model.FamilyMemberHistoryCondition) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198166,7 +194401,7 @@ func (ec *executionContext) marshalOResearchSubjectSubjectUnion2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResearchSubjectSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectSubjectUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOFamilyMemberHistoryCondition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryCondition(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198180,14 +194415,14 @@ func (ec *executionContext) marshalOResearchSubjectSubjectUnion2ᚕgithubᚗcom return ret } -func (ec *executionContext) marshalOResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx context.Context, sel ast.SelectionSet, v model.ResourceUnion) graphql.Marshaler { +func (ec *executionContext) marshalOFamilyMemberHistoryCondition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryCondition(ctx context.Context, sel ast.SelectionSet, v *model.FamilyMemberHistoryCondition) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ResourceUnion(ctx, sel, v) + return ec._FamilyMemberHistoryCondition(ctx, sel, v) } -func (ec *executionContext) marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResourceUnion) graphql.Marshaler { +func (ec *executionContext) marshalOFamilyMemberHistoryProcedure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedure(ctx context.Context, sel ast.SelectionSet, v []*model.FamilyMemberHistoryProcedure) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198214,7 +194449,7 @@ func (ec *executionContext) marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgrip if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOFamilyMemberHistoryProcedure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedure(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198228,21 +194463,30 @@ func (ec *executionContext) marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgrip return ret } -func (ec *executionContext) marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx context.Context, sel ast.SelectionSet, v *model.SampledData) graphql.Marshaler { +func (ec *executionContext) marshalOFamilyMemberHistoryProcedure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedure(ctx context.Context, sel ast.SelectionSet, v *model.FamilyMemberHistoryProcedure) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SampledData(ctx, sel, v) + return ec._FamilyMemberHistoryProcedure(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx context.Context, v interface{}) (*model.Format, error) { + if v == nil { + return nil, nil + } + var res = new(model.Format) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOSignatureOnBehalfOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureOnBehalfOfUnion(ctx context.Context, sel ast.SelectionSet, v model.SignatureOnBehalfOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx context.Context, sel ast.SelectionSet, v *model.Format) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SignatureOnBehalfOfUnion(ctx, sel, v) + return v } -func (ec *executionContext) marshalOSignatureOnBehalfOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureOnBehalfOfUnion(ctx context.Context, sel ast.SelectionSet, v []model.SignatureOnBehalfOfUnion) graphql.Marshaler { +func (ec *executionContext) marshalOGroupCharacteristic2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupCharacteristic(ctx context.Context, sel ast.SelectionSet, v []*model.GroupCharacteristic) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198269,7 +194513,7 @@ func (ec *executionContext) marshalOSignatureOnBehalfOfUnion2ᚕgithubᚗcomᚋb if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSignatureOnBehalfOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureOnBehalfOfUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOGroupCharacteristic2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupCharacteristic(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198283,14 +194527,14 @@ func (ec *executionContext) marshalOSignatureOnBehalfOfUnion2ᚕgithubᚗcomᚋb return ret } -func (ec *executionContext) marshalOSignatureWhoUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureWhoUnion(ctx context.Context, sel ast.SelectionSet, v model.SignatureWhoUnion) graphql.Marshaler { +func (ec *executionContext) marshalOGroupCharacteristic2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupCharacteristic(ctx context.Context, sel ast.SelectionSet, v *model.GroupCharacteristic) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SignatureWhoUnion(ctx, sel, v) + return ec._GroupCharacteristic(ctx, sel, v) } -func (ec *executionContext) marshalOSignatureWhoUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureWhoUnion(ctx context.Context, sel ast.SelectionSet, v []model.SignatureWhoUnion) graphql.Marshaler { +func (ec *executionContext) marshalOHumanName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx context.Context, sel ast.SelectionSet, v []*model.HumanName) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198317,7 +194561,7 @@ func (ec *executionContext) marshalOSignatureWhoUnion2ᚕgithubᚗcomᚋbmegᚋg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSignatureWhoUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureWhoUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198331,14 +194575,14 @@ func (ec *executionContext) marshalOSignatureWhoUnion2ᚕgithubᚗcomᚋbmegᚋg return ret } -func (ec *executionContext) marshalOSpecimenCollectionCollectorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionCollectorUnion(ctx context.Context, sel ast.SelectionSet, v model.SpecimenCollectionCollectorUnion) graphql.Marshaler { +func (ec *executionContext) marshalOHumanName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐHumanName(ctx context.Context, sel ast.SelectionSet, v *model.HumanName) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SpecimenCollectionCollectorUnion(ctx, sel, v) + return ec._HumanName(ctx, sel, v) } -func (ec *executionContext) marshalOSpecimenCollectionCollectorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionCollectorUnion(ctx context.Context, sel ast.SelectionSet, v []model.SpecimenCollectionCollectorUnion) graphql.Marshaler { +func (ec *executionContext) marshalOIdentifier2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx context.Context, sel ast.SelectionSet, v []*model.Identifier) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198365,7 +194609,7 @@ func (ec *executionContext) marshalOSpecimenCollectionCollectorUnion2ᚕgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSpecimenCollectionCollectorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionCollectorUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198379,14 +194623,14 @@ func (ec *executionContext) marshalOSpecimenCollectionCollectorUnion2ᚕgithub return ret } -func (ec *executionContext) marshalOSpecimenCollectionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionUnion(ctx context.Context, sel ast.SelectionSet, v model.SpecimenCollectionUnion) graphql.Marshaler { +func (ec *executionContext) marshalOIdentifier2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐIdentifier(ctx context.Context, sel ast.SelectionSet, v *model.Identifier) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SpecimenCollectionUnion(ctx, sel, v) + return ec._Identifier(ctx, sel, v) } -func (ec *executionContext) marshalOSpecimenCollectionUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionUnion(ctx context.Context, sel ast.SelectionSet, v []model.SpecimenCollectionUnion) graphql.Marshaler { +func (ec *executionContext) marshalOImagingStudySeries2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeries(ctx context.Context, sel ast.SelectionSet, v []*model.ImagingStudySeries) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198413,7 +194657,7 @@ func (ec *executionContext) marshalOSpecimenCollectionUnion2ᚕgithubᚗcomᚋbm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSpecimenCollectionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOImagingStudySeries2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeries(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198427,7 +194671,14 @@ func (ec *executionContext) marshalOSpecimenCollectionUnion2ᚕgithubᚗcomᚋbm return ret } -func (ec *executionContext) marshalOSpecimenContainer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx context.Context, sel ast.SelectionSet, v []*model.SpecimenContainer) graphql.Marshaler { +func (ec *executionContext) marshalOImagingStudySeries2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeries(ctx context.Context, sel ast.SelectionSet, v *model.ImagingStudySeries) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ImagingStudySeries(ctx, sel, v) +} + +func (ec *executionContext) marshalOImagingStudySeriesInstance2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesInstance(ctx context.Context, sel ast.SelectionSet, v []*model.ImagingStudySeriesInstance) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198454,7 +194705,7 @@ func (ec *executionContext) marshalOSpecimenContainer2ᚕᚖgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSpecimenContainer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx, sel, v[i]) + ret[i] = ec.marshalOImagingStudySeriesInstance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesInstance(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198468,14 +194719,14 @@ func (ec *executionContext) marshalOSpecimenContainer2ᚕᚖgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOSpecimenContainer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx context.Context, sel ast.SelectionSet, v *model.SpecimenContainer) graphql.Marshaler { +func (ec *executionContext) marshalOImagingStudySeriesInstance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesInstance(ctx context.Context, sel ast.SelectionSet, v *model.ImagingStudySeriesInstance) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SpecimenContainer(ctx, sel, v) + return ec._ImagingStudySeriesInstance(ctx, sel, v) } -func (ec *executionContext) marshalOSpecimenFeature2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenFeature(ctx context.Context, sel ast.SelectionSet, v []*model.SpecimenFeature) graphql.Marshaler { +func (ec *executionContext) marshalOImmunizationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx context.Context, sel ast.SelectionSet, v []*model.ImmunizationPerformer) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198502,7 +194753,7 @@ func (ec *executionContext) marshalOSpecimenFeature2ᚕᚖgithubᚗcomᚋbmegᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSpecimenFeature2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenFeature(ctx, sel, v[i]) + ret[i] = ec.marshalOImmunizationPerformer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198516,21 +194767,62 @@ func (ec *executionContext) marshalOSpecimenFeature2ᚕᚖgithubᚗcomᚋbmegᚋ return ret } -func (ec *executionContext) marshalOSpecimenFeature2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenFeature(ctx context.Context, sel ast.SelectionSet, v *model.SpecimenFeature) graphql.Marshaler { +func (ec *executionContext) marshalOImmunizationPerformer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx context.Context, sel ast.SelectionSet, v *model.ImmunizationPerformer) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SpecimenFeature(ctx, sel, v) + return ec._ImmunizationPerformer(ctx, sel, v) } -func (ec *executionContext) marshalOSpecimenNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.SpecimenNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOImmunizationProgramEligibility2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProgramEligibility(ctx context.Context, sel ast.SelectionSet, v []*model.ImmunizationProgramEligibility) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SpecimenNoteUnion(ctx, sel, v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOImmunizationProgramEligibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProgramEligibility(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalOSpecimenNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.SpecimenNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOImmunizationProgramEligibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProgramEligibility(ctx context.Context, sel ast.SelectionSet, v *model.ImmunizationProgramEligibility) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ImmunizationProgramEligibility(ctx, sel, v) +} + +func (ec *executionContext) marshalOImmunizationProtocolApplied2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProtocolApplied(ctx context.Context, sel ast.SelectionSet, v []*model.ImmunizationProtocolApplied) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198557,7 +194849,7 @@ func (ec *executionContext) marshalOSpecimenNoteUnion2ᚕgithubᚗcomᚋbmegᚋg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSpecimenNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOImmunizationProtocolApplied2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProtocolApplied(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198571,7 +194863,14 @@ func (ec *executionContext) marshalOSpecimenNoteUnion2ᚕgithubᚗcomᚋbmegᚋg return ret } -func (ec *executionContext) marshalOSpecimenProcessing2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenProcessing(ctx context.Context, sel ast.SelectionSet, v []*model.SpecimenProcessing) graphql.Marshaler { +func (ec *executionContext) marshalOImmunizationProtocolApplied2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProtocolApplied(ctx context.Context, sel ast.SelectionSet, v *model.ImmunizationProtocolApplied) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ImmunizationProtocolApplied(ctx, sel, v) +} + +func (ec *executionContext) marshalOImmunizationReaction2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx context.Context, sel ast.SelectionSet, v []*model.ImmunizationReaction) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198598,7 +194897,7 @@ func (ec *executionContext) marshalOSpecimenProcessing2ᚕᚖgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSpecimenProcessing2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenProcessing(ctx, sel, v[i]) + ret[i] = ec.marshalOImmunizationReaction2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198612,21 +194911,115 @@ func (ec *executionContext) marshalOSpecimenProcessing2ᚕᚖgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOSpecimenProcessing2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenProcessing(ctx context.Context, sel ast.SelectionSet, v *model.SpecimenProcessing) graphql.Marshaler { +func (ec *executionContext) marshalOImmunizationReaction2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx context.Context, sel ast.SelectionSet, v *model.ImmunizationReaction) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SpecimenProcessing(ctx, sel, v) + return ec._ImmunizationReaction(ctx, sel, v) } -func (ec *executionContext) marshalOSpecimenSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.SpecimenSubjectUnion) graphql.Marshaler { +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalInt(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SpecimenSubjectUnion(ctx, sel, v) + res := graphql.MarshalInt(*v) + return res +} + +func (ec *executionContext) unmarshalOJSON2ᚖstring(ctx context.Context, v interface{}) (*string, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalString(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOJSON2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(*v) + return res } -func (ec *executionContext) marshalOSpecimenSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenSubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.SpecimenSubjectUnion) graphql.Marshaler { +func (ec *executionContext) marshalOLocationPosition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐLocationPosition(ctx context.Context, sel ast.SelectionSet, v *model.LocationPosition) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._LocationPosition(ctx, sel, v) +} + +func (ec *executionContext) marshalOMedicationAdministrationDosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationDosage(ctx context.Context, sel ast.SelectionSet, v *model.MedicationAdministrationDosage) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationAdministrationDosage(ctx, sel, v) +} + +func (ec *executionContext) marshalOMedicationAdministrationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPerformer(ctx context.Context, sel ast.SelectionSet, v []*model.MedicationAdministrationPerformer) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOMedicationAdministrationPerformer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPerformer(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOMedicationAdministrationPerformer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPerformer(ctx context.Context, sel ast.SelectionSet, v *model.MedicationAdministrationPerformer) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationAdministrationPerformer(ctx, sel, v) +} + +func (ec *executionContext) marshalOMedicationBatch2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationBatch(ctx context.Context, sel ast.SelectionSet, v *model.MedicationBatch) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationBatch(ctx, sel, v) +} + +func (ec *executionContext) marshalOMedicationIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationIngredient(ctx context.Context, sel ast.SelectionSet, v []*model.MedicationIngredient) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198653,7 +195046,7 @@ func (ec *executionContext) marshalOSpecimenSubjectUnion2ᚕgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSpecimenSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenSubjectUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOMedicationIngredient2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationIngredient(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198667,7 +195060,63 @@ func (ec *executionContext) marshalOSpecimenSubjectUnion2ᚕgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOSpecimenType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx context.Context, sel ast.SelectionSet, v []*model.SpecimenType) graphql.Marshaler { +func (ec *executionContext) marshalOMedicationIngredient2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationIngredient(ctx context.Context, sel ast.SelectionSet, v *model.MedicationIngredient) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationIngredient(ctx, sel, v) +} + +func (ec *executionContext) marshalOMedicationRequestDispenseRequest2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequest(ctx context.Context, sel ast.SelectionSet, v *model.MedicationRequestDispenseRequest) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestDispenseRequest(ctx, sel, v) +} + +func (ec *executionContext) marshalOMedicationRequestDispenseRequestInitialFill2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestInitialFill(ctx context.Context, sel ast.SelectionSet, v *model.MedicationRequestDispenseRequestInitialFill) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestDispenseRequestInitialFill(ctx, sel, v) +} + +func (ec *executionContext) marshalOMedicationRequestSubstitution2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubstitution(ctx context.Context, sel ast.SelectionSet, v *model.MedicationRequestSubstitution) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestSubstitution(ctx, sel, v) +} + +func (ec *executionContext) marshalOMedicationStatementAdherence2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementAdherence(ctx context.Context, sel ast.SelectionSet, v *model.MedicationStatementAdherence) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationStatementAdherence(ctx, sel, v) +} + +func (ec *executionContext) marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx context.Context, sel ast.SelectionSet, v *model.Meta) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Meta(ctx, sel, v) +} + +func (ec *executionContext) marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx context.Context, sel ast.SelectionSet, v *model.Money) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Money(ctx, sel, v) +} + +func (ec *executionContext) marshalONarrative2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐNarrative(ctx context.Context, sel ast.SelectionSet, v *model.Narrative) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Narrative(ctx, sel, v) +} + +func (ec *executionContext) marshalOObservationComponent2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationComponent(ctx context.Context, sel ast.SelectionSet, v []*model.ObservationComponent) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198694,7 +195143,7 @@ func (ec *executionContext) marshalOSpecimenType2ᚕᚖgithubᚗcomᚋbmegᚋgri if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSpecimenType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, sel, v[i]) + ret[i] = ec.marshalOObservationComponent2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationComponent(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198708,30 +195157,14 @@ func (ec *executionContext) marshalOSpecimenType2ᚕᚖgithubᚗcomᚋbmegᚋgri return ret } -func (ec *executionContext) marshalOSpecimenType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx context.Context, sel ast.SelectionSet, v *model.SpecimenType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SpecimenType(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalString(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { +func (ec *executionContext) marshalOObservationComponent2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationComponent(ctx context.Context, sel ast.SelectionSet, v *model.ObservationComponent) graphql.Marshaler { if v == nil { return graphql.Null } - res := graphql.MarshalString(*v) - return res + return ec._ObservationComponent(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionCharacterization2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionCharacterization) graphql.Marshaler { +func (ec *executionContext) marshalOObservationReferenceRange2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx context.Context, sel ast.SelectionSet, v []*model.ObservationReferenceRange) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198758,7 +195191,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionCharacterization2ᚕᚖgi if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionCharacterization2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx, sel, v[i]) + ret[i] = ec.marshalOObservationReferenceRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198772,14 +195205,14 @@ func (ec *executionContext) marshalOSubstanceDefinitionCharacterization2ᚕᚖgi return ret } -func (ec *executionContext) marshalOSubstanceDefinitionCharacterization2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionCharacterization) graphql.Marshaler { +func (ec *executionContext) marshalOObservationReferenceRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx context.Context, sel ast.SelectionSet, v *model.ObservationReferenceRange) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionCharacterization(ctx, sel, v) + return ec._ObservationReferenceRange(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionCode2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionCode) graphql.Marshaler { +func (ec *executionContext) marshalOObservationTriggeredBy2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx context.Context, sel ast.SelectionSet, v []*model.ObservationTriggeredBy) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198806,7 +195239,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionCode2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionCode2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx, sel, v[i]) + ret[i] = ec.marshalOObservationTriggeredBy2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198820,21 +195253,14 @@ func (ec *executionContext) marshalOSubstanceDefinitionCode2ᚕᚖgithubᚗcom return ret } -func (ec *executionContext) marshalOSubstanceDefinitionCode2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionCode) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SubstanceDefinitionCode(ctx, sel, v) -} - -func (ec *executionContext) marshalOSubstanceDefinitionCodeNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCodeNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.SubstanceDefinitionCodeNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOObservationTriggeredBy2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx context.Context, sel ast.SelectionSet, v *model.ObservationTriggeredBy) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionCodeNoteUnion(ctx, sel, v) + return ec._ObservationTriggeredBy(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionCodeNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCodeNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.SubstanceDefinitionCodeNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationQualification2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx context.Context, sel ast.SelectionSet, v []*model.OrganizationQualification) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198861,7 +195287,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionCodeNoteUnion2ᚕgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionCodeNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCodeNoteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOOrganizationQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198875,7 +195301,21 @@ func (ec *executionContext) marshalOSubstanceDefinitionCodeNoteUnion2ᚕgithub return ret } -func (ec *executionContext) marshalOSubstanceDefinitionMoiety2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionMoiety) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationQualification) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._OrganizationQualification(ctx, sel, v) +} + +func (ec *executionContext) marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx context.Context, sel ast.SelectionSet, v *model.ParameterDefinition) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ParameterDefinition(ctx, sel, v) +} + +func (ec *executionContext) marshalOPatientCommunication2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx context.Context, sel ast.SelectionSet, v []*model.PatientCommunication) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198902,7 +195342,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionMoiety2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionMoiety2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx, sel, v[i]) + ret[i] = ec.marshalOPatientCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198916,14 +195356,14 @@ func (ec *executionContext) marshalOSubstanceDefinitionMoiety2ᚕᚖgithubᚗcom return ret } -func (ec *executionContext) marshalOSubstanceDefinitionMoiety2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionMoiety) graphql.Marshaler { +func (ec *executionContext) marshalOPatientCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx context.Context, sel ast.SelectionSet, v *model.PatientCommunication) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionMoiety(ctx, sel, v) + return ec._PatientCommunication(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionMolecularWeight2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionMolecularWeight) graphql.Marshaler { +func (ec *executionContext) marshalOPatientContact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx context.Context, sel ast.SelectionSet, v []*model.PatientContact) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198950,7 +195390,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionMolecularWeight2ᚕᚖgit if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionMolecularWeight2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx, sel, v[i]) + ret[i] = ec.marshalOPatientContact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx, sel, v[i]) } if isLen1 { f(i) @@ -198964,14 +195404,14 @@ func (ec *executionContext) marshalOSubstanceDefinitionMolecularWeight2ᚕᚖgit return ret } -func (ec *executionContext) marshalOSubstanceDefinitionMolecularWeight2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionMolecularWeight) graphql.Marshaler { +func (ec *executionContext) marshalOPatientContact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx context.Context, sel ast.SelectionSet, v *model.PatientContact) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionMolecularWeight(ctx, sel, v) + return ec._PatientContact(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionName) graphql.Marshaler { +func (ec *executionContext) marshalOPeriod2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx context.Context, sel ast.SelectionSet, v []*model.Period) graphql.Marshaler { if v == nil { return graphql.Null } @@ -198998,7 +195438,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, sel, v[i]) + ret[i] = ec.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199012,14 +195452,14 @@ func (ec *executionContext) marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcom return ret } -func (ec *executionContext) marshalOSubstanceDefinitionName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionName) graphql.Marshaler { +func (ec *executionContext) marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx context.Context, sel ast.SelectionSet, v *model.Period) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionName(ctx, sel, v) + return ec._Period(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionNameOfficial2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionNameOfficial) graphql.Marshaler { +func (ec *executionContext) marshalOPractitionerCommunication2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerCommunication(ctx context.Context, sel ast.SelectionSet, v []*model.PractitionerCommunication) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199046,7 +195486,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionNameOfficial2ᚕᚖgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionNameOfficial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx, sel, v[i]) + ret[i] = ec.marshalOPractitionerCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerCommunication(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199060,21 +195500,14 @@ func (ec *executionContext) marshalOSubstanceDefinitionNameOfficial2ᚕᚖgithub return ret } -func (ec *executionContext) marshalOSubstanceDefinitionNameOfficial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionNameOfficial) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SubstanceDefinitionNameOfficial(ctx, sel, v) -} - -func (ec *executionContext) marshalOSubstanceDefinitionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.SubstanceDefinitionNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOPractitionerCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerCommunication(ctx context.Context, sel ast.SelectionSet, v *model.PractitionerCommunication) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionNoteUnion(ctx, sel, v) + return ec._PractitionerCommunication(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.SubstanceDefinitionNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOPractitionerQualification2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerQualification(ctx context.Context, sel ast.SelectionSet, v []*model.PractitionerQualification) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199101,7 +195534,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionNoteUnion2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNoteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOPractitionerQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerQualification(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199115,7 +195548,14 @@ func (ec *executionContext) marshalOSubstanceDefinitionNoteUnion2ᚕgithubᚗcom return ret } -func (ec *executionContext) marshalOSubstanceDefinitionProperty2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionProperty) graphql.Marshaler { +func (ec *executionContext) marshalOPractitionerQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerQualification(ctx context.Context, sel ast.SelectionSet, v *model.PractitionerQualification) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._PractitionerQualification(ctx, sel, v) +} + +func (ec *executionContext) marshalOProcedureFocalDevice2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx context.Context, sel ast.SelectionSet, v []*model.ProcedureFocalDevice) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199142,7 +195582,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionProperty2ᚕᚖgithubᚗc if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionProperty2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx, sel, v[i]) + ret[i] = ec.marshalOProcedureFocalDevice2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199156,14 +195596,14 @@ func (ec *executionContext) marshalOSubstanceDefinitionProperty2ᚕᚖgithubᚗc return ret } -func (ec *executionContext) marshalOSubstanceDefinitionProperty2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionProperty) graphql.Marshaler { +func (ec *executionContext) marshalOProcedureFocalDevice2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx context.Context, sel ast.SelectionSet, v *model.ProcedureFocalDevice) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionProperty(ctx, sel, v) + return ec._ProcedureFocalDevice(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionRelationship2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionRelationship(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionRelationship) graphql.Marshaler { +func (ec *executionContext) marshalOQuantity2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx context.Context, sel ast.SelectionSet, v []*model.Quantity) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199190,7 +195630,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionRelationship2ᚕᚖgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionRelationship2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionRelationship(ctx, sel, v[i]) + ret[i] = ec.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199204,28 +195644,21 @@ func (ec *executionContext) marshalOSubstanceDefinitionRelationship2ᚕᚖgithub return ret } -func (ec *executionContext) marshalOSubstanceDefinitionRelationship2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionRelationship(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionRelationship) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SubstanceDefinitionRelationship(ctx, sel, v) -} - -func (ec *executionContext) marshalOSubstanceDefinitionSourceMaterial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionSourceMaterial(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionSourceMaterial) graphql.Marshaler { +func (ec *executionContext) marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx context.Context, sel ast.SelectionSet, v *model.Quantity) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionSourceMaterial(ctx, sel, v) + return ec._Quantity(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionStructure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructure(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionStructure) graphql.Marshaler { +func (ec *executionContext) marshalORange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRange(ctx context.Context, sel ast.SelectionSet, v *model.Range) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionStructure(ctx, sel, v) + return ec._Range(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionStructureRepresentation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructureRepresentation(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionStructureRepresentation) graphql.Marshaler { +func (ec *executionContext) marshalORatio2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx context.Context, sel ast.SelectionSet, v []*model.Ratio) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199252,7 +195685,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionStructureRepresentation2 if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionStructureRepresentation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructureRepresentation(ctx, sel, v[i]) + ret[i] = ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199266,14 +195699,21 @@ func (ec *executionContext) marshalOSubstanceDefinitionStructureRepresentation2 return ret } -func (ec *executionContext) marshalOSubstanceDefinitionStructureRepresentation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructureRepresentation(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionStructureRepresentation) graphql.Marshaler { +func (ec *executionContext) marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx context.Context, sel ast.SelectionSet, v *model.Ratio) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionStructureRepresentation(ctx, sel, v) + return ec._Ratio(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceDefinitionType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionType) graphql.Marshaler { +func (ec *executionContext) marshalORatioRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatioRange(ctx context.Context, sel ast.SelectionSet, v *model.RatioRange) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._RatioRange(ctx, sel, v) +} + +func (ec *executionContext) marshalORelatedArtifact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx context.Context, sel ast.SelectionSet, v []*model.RelatedArtifact) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199300,7 +195740,7 @@ func (ec *executionContext) marshalOSubstanceDefinitionType2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceDefinitionType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx, sel, v[i]) + ret[i] = ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199314,14 +195754,14 @@ func (ec *executionContext) marshalOSubstanceDefinitionType2ᚕᚖgithubᚗcom return ret } -func (ec *executionContext) marshalOSubstanceDefinitionType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionType) graphql.Marshaler { +func (ec *executionContext) marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx context.Context, sel ast.SelectionSet, v *model.RelatedArtifact) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceDefinitionType(ctx, sel, v) + return ec._RelatedArtifact(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceIngredient(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceIngredient) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyComparisonGroup2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyComparisonGroup) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199348,7 +195788,7 @@ func (ec *executionContext) marshalOSubstanceIngredient2ᚕᚖgithubᚗcomᚋbme if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceIngredient2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceIngredient(ctx, sel, v[i]) + ret[i] = ec.marshalOResearchStudyComparisonGroup2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199362,14 +195802,14 @@ func (ec *executionContext) marshalOSubstanceIngredient2ᚕᚖgithubᚗcomᚋbme return ret } -func (ec *executionContext) marshalOSubstanceIngredient2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceIngredient(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceIngredient) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyComparisonGroup2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyComparisonGroup) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceIngredient(ctx, sel, v) + return ec._ResearchStudyComparisonGroup(ctx, sel, v) } -func (ec *executionContext) marshalOSubstanceType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceType) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyLabel2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyLabel) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199396,7 +195836,7 @@ func (ec *executionContext) marshalOSubstanceType2ᚕᚖgithubᚗcomᚋbmegᚋgr if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOSubstanceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx, sel, v[i]) + ret[i] = ec.marshalOResearchStudyLabel2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199410,14 +195850,14 @@ func (ec *executionContext) marshalOSubstanceType2ᚕᚖgithubᚗcomᚋbmegᚋgr return ret } -func (ec *executionContext) marshalOSubstanceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceType) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyLabel2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyLabel) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SubstanceType(ctx, sel, v) + return ec._ResearchStudyLabel(ctx, sel, v) } -func (ec *executionContext) marshalOTaskInput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInput(ctx context.Context, sel ast.SelectionSet, v []*model.TaskInput) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyObjective2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyObjective) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199444,7 +195884,7 @@ func (ec *executionContext) marshalOTaskInput2ᚕᚖgithubᚗcomᚋbmegᚋgrip if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskInput2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInput(ctx, sel, v[i]) + ret[i] = ec.marshalOResearchStudyObjective2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199458,21 +195898,14 @@ func (ec *executionContext) marshalOTaskInput2ᚕᚖgithubᚗcomᚋbmegᚋgrip return ret } -func (ec *executionContext) marshalOTaskInput2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInput(ctx context.Context, sel ast.SelectionSet, v *model.TaskInput) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TaskInput(ctx, sel, v) -} - -func (ec *executionContext) marshalOTaskInputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskInputValueAnnotationUnion) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyObjective2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyObjective) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskInputValueAnnotationUnion(ctx, sel, v) + return ec._ResearchStudyObjective(ctx, sel, v) } -func (ec *executionContext) marshalOTaskInputValueAnnotationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskInputValueAnnotationUnion) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyOutcomeMeasure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyOutcomeMeasure) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199499,7 +195932,7 @@ func (ec *executionContext) marshalOTaskInputValueAnnotationUnion2ᚕgithubᚗco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskInputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueAnnotationUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOResearchStudyOutcomeMeasure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199513,14 +195946,14 @@ func (ec *executionContext) marshalOTaskInputValueAnnotationUnion2ᚕgithubᚗco return ret } -func (ec *executionContext) marshalOTaskInputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskInputValueSignatureUnion) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyOutcomeMeasure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyOutcomeMeasure) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskInputValueSignatureUnion(ctx, sel, v) + return ec._ResearchStudyOutcomeMeasure(ctx, sel, v) } -func (ec *executionContext) marshalOTaskInputValueSignatureUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskInputValueSignatureUnion) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyProgressStatus2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchStudyProgressStatus) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199547,7 +195980,7 @@ func (ec *executionContext) marshalOTaskInputValueSignatureUnion2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskInputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueSignatureUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOResearchStudyProgressStatus2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199561,14 +195994,14 @@ func (ec *executionContext) marshalOTaskInputValueSignatureUnion2ᚕgithubᚗcom return ret } -func (ec *executionContext) marshalOTaskInputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskInputValueUsageContextUnion) graphql.Marshaler { +func (ec *executionContext) marshalOResearchStudyProgressStatus2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx context.Context, sel ast.SelectionSet, v *model.ResearchStudyProgressStatus) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskInputValueUsageContextUnion(ctx, sel, v) + return ec._ResearchStudyProgressStatus(ctx, sel, v) } -func (ec *executionContext) marshalOTaskInputValueUsageContextUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskInputValueUsageContextUnion) graphql.Marshaler { +func (ec *executionContext) marshalOResearchSubjectProgress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx context.Context, sel ast.SelectionSet, v []*model.ResearchSubjectProgress) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199595,7 +196028,7 @@ func (ec *executionContext) marshalOTaskInputValueUsageContextUnion2ᚕgithubᚗ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskInputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueUsageContextUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOResearchSubjectProgress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199609,14 +196042,21 @@ func (ec *executionContext) marshalOTaskInputValueUsageContextUnion2ᚕgithubᚗ return ret } -func (ec *executionContext) marshalOTaskNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOResearchSubjectProgress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx context.Context, sel ast.SelectionSet, v *model.ResearchSubjectProgress) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskNoteUnion(ctx, sel, v) + return ec._ResearchSubjectProgress(ctx, sel, v) } -func (ec *executionContext) marshalOTaskNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskNoteUnion) graphql.Marshaler { +func (ec *executionContext) marshalOResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx context.Context, sel ast.SelectionSet, v model.ResourceUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ResourceUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx context.Context, sel ast.SelectionSet, v []model.ResourceUnion) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199643,7 +196083,7 @@ func (ec *executionContext) marshalOTaskNoteUnion2ᚕgithubᚗcomᚋbmegᚋgrip if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskNoteUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199657,7 +196097,14 @@ func (ec *executionContext) marshalOTaskNoteUnion2ᚕgithubᚗcomᚋbmegᚋgrip return ret } -func (ec *executionContext) marshalOTaskOutput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx context.Context, sel ast.SelectionSet, v []*model.TaskOutput) graphql.Marshaler { +func (ec *executionContext) marshalOSampledData2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSampledData(ctx context.Context, sel ast.SelectionSet, v *model.SampledData) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SampledData(ctx, sel, v) +} + +func (ec *executionContext) marshalOSpecimenContainer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx context.Context, sel ast.SelectionSet, v []*model.SpecimenContainer) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199684,7 +196131,7 @@ func (ec *executionContext) marshalOTaskOutput2ᚕᚖgithubᚗcomᚋbmegᚋgrip if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskOutput2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx, sel, v[i]) + ret[i] = ec.marshalOSpecimenContainer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199698,21 +196145,62 @@ func (ec *executionContext) marshalOTaskOutput2ᚕᚖgithubᚗcomᚋbmegᚋgrip return ret } -func (ec *executionContext) marshalOTaskOutput2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx context.Context, sel ast.SelectionSet, v *model.TaskOutput) graphql.Marshaler { +func (ec *executionContext) marshalOSpecimenContainer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx context.Context, sel ast.SelectionSet, v *model.SpecimenContainer) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskOutput(ctx, sel, v) + return ec._SpecimenContainer(ctx, sel, v) } -func (ec *executionContext) marshalOTaskOutputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskOutputValueAnnotationUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSpecimenFeature2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenFeature(ctx context.Context, sel ast.SelectionSet, v []*model.SpecimenFeature) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskOutputValueAnnotationUnion(ctx, sel, v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOSpecimenFeature2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenFeature(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOSpecimenFeature2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenFeature(ctx context.Context, sel ast.SelectionSet, v *model.SpecimenFeature) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SpecimenFeature(ctx, sel, v) } -func (ec *executionContext) marshalOTaskOutputValueAnnotationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskOutputValueAnnotationUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSpecimenProcessing2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenProcessing(ctx context.Context, sel ast.SelectionSet, v []*model.SpecimenProcessing) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199739,7 +196227,7 @@ func (ec *executionContext) marshalOTaskOutputValueAnnotationUnion2ᚕgithubᚗc if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskOutputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueAnnotationUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOSpecimenProcessing2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenProcessing(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199753,14 +196241,30 @@ func (ec *executionContext) marshalOTaskOutputValueAnnotationUnion2ᚕgithubᚗc return ret } -func (ec *executionContext) marshalOTaskOutputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskOutputValueSignatureUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSpecimenProcessing2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenProcessing(ctx context.Context, sel ast.SelectionSet, v *model.SpecimenProcessing) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskOutputValueSignatureUnion(ctx, sel, v) + return ec._SpecimenProcessing(ctx, sel, v) } -func (ec *executionContext) marshalOTaskOutputValueSignatureUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskOutputValueSignatureUnion) graphql.Marshaler { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalString(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(*v) + return res +} + +func (ec *executionContext) marshalOSubstanceDefinitionCharacterization2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionCharacterization) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199787,7 +196291,7 @@ func (ec *executionContext) marshalOTaskOutputValueSignatureUnion2ᚕgithubᚗco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskOutputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueSignatureUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOSubstanceDefinitionCharacterization2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199801,14 +196305,14 @@ func (ec *executionContext) marshalOTaskOutputValueSignatureUnion2ᚕgithubᚗco return ret } -func (ec *executionContext) marshalOTaskOutputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskOutputValueUsageContextUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionCharacterization2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionCharacterization) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskOutputValueUsageContextUnion(ctx, sel, v) + return ec._SubstanceDefinitionCharacterization(ctx, sel, v) } -func (ec *executionContext) marshalOTaskOutputValueUsageContextUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskOutputValueUsageContextUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionCode2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionCode) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199835,7 +196339,7 @@ func (ec *executionContext) marshalOTaskOutputValueUsageContextUnion2ᚕgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskOutputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueUsageContextUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOSubstanceDefinitionCode2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199849,14 +196353,14 @@ func (ec *executionContext) marshalOTaskOutputValueUsageContextUnion2ᚕgithub return ret } -func (ec *executionContext) marshalOTaskOwnerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOwnerUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskOwnerUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionCode2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionCode) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskOwnerUnion(ctx, sel, v) + return ec._SubstanceDefinitionCode(ctx, sel, v) } -func (ec *executionContext) marshalOTaskOwnerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOwnerUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskOwnerUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionMoiety2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionMoiety) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199883,7 +196387,7 @@ func (ec *executionContext) marshalOTaskOwnerUnion2ᚕgithubᚗcomᚋbmegᚋgrip if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskOwnerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOwnerUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOSubstanceDefinitionMoiety2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199897,14 +196401,14 @@ func (ec *executionContext) marshalOTaskOwnerUnion2ᚕgithubᚗcomᚋbmegᚋgrip return ret } -func (ec *executionContext) marshalOTaskPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerActorUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskPerformerActorUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionMoiety2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionMoiety) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskPerformerActorUnion(ctx, sel, v) + return ec._SubstanceDefinitionMoiety(ctx, sel, v) } -func (ec *executionContext) marshalOTaskPerformerActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerActorUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskPerformerActorUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionMolecularWeight2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionMolecularWeight) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199931,7 +196435,7 @@ func (ec *executionContext) marshalOTaskPerformerActorUnion2ᚕgithubᚗcomᚋbm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerActorUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOSubstanceDefinitionMolecularWeight2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199945,14 +196449,14 @@ func (ec *executionContext) marshalOTaskPerformerActorUnion2ᚕgithubᚗcomᚋbm return ret } -func (ec *executionContext) marshalOTaskPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskPerformerUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionMolecularWeight2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionMolecularWeight) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskPerformerUnion(ctx, sel, v) + return ec._SubstanceDefinitionMolecularWeight(ctx, sel, v) } -func (ec *executionContext) marshalOTaskPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskPerformerUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionName) graphql.Marshaler { if v == nil { return graphql.Null } @@ -199979,7 +196483,7 @@ func (ec *executionContext) marshalOTaskPerformerUnion2ᚕgithubᚗcomᚋbmegᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOSubstanceDefinitionName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, sel, v[i]) } if isLen1 { f(i) @@ -199993,14 +196497,14 @@ func (ec *executionContext) marshalOTaskPerformerUnion2ᚕgithubᚗcomᚋbmegᚋ return ret } -func (ec *executionContext) marshalOTaskRequesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRequesterUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskRequesterUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionName) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskRequesterUnion(ctx, sel, v) + return ec._SubstanceDefinitionName(ctx, sel, v) } -func (ec *executionContext) marshalOTaskRequesterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRequesterUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskRequesterUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionNameOfficial2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionNameOfficial) graphql.Marshaler { if v == nil { return graphql.Null } @@ -200027,7 +196531,7 @@ func (ec *executionContext) marshalOTaskRequesterUnion2ᚕgithubᚗcomᚋbmegᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskRequesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRequesterUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOSubstanceDefinitionNameOfficial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx, sel, v[i]) } if isLen1 { f(i) @@ -200041,14 +196545,14 @@ func (ec *executionContext) marshalOTaskRequesterUnion2ᚕgithubᚗcomᚋbmegᚋ return ret } -func (ec *executionContext) marshalOTaskRestrictionRecipientUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionRecipientUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskRestrictionRecipientUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionNameOfficial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionNameOfficial) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskRestrictionRecipientUnion(ctx, sel, v) + return ec._SubstanceDefinitionNameOfficial(ctx, sel, v) } -func (ec *executionContext) marshalOTaskRestrictionRecipientUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionRecipientUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskRestrictionRecipientUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionProperty2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionProperty) graphql.Marshaler { if v == nil { return graphql.Null } @@ -200075,7 +196579,7 @@ func (ec *executionContext) marshalOTaskRestrictionRecipientUnion2ᚕgithubᚗco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskRestrictionRecipientUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionRecipientUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOSubstanceDefinitionProperty2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx, sel, v[i]) } if isLen1 { f(i) @@ -200089,14 +196593,14 @@ func (ec *executionContext) marshalOTaskRestrictionRecipientUnion2ᚕgithubᚗco return ret } -func (ec *executionContext) marshalOTaskRestrictionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskRestrictionUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionProperty2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionProperty) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskRestrictionUnion(ctx, sel, v) + return ec._SubstanceDefinitionProperty(ctx, sel, v) } -func (ec *executionContext) marshalOTaskRestrictionUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionUnion(ctx context.Context, sel ast.SelectionSet, v []model.TaskRestrictionUnion) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionRelationship2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionRelationship(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionRelationship) graphql.Marshaler { if v == nil { return graphql.Null } @@ -200123,7 +196627,7 @@ func (ec *executionContext) marshalOTaskRestrictionUnion2ᚕgithubᚗcomᚋbmeg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskRestrictionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOSubstanceDefinitionRelationship2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionRelationship(ctx, sel, v[i]) } if isLen1 { f(i) @@ -200137,7 +196641,28 @@ func (ec *executionContext) marshalOTaskRestrictionUnion2ᚕgithubᚗcomᚋbmeg return ret } -func (ec *executionContext) marshalOTaskType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx context.Context, sel ast.SelectionSet, v []*model.TaskType) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionRelationship2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionRelationship(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionRelationship) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionRelationship(ctx, sel, v) +} + +func (ec *executionContext) marshalOSubstanceDefinitionSourceMaterial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionSourceMaterial(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionSourceMaterial) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionSourceMaterial(ctx, sel, v) +} + +func (ec *executionContext) marshalOSubstanceDefinitionStructure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructure(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionStructure) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionStructure(ctx, sel, v) +} + +func (ec *executionContext) marshalOSubstanceDefinitionStructureRepresentation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructureRepresentation(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceDefinitionStructureRepresentation) graphql.Marshaler { if v == nil { return graphql.Null } @@ -200164,7 +196689,7 @@ func (ec *executionContext) marshalOTaskType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx, sel, v[i]) + ret[i] = ec.marshalOSubstanceDefinitionStructureRepresentation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructureRepresentation(ctx, sel, v[i]) } if isLen1 { f(i) @@ -200178,42 +196703,110 @@ func (ec *executionContext) marshalOTaskType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑ return ret } -func (ec *executionContext) marshalOTaskType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx context.Context, sel ast.SelectionSet, v *model.TaskType) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceDefinitionStructureRepresentation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructureRepresentation(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceDefinitionStructureRepresentation) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TaskType(ctx, sel, v) + return ec._SubstanceDefinitionStructureRepresentation(ctx, sel, v) } -func (ec *executionContext) marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx context.Context, sel ast.SelectionSet, v *model.Timing) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceIngredient(ctx context.Context, sel ast.SelectionSet, v []*model.SubstanceIngredient) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Timing(ctx, sel, v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOSubstanceIngredient2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceIngredient(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalOTimingRepeat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTimingRepeat(ctx context.Context, sel ast.SelectionSet, v *model.TimingRepeat) graphql.Marshaler { +func (ec *executionContext) marshalOSubstanceIngredient2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceIngredient(ctx context.Context, sel ast.SelectionSet, v *model.SubstanceIngredient) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TimingRepeat(ctx, sel, v) + return ec._SubstanceIngredient(ctx, sel, v) } -func (ec *executionContext) marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx context.Context, sel ast.SelectionSet, v *model.TriggerDefinition) graphql.Marshaler { +func (ec *executionContext) marshalOTaskInput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInput(ctx context.Context, sel ast.SelectionSet, v []*model.TaskInput) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TriggerDefinition(ctx, sel, v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOTaskInput2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInput(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalOUsageContextValueReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐUsageContextValueReferenceUnion(ctx context.Context, sel ast.SelectionSet, v model.UsageContextValueReferenceUnion) graphql.Marshaler { +func (ec *executionContext) marshalOTaskInput2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInput(ctx context.Context, sel ast.SelectionSet, v *model.TaskInput) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._UsageContextValueReferenceUnion(ctx, sel, v) + return ec._TaskInput(ctx, sel, v) } -func (ec *executionContext) marshalOUsageContextValueReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐUsageContextValueReferenceUnion(ctx context.Context, sel ast.SelectionSet, v []model.UsageContextValueReferenceUnion) graphql.Marshaler { +func (ec *executionContext) marshalOTaskOutput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx context.Context, sel ast.SelectionSet, v []*model.TaskOutput) graphql.Marshaler { if v == nil { return graphql.Null } @@ -200240,7 +196833,7 @@ func (ec *executionContext) marshalOUsageContextValueReferenceUnion2ᚕgithubᚗ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOUsageContextValueReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐUsageContextValueReferenceUnion(ctx, sel, v[i]) + ret[i] = ec.marshalOTaskOutput2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx, sel, v[i]) } if isLen1 { f(i) @@ -200254,6 +196847,34 @@ func (ec *executionContext) marshalOUsageContextValueReferenceUnion2ᚕgithubᚗ return ret } +func (ec *executionContext) marshalOTaskOutput2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx context.Context, sel ast.SelectionSet, v *model.TaskOutput) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TaskOutput(ctx, sel, v) +} + +func (ec *executionContext) marshalOTiming2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTiming(ctx context.Context, sel ast.SelectionSet, v *model.Timing) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Timing(ctx, sel, v) +} + +func (ec *executionContext) marshalOTimingRepeat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTimingRepeat(ctx context.Context, sel ast.SelectionSet, v *model.TimingRepeat) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TimingRepeat(ctx, sel, v) +} + +func (ec *executionContext) marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx context.Context, sel ast.SelectionSet, v *model.TriggerDefinition) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TriggerDefinition(ctx, sel, v) +} + func (ec *executionContext) marshalOVirtualServiceDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐVirtualServiceDetail(ctx context.Context, sel ast.SelectionSet, v []*model.VirtualServiceDetail) graphql.Marshaler { if v == nil { return graphql.Null diff --git a/gql-gen/gqlgen.yml b/gql-gen/gqlgen.yml index 84de57e..4103cb6 100644 --- a/gql-gen/gqlgen.yml +++ b/gql-gen/gqlgen.yml @@ -1,4 +1,3 @@ -# Where are all the schema files located? globs are supported eg src/**/*.graphqls schema: - graph/schema.graphql exec: @@ -14,11 +13,3 @@ resolver: layout: single-file omit_slice_element_pointers: true - - -#models: -# ObservationType: -# fields: -# focus: -# resolver: true - diff --git a/gql-gen/graph/collectFields.go b/gql-gen/graph/collectFields.go index 38b7524..ff675e9 100644 --- a/gql-gen/graph/collectFields.go +++ b/gql-gen/graph/collectFields.go @@ -89,7 +89,6 @@ func (r *queryResolver) GetSelectedFieldsAst(ctx context.Context, sourceType str q := gripql.V().HasLabel(sourceType[:len(sourceType)-4]).As("f0") queryBuild(&q, resctx.Field.Selections, "f0", rt, "", rt.rTree) - fmt.Println("QUERY AFTER: ", q) fmt.Printf("RNAME TREE: %#v\n", rt.rFieldPaths) fmt.Printf("R TREE: %#v\n", rt.rTree) @@ -103,6 +102,7 @@ func (r *queryResolver) GetSelectedFieldsAst(ctx context.Context, sourceType str //fmt.Printf("RENDER: %#v\n", render) q = q.Limit(10).Render(render) + fmt.Println("QUERY AFTER: ", q) result, err := r.GripDb.Traversal(context.Background(), &gripql.GraphQuery{Graph: "CALIPER", Query: q.Statements}) if err != nil { @@ -115,9 +115,6 @@ func (r *queryResolver) GetSelectedFieldsAst(ctx context.Context, sourceType str //fmt.Printf("VALUES: %#v\n", values) data := buildOutputTree(rt.rTree, values) fmt.Printf("DATA: %#v\n", data) - /*if entry, ok := data["focus"]; ok { - entry.(map[string]any)["__typename"] = "SpecimenType" - }*/ out = append(out, data) } return out, nil diff --git a/gql-gen/graph/resolver.go b/gql-gen/graph/resolver.go index 3bc5dc3..e1e63c4 100644 --- a/gql-gen/graph/resolver.go +++ b/gql-gen/graph/resolver.go @@ -12,52 +12,132 @@ import ( // Organization is the resolver for the organization field. func (r *queryResolver) Organization(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.OrganizationType, error) { - return nil, nil + data, err := r.GetSelectedFieldsAst(ctx, "OrganizationType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalOrganizationTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Group is the resolver for the group field. func (r *queryResolver) Group(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.GroupType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "GroupType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalGroupTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Practitioner is the resolver for the practitioner field. func (r *queryResolver) Practitioner(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.PractitionerType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "PractitionerType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalPractitionerTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // PractitionerRole is the resolver for the practitionerRole field. func (r *queryResolver) PractitionerRole(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.PractitionerRoleType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "PractitionerRoleType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalPractitionerRoleTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // ResearchStudy is the resolver for the researchStudy field. func (r *queryResolver) ResearchStudy(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ResearchStudyType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "ResearchStudyType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalResearchStudyTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Patient is the resolver for the patient field. func (r *queryResolver) Patient(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.PatientType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "PatientType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalPatientTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // ResearchSubject is the resolver for the researchSubject field. func (r *queryResolver) ResearchSubject(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ResearchSubjectType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "ResearchSubjectType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalResearchSubjectTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Substance is the resolver for the substance field. func (r *queryResolver) Substance(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.SubstanceType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "SubstanceType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalSubstanceTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // SubstanceDefinition is the resolver for the substanceDefinition field. func (r *queryResolver) SubstanceDefinition(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.SubstanceDefinitionType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "SubstanceDefinitionType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalSubstanceDefinitionTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Specimen is the resolver for the specimen field. func (r *queryResolver) Specimen(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.SpecimenType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "SpecimenType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalSpecimenTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Observation is the resolver for the observation field. @@ -65,73 +145,169 @@ func (r *queryResolver) Observation(ctx context.Context, offset *int, first *int data, err := r.GetSelectedFieldsAst(ctx, "ObservationType") fmt.Println("DATA: ", data) - slice, err := UnmarshalObservationSlice(data) + slice, err := model.UnmarshalObservationTypeSlice(data) if err != nil { fmt.Println("ERR: ", err) return nil, err } - return slice.([]model.ObservationType), nil + return slice, nil } // DiagnosticReport is the resolver for the diagnosticReport field. func (r *queryResolver) DiagnosticReport(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.DiagnosticReportType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "DiagnosticReportType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalDiagnosticReportTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Condition is the resolver for the condition field. func (r *queryResolver) Condition(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ConditionType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "ConditionType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalConditionTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Medication is the resolver for the medication field. func (r *queryResolver) Medication(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.MedicationType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "MedicationType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalMedicationTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // MedicationAdministration is the resolver for the medicationAdministration field. func (r *queryResolver) MedicationAdministration(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.MedicationAdministrationType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "MedicationAdministrationType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalMedicationAdministrationTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // MedicationStatement is the resolver for the medicationStatement field. func (r *queryResolver) MedicationStatement(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.MedicationStatementType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "MedicationStatementType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalMedicationStatementTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // MedicationRequest is the resolver for the medicationRequest field. func (r *queryResolver) MedicationRequest(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.MedicationRequestType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "MedicationRequestType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalMedicationRequestTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Procedure is the resolver for the procedure field. func (r *queryResolver) Procedure(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ProcedureType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "ProcedureType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalProcedureTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // DocumentReference is the resolver for the documentReference field. func (r *queryResolver) DocumentReference(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.DocumentReferenceType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "DocumentReferenceType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalDocumentReferenceTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Task is the resolver for the task field. -func (r *queryResolver) Task(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]*model.TaskType, error) { - panic("not implemented") +func (r *queryResolver) Task(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.TaskType, error) { + data, err := r.GetSelectedFieldsAst(ctx, "TaskType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalTaskTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // ImagingStudy is the resolver for the imagingStudy field. func (r *queryResolver) ImagingStudy(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ImagingStudyType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "ImagingStudyType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalImagingStudyTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // FamilyMemberHistory is the resolver for the familyMemberHistory field. func (r *queryResolver) FamilyMemberHistory(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.FamilyMemberHistoryType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "FamilyMemberHistoryType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalFamilyMemberHistoryTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // BodyStructure is the resolver for the bodyStructure field. func (r *queryResolver) BodyStructure(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.BodyStructureType, error) { - panic("not implemented") + data, err := r.GetSelectedFieldsAst(ctx, "BodyStructureType") + fmt.Println("DATA: ", data) + + slice, err := model.UnmarshalBodyStructureTypeSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + return slice, nil } // Query returns generated.QueryResolver implementation. @@ -146,8 +322,5 @@ type queryResolver struct{ *Resolver } // it when you're done. // - You have helper methods in this file. Move them out to keep these resolver files clean. /* - func (r *Resolver) ObservationType() generated.ObservationTypeResolver { - return &observationTypeResolver{r} -} -type observationTypeResolver struct{ *Resolver } + type Resolver struct{} */ diff --git a/gql-gen/graph/schema.graphql b/gql-gen/graph/schema.graphql index 390cd3e..5626374 100644 --- a/gql-gen/graph/schema.graphql +++ b/gql-gen/graph/schema.graphql @@ -9,453 +9,45 @@ enum Format { tsv csv } -union GroupManagingEntityUnion = - OrganizationType - | PractitionerType - | PractitionerRoleType -union GroupMemberUnion = - GroupType - | OrganizationType - | PatientType - | PractitionerType - | PractitionerRoleType - | SpecimenType -type GroupType { - member( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [GroupMemberUnion] - extension: [Extension] - meta: Meta - contained: [ResourceUnion] - membership: String - resourceType: String - characteristic: [GroupCharacteristic] - quantity: String - type: String - active: String - description: String - code: CodeableConcept - id: String - language: String - modifierExtension: [Extension] - name: String - implicitRules: String - text: Narrative - managingEntity( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [GroupManagingEntityUnion] - identifier: [Identifier] -} -type Immunization { - statusReason: CodeableConcept - administeredProduct: CodeableReference - doseQuantity: Quantity - lotNumber: String - status: String - manufacturer: CodeableReference - extension: [Extension] - expirationDate: String - identifier: [Identifier] - note: [Annotation] - reaction: [ImmunizationReaction] - protocolApplied: [ImmunizationProtocolApplied] - site: CodeableConcept - occurrenceDateTime: String - reason: [CodeableReference] - fundingSource: CodeableConcept - meta: Meta - subpotentReason: [CodeableConcept] - resourceType: String - vaccineCode: CodeableConcept - text: Narrative - implicitRules: String - informationSource: CodeableReference - occurrenceString: String - performer: [ImmunizationPerformer] - programEligibility: [ImmunizationProgramEligibility] - route: CodeableConcept - contained: [ResourceUnion] - id: String - primarySource: String - isSubpotent: String - language: String - modifierExtension: [Extension] -} -type MedicationIngredient { - strengthCodeableConcept: CodeableConcept - id: String - modifierExtension: [Extension] - resourceType: String - extension: [Extension] - isActive: String - item: CodeableReference - strengthQuantity: Quantity - strengthRatio: Ratio -} -type ObservationReferenceRange { - extension: [Extension] - high: Quantity - id: String - type: CodeableConcept - appliesTo: [CodeableConcept] - age: Range - text: String - low: Quantity - normalValue: CodeableConcept - resourceType: String - modifierExtension: [Extension] -} -type Encounter { - length: Duration - actualPeriod: Period - priority: CodeableConcept - class: [CodeableConcept] - plannedEndDate: String - serviceType: [CodeableReference] - admission: EncounterAdmission - meta: Meta - id: String - identifier: [Identifier] - plannedStartDate: String - type: [CodeableConcept] - diagnosis: [EncounterDiagnosis] - text: Narrative - participant: [EncounterParticipant] - status: String - virtualService: [VirtualServiceDetail] - modifierExtension: [Extension] - specialCourtesy: [CodeableConcept] - resourceType: String - specialArrangement: [CodeableConcept] - extension: [Extension] - contained: [ResourceUnion] - location: [EncounterLocation] - implicitRules: String - dietPreference: [CodeableConcept] - reason: [EncounterReason] - subjectStatus: CodeableConcept - language: String -} -type MedicationBatch { - modifierExtension: [Extension] - resourceType: String - expirationDate: String - extension: [Extension] - id: String - lotNumber: String -} -type MedicationAdministrationPerformer { - id: String - modifierExtension: [Extension] - resourceType: String - actor: CodeableReference - extension: [Extension] - function: CodeableConcept -} -type LocationPosition { - altitude: String - extension: [Extension] - id: String - latitude: String - longitude: String - modifierExtension: [Extension] - resourceType: String -} -type PatientContact { - relationship: [CodeableConcept] - telecom: [ContactPoint] - extension: [Extension] - name: HumanName - address: Address - gender: String - id: String - modifierExtension: [Extension] - organization( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [OrganizationType] - resourceType: String - period: Period -} -type PractitionerCommunication { - preferred: String - resourceType: String - extension: [Extension] - id: String - language: CodeableConcept - modifierExtension: [Extension] -} -union ProcedurePerformerActorUnion = +union ConditionSubjectUnion = PatientType | GroupType +union ConditionNoteUnion = PractitionerType | PractitionerRoleType - | OrganizationType | PatientType -type ProcedurePerformer { - function: CodeableConcept - id: String - modifierExtension: [Extension] - onBehalfOf( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [OrganizationType] - period: Period - resourceType: String - actor( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ProcedurePerformerActorUnion] - extension: [Extension] -} -type ResearchSubjectProgress { - endDate: String - modifierExtension: [Extension] - type: CodeableConcept - extension: [Extension] - milestone: CodeableConcept - resourceType: String - reason: CodeableConcept - startDate: String - subjectState: CodeableConcept - id: String -} -type SpecimenContainer { - modifierExtension: [Extension] - resourceType: String - specimenQuantity: Quantity - extension: [Extension] - id: String -} -type SubstanceDefinitionMolecularWeight { - id: String - method: CodeableConcept - modifierExtension: [Extension] - resourceType: String - type: CodeableConcept - amount: Quantity - extension: [Extension] -} -type Location { - meta: Meta - name: String - contained: [ResourceUnion] - form: CodeableConcept - language: String - extension: [Extension] - resourceType: String - id: String - characteristic: [CodeableConcept] - modifierExtension: [Extension] - address: Address - implicitRules: String - mode: String - operationalStatus: Coding - position: LocationPosition - virtualService: [VirtualServiceDetail] - text: Narrative - contact: [ExtendedContactDetail] - status: String - hoursOfOperation: [Availability] - identifier: [Identifier] - alias: String - type: [CodeableConcept] - description: String -} -union SubstanceDefinitionNoteUnion = + | OrganizationType +union ConditionParticipantUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type SubstanceDefinitionType { - text: Narrative - moiety: [SubstanceDefinitionMoiety] - implicitRules: String - modifierExtension: [Extension] - characterization: [SubstanceDefinitionCharacterization] - supplier( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [OrganizationType] - note( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [SubstanceDefinitionNoteUnion] - description: String - structure: SubstanceDefinitionStructure - id: String - language: String +union ConditionStageUnion = DiagnosticReportType | ObservationType +type ConditionType { + bodySite: [CodeableConcept] + verificationStatus: CodeableConcept contained: [ResourceUnion] - domain: CodeableConcept - extension: [Extension] identifier: [Identifier] - version: String - relationship: [SubstanceDefinitionRelationship] - manufacturer( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [OrganizationType] - grade: [CodeableConcept] - resourceType: String - name: [SubstanceDefinitionName] - status: CodeableConcept - meta: Meta - molecularWeight: [SubstanceDefinitionMolecularWeight] - sourceMaterial: SubstanceDefinitionSourceMaterial - classification: [CodeableConcept] - code: [SubstanceDefinitionCode] - property: [SubstanceDefinitionProperty] -} -type BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark { - device: [CodeableReference] - extension: [Extension] - id: String - modifierExtension: [Extension] - resourceType: String - value: [Quantity] -} -type MedicationRequestSubstitution { - reason: CodeableConcept - resourceType: String - allowedBoolean: String - allowedCodeableConcept: CodeableConcept - extension: [Extension] - id: String - modifierExtension: [Extension] -} -type SubstanceDefinitionName { - status: CodeableConcept - synonym: [SubstanceDefinitionName] - modifierExtension: [Extension] - translation: [SubstanceDefinitionName] - type: CodeableConcept - official: [SubstanceDefinitionNameOfficial] - name: String - id: String - language: [CodeableConcept] - domain: [CodeableConcept] - extension: [Extension] - jurisdiction: [CodeableConcept] - preferred: String - source( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [DocumentReferenceType] - resourceType: String -} -type SubstanceDefinitionSourceMaterial { - genus: CodeableConcept - type: CodeableConcept - extension: [Extension] - modifierExtension: [Extension] - resourceType: String - countryOfOrigin: [CodeableConcept] + onsetRange: Range + category: [CodeableConcept] + language: String + abatementAge: Age id: String - species: CodeableConcept - part: CodeableConcept -} -union ConditionParticipantActorUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type ConditionParticipant { + onsetAge: Age + clinicalStatus: CodeableConcept modifierExtension: [Extension] - resourceType: String - actor( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ConditionParticipantActorUnion] - extension: [Extension] - function: CodeableConcept - id: String -} -union FamilyMemberHistoryParticipantActorUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type FamilyMemberHistoryParticipant { - actor( + abatementPeriod: Period + implicitRules: String + recordedDate: String + stage( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [FamilyMemberHistoryParticipantActorUnion] - extension: [Extension] - function: CodeableConcept - id: String - modifierExtension: [Extension] - resourceType: String -} -union MedicationAdministrationNoteUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union MedicationAdministrationPartOfUnion = - MedicationAdministrationType - | ProcedureType -union MedicationAdministrationSubjectUnion = PatientType | GroupType -type MedicationAdministrationType { - subPotentReason: [CodeableConcept] - device: [CodeableReference] - category: [CodeableConcept] - occurenceDateTime: String - medication: CodeableReference - occurencePeriod: Period - isSubPotent: String - identifier: [Identifier] + ): ConditionStageUnion! + onsetDateTime: String + onsetString: String meta: Meta - modifierExtension: [Extension] - dosage: MedicationAdministrationDosage - performer: [MedicationAdministrationPerformer] - status: String - recorded: String - id: String - occurenceTiming: Timing subject( offset: Int first: Int @@ -463,16 +55,9 @@ type MedicationAdministrationType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationAdministrationSubjectUnion] - language: String - request( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [MedicationRequestType] + ): ConditionSubjectUnion! + code: CodeableConcept + resourceType: String note( offset: Int first: Int @@ -480,591 +65,745 @@ type MedicationAdministrationType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationAdministrationNoteUnion] + ): ConditionNoteUnion! + evidence: [CodeableReference] + onsetPeriod: Period + abatementString: String + severity: CodeableConcept text: Narrative - resourceType: String - statusReason: [CodeableConcept] - implicitRules: String - partOf( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [MedicationAdministrationPartOfUnion] - reason: [CodeableReference] - supportingInformation( + abatementDateTime: String + abatementRange: Range + participant( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] + ): ConditionParticipantUnion! extension: [Extension] - contained: [ResourceUnion] } -union PatientLinkOtherUnion = PatientType -type PatientLink { +type SubstanceDefinitionCharacterization { modifierExtension: [Extension] - other( + resourceType: String + technique: CodeableConcept + description: String + extension: [Extension] + file: [Attachment] + form: CodeableConcept + id: String +} +union ResearchSubjectSubjectUnion = + PatientType + | GroupType + | SpecimenType + | MedicationType + | SubstanceType +type ResearchSubjectType { + study( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [PatientLinkOtherUnion] + ): ResearchStudyType! + implicitRules: String + status: String + meta: Meta + modifierExtension: [Extension] resourceType: String - type: String + language: String + text: Narrative + identifier: [Identifier] + contained: [ResourceUnion] extension: [Extension] + actualComparisonGroup: String + assignedComparisonGroup: String + progress: [ResearchSubjectProgress] + period: Period + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchSubjectSubjectUnion! id: String } -type RatioRange { +type ContactPoint { resourceType: String - denominator: Quantity - extension: [Extension] - highNumerator: Quantity - id: String - lowNumerator: Quantity -} -type ResearchStudyLabel { + system: String + use: String value: String extension: [Extension] id: String - modifierExtension: [Extension] - resourceType: String - type: CodeableConcept + period: Period + rank: String } -type DataRequirementSort { - direction: String +type ContactDetail { extension: [Extension] id: String - path: String + name: String resourceType: String + telecom: [ContactPoint] } -type FHIRPrimitiveExtension { - extension: [Extension] +type ResearchSubjectProgress { + subjectState: CodeableConcept id: String + milestone: CodeableConcept + reason: CodeableConcept + startDate: String + type: CodeableConcept + extension: [Extension] + modifierExtension: [Extension] resourceType: String + endDate: String } -union ResearchStudyAssociatedPartyPartyUnion = +union ResearchStudyResultUnion = DiagnosticReportType +union ResearchStudySiteUnion = ResearchStudyType | OrganizationType +union ResearchStudyAssociatedPartyUnion = PractitionerType | PractitionerRoleType | OrganizationType -type ResearchStudyAssociatedParty { - party( +union ResearchStudyNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union ResearchStudyRecruitmentUnion = GroupType +type ResearchStudyType { + language: String + region: [CodeableConcept] + identifier: [Identifier] + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyAssociatedPartyPartyUnion] - extension: [Extension] - modifierExtension: [Extension] - name: String - role: CodeableConcept - id: String - period: [Period] - resourceType: String - classifier: [CodeableConcept] -} -type CodeableConcept { - text: String - coding: [Coding] - extension: [Extension] - id: String - resourceType: String -} -union DocumentReferenceAuthorUnion = - PractitionerType - | PractitionerRoleType - | OrganizationType - | PatientType -union DocumentReferenceBasedOnUnion = MedicationRequestType -union DocumentReferenceAttesterUnion = - PatientType - | PractitionerType - | PractitionerRoleType - | OrganizationType -type DocumentReferenceType { + ): ResearchStudyNoteUnion! + focus: [CodeableReference] + primaryPurposeType: CodeableConcept + progressStatus: [ResearchStudyProgressStatus] + whyStopped: CodeableConcept + result( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchStudyResultUnion! version: String - language: String - implicitRules: String - bodySite: [CodeableReference] - practiceSetting: CodeableConcept - author( + url: String + relatedArtifact: [RelatedArtifact] + name: String + studyDesign: [CodeableConcept] + objective: [ResearchStudyObjective] + recruitment( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceAuthorUnion] - basedOn( + ): ResearchStudyRecruitmentUnion! + title: String + associatedParty( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResearchStudyAssociatedPartyUnion! + id: String + contained: [ResourceUnion] + description: String + comparisonGroup: [ResearchStudyComparisonGroup] + implicitRules: String + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceBasedOnUnion] + ): ResearchStudyType! + classifier: [CodeableConcept] + label: [ResearchStudyLabel] + keyword: [CodeableConcept] + modifierExtension: [Extension] + period: Period resourceType: String + date: String + descriptionSummary: String + extension: [Extension] + text: Narrative + meta: Meta + phase: CodeableConcept + condition: [CodeableConcept] status: String - type: CodeableConcept - modality: [CodeableConcept] - period: Period - attester( + outcomeMeasure: [ResearchStudyOutcomeMeasure] + site( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceAttesterUnion] - docStatus: String - meta: Meta - custodian( + ): ResearchStudySiteUnion! +} +type Timing { + code: CodeableConcept + event: String + extension: [Extension] + id: String + modifierExtension: [Extension] + repeat: TimingRepeat + resourceType: String +} +union MedicationRequestDispenseRequestDispenserInstructionUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type MedicationRequestDispenseRequest { + dispenserInstruction( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - event: [CodeableReference] - relatesTo: [DocumentReferenceRelatesTo] - facilityType: CodeableConcept + ): MedicationRequestDispenseRequestDispenserInstructionUnion! id: String - securityLabel: [CodeableConcept] - identifier: [Identifier] + dispenseInterval: Duration + doseAdministrationAid: CodeableConcept + initialFill: MedicationRequestDispenseRequestInitialFill + quantity: Quantity + validityPeriod: Period + expectedSupplyDuration: Duration modifierExtension: [Extension] - description: String - extension: [Extension] - category: [CodeableConcept] - text: Narrative - contained: [ResourceUnion] - subject( + numberOfRepeatsAllowed: String + dispenser( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - content: [DocumentReferenceContent] - date: String + ): OrganizationType! + extension: [Extension] + resourceType: String } -type DosageDoseAndRate { +type MedicationIngredient { + item: CodeableReference + strengthQuantity: Quantity + strengthRatio: Ratio + resourceType: String + strengthCodeableConcept: CodeableConcept id: String - doseRange: Range + isActive: String + modifierExtension: [Extension] + extension: [Extension] +} +type Location { + name: String + language: String + text: Narrative + id: String + operationalStatus: Coding + modifierExtension: [Extension] + type: [CodeableConcept] + characteristic: [CodeableConcept] + form: CodeableConcept + contact: [ExtendedContactDetail] + identifier: [Identifier] resourceType: String - rateRange: Range - type: CodeableConcept - doseQuantity: Quantity - rateRatio: Ratio + position: LocationPosition extension: [Extension] - rateQuantity: Quantity + meta: Meta + mode: String + alias: String + virtualService: [VirtualServiceDetail] + implicitRules: String + contained: [ResourceUnion] + status: String + description: String + hoursOfOperation: [Availability] + address: Address } -type EncounterReason { - resourceType: String - use: [CodeableConcept] - value: [CodeableReference] +type ObservationComponent { + dataAbsentReason: CodeableConcept + interpretation: [CodeableConcept] + valueAttachment: Attachment extension: [Extension] - id: String + valueCodeableConcept: CodeableConcept + valueTime: String + valueBoolean: String + valuePeriod: Period modifierExtension: [Extension] + valueInteger: String + resourceType: String + referenceRange: [ObservationReferenceRange] + code: CodeableConcept + valueRatio: Ratio + valueSampledData: SampledData + valueDateTime: String + valueRange: Range + valueString: String + valueQuantity: Quantity + id: String } -type Expression { - expression: String - extension: [Extension] +type TriggerDefinition { + data: [DataRequirement] id: String - language: String name: String - reference: String - resourceType: String - description: String -} -type MedicationType { - doseForm: CodeableConcept code: CodeableConcept - identifier: [Identifier] - text: Narrative - meta: Meta + condition: Expression + timingTiming: Timing + subscriptionTopic: String + timingDate: String + timingDateTime: String + extension: [Extension] resourceType: String - status: String - language: String - modifierExtension: [Extension] - contained: [ResourceUnion] - batch: MedicationBatch - implicitRules: String - totalVolume: Quantity + type: String +} +type DiagnosticReportMedia { + comment: String extension: [Extension] - ingredient: [MedicationIngredient] id: String - marketingAuthorizationHolder( + link( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] + ): DocumentReferenceType! + modifierExtension: [Extension] + resourceType: String } -type ObservationComponent { +type MedicationBatch { id: String - valuePeriod: Period - valueQuantity: Quantity - valueRange: Range - valueAttachment: Attachment - extension: [Extension] - valueSampledData: SampledData - valueString: String + lotNumber: String modifierExtension: [Extension] - code: CodeableConcept - dataAbsentReason: CodeableConcept - valueBoolean: String - valueDateTime: String - valueInteger: String - valueTime: String - interpretation: [CodeableConcept] - referenceRange: [ObservationReferenceRange] resourceType: String - valueCodeableConcept: CodeableConcept - valueRatio: Ratio + expirationDate: String + extension: [Extension] } type SubstanceType { - id: String - language: String - ingredient: [SubstanceIngredient] - category: [CodeableConcept] + status: String + quantity: Quantity + text: Narrative identifier: [Identifier] - contained: [ResourceUnion] + language: String + implicitRules: String resourceType: String instance: String - implicitRules: String modifierExtension: [Extension] + category: [CodeableConcept] expiry: String - description: String - status: String + ingredient: [SubstanceIngredient] meta: Meta code: CodeableReference + description: String extension: [Extension] - quantity: Quantity - text: Narrative + contained: [ResourceUnion] + id: String } -type Coding { +type DataRequirementSort { + path: String + resourceType: String + direction: String extension: [Extension] id: String - resourceType: String - system: String - userSelected: String - version: String - code: String - display: String } -type SubstanceDefinitionRelationship { - substanceDefinitionReference( +union ResearchStudyRecruitmentEligibilityUnion = GroupType +type ResearchStudyRecruitment { + actualNumber: String + eligibility( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SubstanceDefinitionType] - amountQuantity: Quantity - amountRatio: Ratio + ): ResearchStudyRecruitmentEligibilityUnion! + extension: [Extension] id: String - ratioHighLimitAmount: Ratio - source( + modifierExtension: [Extension] + resourceType: String + targetNumber: String + actualGroup( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] + ): GroupType! +} +type Count { + id: String resourceType: String - amountString: String - isDefining: String - modifierExtension: [Extension] - comparator: CodeableConcept - type: CodeableConcept + system: String + unit: String + value: String + code: String + comparator: String extension: [Extension] - substanceDefinitionCodeableConcept: CodeableConcept } -union SubstanceDefinitionCodeNoteUnion = +type VirtualServiceDetail { + maxParticipants: String + resourceType: String + additionalInfo: String + extension: [Extension] + sessionKey: String + addressContactPoint: ContactPoint + addressString: String + addressExtendedContactDetail: ExtendedContactDetail + addressUrl: String + id: String + channelType: Coding +} +type ImmunizationPerformer { + resourceType: String + extension: [Extension] + function: CodeableConcept + id: String + modifierExtension: [Extension] +} +union SpecimenNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type SubstanceDefinitionCode { - source( +union SpecimenSubjectUnion = PatientType | GroupType | SubstanceType +union SpecimenCollectionUnion = + PractitionerType + | PractitionerRoleType + | PatientType +type SpecimenType { + resourceType: String + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] - status: CodeableConcept - resourceType: String + ): SpecimenSubjectUnion! + combined: String + accessionIdentifier: Identifier modifierExtension: [Extension] - statusDate: String - extension: [Extension] - note( + type: CodeableConcept + text: Narrative + container: [SpecimenContainer] + implicitRules: String + parent( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SubstanceDefinitionCodeNoteUnion] - code: CodeableConcept - id: String -} -type AvailabilityNotAvailableTime { - resourceType: String - description: String - during: Period - extension: [Extension] - id: String -} -type GroupCharacteristic { - period: Period - code: CodeableConcept - valueBoolean: String - valueQuantity: Quantity - valueRange: Range - extension: [Extension] - modifierExtension: [Extension] - resourceType: String - exclude: String - valueCodeableConcept: CodeableConcept - id: String -} -type MedicationAdministrationDosage { + ): SpecimenType! + meta: Meta + condition: [CodeableConcept] + feature: [SpecimenFeature] + contained: [ResourceUnion] id: String - modifierExtension: [Extension] - rateQuantity: Quantity - text: String + processing: [SpecimenProcessing] extension: [Extension] - dose: Quantity - site: CodeableConcept - method: CodeableConcept - rateRatio: Ratio - route: CodeableConcept - resourceType: String -} -union MedicationRequestDispenseRequestDispenserInstructionUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type MedicationRequestDispenseRequest { - expectedSupplyDuration: Duration - initialFill: MedicationRequestDispenseRequestInitialFill - modifierExtension: [Extension] - resourceType: String - validityPeriod: Period - doseAdministrationAid: CodeableConcept - id: String - dispenseInterval: Duration - dispenser( + identifier: [Identifier] + collection( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): SpecimenCollectionUnion! + receivedTime: String + role: [CodeableConcept] + language: String + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - dispenserInstruction( + ): SpecimenNoteUnion! + status: String +} +type PractitionerQualification { + code: CodeableConcept + extension: [Extension] + id: String + identifier: [Identifier] + issuer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestDispenseRequestDispenserInstructionUnion] - quantity: Quantity + ): OrganizationType! + modifierExtension: [Extension] + period: Period + resourceType: String +} +type Immunization { + reaction: [ImmunizationReaction] + note: [Annotation] + programEligibility: [ImmunizationProgramEligibility] + occurrenceDateTime: String + vaccineCode: CodeableConcept + language: String + contained: [ResourceUnion] + statusReason: CodeableConcept + text: Narrative + reason: [CodeableReference] + performer: [ImmunizationPerformer] + meta: Meta + protocolApplied: [ImmunizationProtocolApplied] + administeredProduct: CodeableReference + fundingSource: CodeableConcept + subpotentReason: [CodeableConcept] + manufacturer: CodeableReference + occurrenceString: String + doseQuantity: Quantity + identifier: [Identifier] + primarySource: String + informationSource: CodeableReference + id: String + isSubpotent: String + site: CodeableConcept + lotNumber: String + resourceType: String extension: [Extension] - numberOfRepeatsAllowed: String + implicitRules: String + expirationDate: String + route: CodeableConcept + modifierExtension: [Extension] + status: String } -type ResearchStudyProgressStatus { +type Attachment { + frames: String + size: String + title: String + creation: String + height: String + data: String + language: String + hash: String resourceType: String - state: CodeableConcept - actual: String + extension: [Extension] + pages: String + duration: String + contentType: String + id: String + url: String + width: String +} +type ImagingStudySeriesInstance { + title: String + uid: String extension: [Extension] id: String modifierExtension: [Extension] - period: Period + number: String + resourceType: String + sopClass: Coding } -type SubstanceDefinitionStructureRepresentation { - document( +type SubstanceDefinitionName { + id: String + modifierExtension: [Extension] + name: String + source( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] - extension: [Extension] - format: CodeableConcept - id: String - modifierExtension: [Extension] - representation: String + ): DocumentReferenceType! + preferred: String + translation: [SubstanceDefinitionName] + jurisdiction: [CodeableConcept] resourceType: String + domain: [CodeableConcept] + official: [SubstanceDefinitionNameOfficial] + synonym: [SubstanceDefinitionName] + extension: [Extension] type: CodeableConcept + language: [CodeableConcept] + status: CodeableConcept } -type TimingRepeat { - boundsRange: Range - countMax: String - durationUnit: String - duration: String - periodUnit: String - resourceType: String - count: String +type Address { + country: String extension: [Extension] - when: String + use: String + district: String + period: Period + resourceType: String + text: String + city: String + postalCode: String + line: String + state: String + type: String id: String - durationMax: String - period: String - boundsDuration: Duration - frequencyMax: String - frequency: String - periodMax: String - boundsPeriod: Period - dayOfWeek: String - timeOfDay: String - offset: String } -type Age { - code: String - comparator: String +type Narrative { extension: [Extension] id: String resourceType: String - system: String - unit: String - value: String -} -type VirtualServiceDetail { - resourceType: String - additionalInfo: String - addressContactPoint: ContactPoint - addressExtendedContactDetail: ExtendedContactDetail - sessionKey: String - extension: [Extension] - id: String - addressString: String - addressUrl: String - channelType: Coding - maxParticipants: String + status: String + div: String } -type DocumentReferenceContentProfile { - valueUri: String +type SpecimenProcessing { extension: [Extension] - id: String + description: String modifierExtension: [Extension] resourceType: String - valueCanonical: String - valueCoding: Coding -} -type Count { - extension: [Extension] + additive( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): SubstanceType! + method: CodeableConcept + timeDateTime: String id: String - resourceType: String - system: String - unit: String - value: String - code: String - comparator: String + timePeriod: Period } -union SignatureOnBehalfOfUnion = - PractitionerType +union GroupManagingEntityUnion = + OrganizationType + | PractitionerType | PractitionerRoleType - | PatientType +union GroupMemberUnion = + GroupType | OrganizationType -union SignatureWhoUnion = - PractitionerType - | PractitionerRoleType | PatientType - | OrganizationType -type Signature { - who( + | PractitionerType + | PractitionerRoleType + | SpecimenType +type GroupType { + language: String + extension: [Extension] + implicitRules: String + identifier: [Identifier] + member( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SignatureWhoUnion] - data: String - resourceType: String - sigFormat: String + ): GroupMemberUnion! id: String - when: String - onBehalfOf( + quantity: String + name: String + text: Narrative + contained: [ResourceUnion] + code: CodeableConcept + description: String + modifierExtension: [Extension] + active: String + resourceType: String + membership: String + type: String + characteristic: [GroupCharacteristic] + managingEntity( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SignatureOnBehalfOfUnion] - type: [Coding] - extension: [Extension] - targetFormat: String + ): GroupManagingEntityUnion! + meta: Meta } -union UsageContextValueReferenceUnion = - ResearchStudyType - | GroupType - | OrganizationType -type UsageContext { - extension: [Extension] +union PatientGeneralPractitionerUnion = + OrganizationType + | PractitionerType + | PractitionerRoleType +union PatientLinkUnion = PatientType +type PatientType { + managingOrganization( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): OrganizationType! + contact: [PatientContact] + gender: String + link( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): PatientLinkUnion! + implicitRules: String + multipleBirthInteger: String id: String + meta: Meta + contained: [ResourceUnion] + communication: [PatientCommunication] + birthDate: String + identifier: [Identifier] resourceType: String - valueCodeableConcept: CodeableConcept - valueQuantity: Quantity - valueRange: Range - valueReference( + generalPractitioner( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [UsageContextValueReferenceUnion] - code: Coding -} -type ContactPoint { - extension: [Extension] - id: String - period: Period - rank: String - resourceType: String - system: String - use: String - value: String -} -type Duration { - code: String - comparator: String + ): PatientGeneralPractitionerUnion! + language: String + deceasedDateTime: String + telecom: [ContactPoint] + photo: [Attachment] + text: Narrative + multipleBirthBoolean: String + address: [Address] + maritalStatus: CodeableConcept + modifierExtension: [Extension] extension: [Extension] - id: String - resourceType: String - system: String - unit: String - value: String + name: [HumanName] + active: String + deceasedBoolean: String } -union FamilyMemberHistoryProcedureNoteUnion = +union FamilyMemberHistoryConditionNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type FamilyMemberHistoryProcedure { +type FamilyMemberHistoryCondition { + onsetPeriod: Period + id: String + outcome: CodeableConcept + resourceType: String + onsetRange: Range + code: CodeableConcept modifierExtension: [Extension] + extension: [Extension] + onsetString: String + contributedToDeath: String note( offset: Int first: Int @@ -1072,538 +811,504 @@ type FamilyMemberHistoryProcedure { sort: JSON accessibility: Accessibility = all format: Format = json - ): [FamilyMemberHistoryProcedureNoteUnion] - performedDateTime: String - performedRange: Range - contributedToDeath: String - performedAge: Age - performedPeriod: Period - performedString: String + ): FamilyMemberHistoryConditionNoteUnion! + onsetAge: Age +} +type EncounterReason { + value: [CodeableReference] + extension: [Extension] + id: String + modifierExtension: [Extension] resourceType: String + use: [CodeableConcept] +} +type Dosage { + doseAndRate: [DosageDoseAndRate] + additionalInstruction: [CodeableConcept] + route: CodeableConcept + timing: Timing id: String + modifierExtension: [Extension] + resourceType: String + text: String + sequence: String + asNeeded: String + site: CodeableConcept extension: [Extension] - code: CodeableConcept - outcome: CodeableConcept + patientInstruction: String + asNeededFor: [CodeableConcept] + maxDosePerLifetime: Quantity + method: CodeableConcept + maxDosePerPeriod: [Ratio] + maxDosePerAdministration: Quantity } -union ResearchStudyRecruitmentEligibilityUnion = GroupType -type ResearchStudyRecruitment { - targetNumber: String - actualGroup( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [GroupType] - actualNumber: String - eligibility( +type ImmunizationProgramEligibility { + extension: [Extension] + id: String + modifierExtension: [Extension] + program: CodeableConcept + programStatus: CodeableConcept + resourceType: String +} +union ConditionStageAssessmentUnion = DiagnosticReportType | ObservationType +type ConditionStage { + resourceType: String + summary: CodeableConcept + type: CodeableConcept + assessment( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyRecruitmentEligibilityUnion] + ): ConditionStageAssessmentUnion! extension: [Extension] id: String modifierExtension: [Extension] +} +type BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark { + id: String + modifierExtension: [Extension] resourceType: String + value: [Quantity] + device: [CodeableReference] + extension: [Extension] } -union TaskRestrictionRecipientUnion = - PatientType - | PractitionerType - | PractitionerRoleType - | GroupType - | OrganizationType -type TaskRestriction { +type SampledData { + intervalUnit: String resourceType: String + lowerLimit: String + factor: String + id: String extension: [Extension] + upperLimit: String + dimensions: String + interval: String + offsets: String + origin: Quantity + codeMap: String + data: String +} +union ImagingStudySeriesPerformerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type ImagingStudySeries { + laterality: CodeableConcept + uid: String + description: String id: String - modifierExtension: [Extension] - period: Period - recipient( + instance: [ImagingStudySeriesInstance] + modality: CodeableConcept + performer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskRestrictionRecipientUnion] - repetitions: String -} -type DataRequirementValueFilter { - extension: [Extension] - id: String - path: String - comparator: String + ): ImagingStudySeriesPerformerUnion! resourceType: String - searchParam: String - valueDateTime: String - valueDuration: Duration - valuePeriod: Period -} -type SubstanceIngredient { - substanceReference( + started: String + extension: [Extension] + modifierExtension: [Extension] + numberOfInstances: String + bodySite: CodeableReference + number: String + specimen( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SubstanceType] - extension: [Extension] - id: String - modifierExtension: [Extension] - quantity: Ratio - resourceType: String - substanceCodeableConcept: CodeableConcept + ): SpecimenType! } -union SpecimenSubjectUnion = PatientType | GroupType | SubstanceType -union SpecimenCollectionUnion = - PractitionerType +union MedicationStatementInformationSourceUnion = + PatientType + | PractitionerType | PractitionerRoleType - | PatientType -union SpecimenNoteUnion = + | OrganizationType +union MedicationStatementPartOfUnion = ProcedureType | MedicationStatementType +union MedicationStatementRelatedClinicalInformationUnion = + ObservationType + | ConditionType +union MedicationStatementSubjectUnion = PatientType | GroupType +union MedicationStatementNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type SpecimenType { - identifier: [Identifier] +type MedicationStatementType { text: Narrative - contained: [ResourceUnion] - combined: String - role: [CodeableConcept] - extension: [Extension] - type: CodeableConcept - resourceType: String - id: String - parent( + identifier: [Identifier] + reason: [CodeableReference] + implicitRules: String + medication: CodeableReference + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenType] - modifierExtension: [Extension] - status: String - condition: [CodeableConcept] - meta: Meta - receivedTime: String - feature: [SpecimenFeature] - collection( + ): MedicationStatementNoteUnion! + category: [CodeableConcept] + id: String + informationSource( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenCollectionUnion] - subject( + ): MedicationStatementInformationSourceUnion! + relatedClinicalInformation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenSubjectUnion] - accessionIdentifier: Identifier - container: [SpecimenContainer] - language: String - processing: [SpecimenProcessing] - implicitRules: String - note( + ): MedicationStatementRelatedClinicalInformationUnion! + effectiveTiming: Timing + effectiveDateTime: String + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenNoteUnion] -} -type DiagnosticReportMedia { + ): MedicationStatementSubjectUnion! + effectivePeriod: Period modifierExtension: [Extension] - resourceType: String - comment: String - extension: [Extension] - id: String - link( + derivedFrom( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] -} -type Identifier { - type: CodeableConcept - extension: [Extension] - period: Period - system: String - value: String - assigner( + ): ResourceUnion! + adherence: MedicationStatementAdherence + language: String + resourceType: String + renderedDosageInstruction: String + contained: [ResourceUnion] + meta: Meta + dosage: [Dosage] + status: String + dateAsserted: String + extension: [Extension] + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - id: String - resourceType: String - use: String -} -type PatientCommunication { - resourceType: String - extension: [Extension] - id: String - language: CodeableConcept - modifierExtension: [Extension] - preferred: String + ): MedicationStatementPartOfUnion! } -type Reference { - resourceType: String - type: String - display: String +type OrganizationQualification { extension: [Extension] id: String - identifier: Identifier - reference: String -} -union SpecimenCollectionCollectorUnion = - PractitionerType - | PractitionerRoleType - | PatientType -type SpecimenCollection { - extension: [Extension] - method: CodeableConcept - modifierExtension: [Extension] - quantity: Quantity - bodySite: CodeableReference - collector( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [SpecimenCollectionCollectorUnion] - fastingStatusCodeableConcept: CodeableConcept - collectedPeriod: Period - fastingStatusDuration: Duration - procedure( + identifier: [Identifier] + issuer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureType] - device: CodeableReference - collectedDateTime: String - duration: Duration - id: String + ): OrganizationType! + modifierExtension: [Extension] + period: Period resourceType: String + code: CodeableConcept } -type BodyStructureIncludedStructure { +type FHIRPrimitiveExtension { + resourceType: String extension: [Extension] id: String - laterality: CodeableConcept - modifierExtension: [Extension] - qualifier: [CodeableConcept] - resourceType: String - structure: CodeableConcept - bodyLandmarkOrientation: [BodyStructureIncludedStructureBodyLandmarkOrientation] } -union MedicationRequestPerformerUnion = - PractitionerType - | PractitionerRoleType +union DiagnosticReportSubjectUnion = + PatientType + | GroupType | OrganizationType - | PatientType -union MedicationRequestRecorderUnion = PractitionerType | PractitionerRoleType -union MedicationRequestRequesterUnion = + | PractitionerType + | MedicationType + | SubstanceType +union DiagnosticReportNoteUnion = PractitionerType | PractitionerRoleType - | OrganizationType | PatientType -union MedicationRequestSubjectUnion = PatientType | GroupType -union MedicationRequestNoteUnion = + | OrganizationType +union DiagnosticReportSupportingInfoUnion = + ProcedureType + | ObservationType + | DiagnosticReportType +union DiagnosticReportBasedOnUnion = MedicationRequestType +union DiagnosticReportPerformerUnion = PractitionerType | PractitionerRoleType - | PatientType | OrganizationType -union MedicationRequestBasedOnUnion = MedicationRequestType -union MedicationRequestInformationSourceUnion = - PatientType - | PractitionerType +union DiagnosticReportResultsInterpreterUnion = + PractitionerType | PractitionerRoleType | OrganizationType -type MedicationRequestType { - medication: CodeableReference - resourceType: String - reason: [CodeableReference] - statusChanged: String - courseOfTherapyType: CodeableConcept - effectiveDosePeriod: Period - device: [CodeableReference] - supportingInformation( +union DiagnosticReportStudyUnion = ImagingStudyType +type DiagnosticReportType { + supportingInfo( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - performer( + ): DiagnosticReportSupportingInfoUnion! + specimen( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestPerformerUnion] - authoredOn: String - note( + ): SpecimenType! + contained: [ResourceUnion] + language: String + meta: Meta + resultsInterpreter( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestNoteUnion] - text: Narrative + ): DiagnosticReportResultsInterpreterUnion! id: String - language: String - status: String - implicitRules: String - requester( + basedOn( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestRequesterUnion] - groupIdentifier: Identifier - statusReason: CodeableConcept - intent: String - dosageInstruction: [Dosage] - informationSource( + ): DiagnosticReportBasedOnUnion! + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestInformationSourceUnion] - performerType: CodeableConcept - identifier: [Identifier] + ): DiagnosticReportNoteUnion! modifierExtension: [Extension] + effectiveDateTime: String category: [CodeableConcept] - recorder( + identifier: [Identifier] + effectivePeriod: Period + resourceType: String + code: CodeableConcept + extension: [Extension] + presentedForm: [Attachment] + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestRecorderUnion] - priorPrescription( + ): DiagnosticReportSubjectUnion! + study( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestType] - meta: Meta - basedOn( + ): DiagnosticReportStudyUnion! + media: [DiagnosticReportMedia] + text: Narrative + conclusionCode: [CodeableConcept] + result( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestBasedOnUnion] - extension: [Extension] - renderedDosageInstruction: String - reported: String - substitution: MedicationRequestSubstitution - doNotPerform: String - contained: [ResourceUnion] - subject( + ): ObservationType! + implicitRules: String + issued: String + performer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationRequestSubjectUnion] - dispenseRequest: MedicationRequestDispenseRequest - priority: String + ): DiagnosticReportPerformerUnion! + status: String + conclusion: String } -type ImmunizationReaction { - manifestation: CodeableReference - modifierExtension: [Extension] - reported: String +type PatientCommunication { + preferred: String resourceType: String - date: String extension: [Extension] id: String + language: CodeableConcept + modifierExtension: [Extension] } -type Ratio { +type SpecimenContainer { extension: [Extension] id: String - numerator: Quantity - resourceType: String - denominator: Quantity -} -type Dosage { - asNeededFor: [CodeableConcept] - doseAndRate: [DosageDoseAndRate] - route: CodeableConcept - method: CodeableConcept modifierExtension: [Extension] - patientInstruction: String - text: String - extension: [Extension] - site: CodeableConcept - maxDosePerAdministration: Quantity - maxDosePerLifetime: Quantity resourceType: String - additionalInstruction: [CodeableConcept] - asNeeded: String - timing: Timing - id: String - sequence: String - maxDosePerPeriod: [Ratio] + specimenQuantity: Quantity } -union PatientGeneralPractitionerUnion = - OrganizationType - | PractitionerType +union MedicationAdministrationPartOfUnion = + MedicationAdministrationType + | ProcedureType +union MedicationAdministrationSubjectUnion = PatientType | GroupType +union MedicationAdministrationNoteUnion = + PractitionerType | PractitionerRoleType -union PatientLinkUnion = PatientType -type PatientType { - modifierExtension: [Extension] - gender: String - extension: [Extension] - deceasedBoolean: String - address: [Address] - link( + | PatientType + | OrganizationType +type MedicationAdministrationType { + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [PatientLinkUnion] - identifier: [Identifier] - generalPractitioner( + ): MedicationAdministrationNoteUnion! + dosage: MedicationAdministrationDosage + language: String + request( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [PatientGeneralPractitionerUnion] + ): MedicationRequestType! + reason: [CodeableReference] + occurencePeriod: Period + resourceType: String + text: Narrative + medication: CodeableReference implicitRules: String + category: [CodeableConcept] meta: Meta - multipleBirthInteger: String - multipleBirthBoolean: String - text: Narrative - managingOrganization( + isSubPotent: String + recorded: String + performer: [MedicationAdministrationPerformer] + statusReason: [CodeableConcept] + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - active: String - birthDate: String - deceasedDateTime: String - id: String - name: [HumanName] - photo: [Attachment] + ): MedicationAdministrationSubjectUnion! contained: [ResourceUnion] - contact: [PatientContact] - maritalStatus: CodeableConcept - communication: [PatientCommunication] - telecom: [ContactPoint] - language: String - resourceType: String -} -type SubstanceDefinitionStructure { - sourceDocument( + extension: [Extension] + partOf( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): MedicationAdministrationPartOfUnion! + occurenceTiming: Timing + subPotentReason: [CodeableConcept] + supportingInformation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] - modifierExtension: [Extension] - molecularFormula: String - resourceType: String + ): ResourceUnion! + status: String id: String - stereochemistry: CodeableConcept - technique: [CodeableConcept] - opticalActivity: CodeableConcept - molecularFormulaByMoiety: String - molecularWeight: SubstanceDefinitionMolecularWeight - representation: [SubstanceDefinitionStructureRepresentation] - extension: [Extension] + occurenceDateTime: String + modifierExtension: [Extension] + device: [CodeableReference] + identifier: [Identifier] } -type AvailabilityAvailableTime { - availableStartTime: String - daysOfWeek: String +type SubstanceDefinitionMolecularWeight { + resourceType: String + type: CodeableConcept + amount: Quantity extension: [Extension] id: String - resourceType: String - allDay: String - availableEndTime: String + method: CodeableConcept + modifierExtension: [Extension] } -type ContactDetail { - telecom: [ContactPoint] +type Meta { + lastUpdated: String + security: [Coding] extension: [Extension] + resourceType: String + versionId: String + tag: [Coding] id: String + profile: String + source: String +} +type ParameterDefinition { + max: String name: String + documentation: String + id: String resourceType: String + extension: [Extension] + profile: String + use: String + min: String + type: String } -union MedicationStatementInformationSourceUnion = +union MedicationRequestNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union MedicationRequestBasedOnUnion = MedicationRequestType +union MedicationRequestInformationSourceUnion = PatientType | PractitionerType | PractitionerRoleType | OrganizationType -union MedicationStatementPartOfUnion = ProcedureType | MedicationStatementType -union MedicationStatementRelatedClinicalInformationUnion = - ObservationType - | ConditionType -union MedicationStatementSubjectUnion = PatientType | GroupType -union MedicationStatementNoteUnion = +union MedicationRequestPerformerUnion = PractitionerType | PractitionerRoleType + | OrganizationType | PatientType +union MedicationRequestRecorderUnion = PractitionerType | PractitionerRoleType +union MedicationRequestRequesterUnion = + PractitionerType + | PractitionerRoleType | OrganizationType -type MedicationStatementType { - relatedClinicalInformation( + | PatientType +union MedicationRequestSubjectUnion = PatientType | GroupType +type MedicationRequestType { + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationStatementRelatedClinicalInformationUnion] - meta: Meta - effectivePeriod: Period - dosage: [Dosage] - category: [CodeableConcept] - contained: [ResourceUnion] - effectiveDateTime: String - identifier: [Identifier] + ): MedicationRequestSubjectUnion! + dosageInstruction: [Dosage] note( offset: Int first: Int @@ -1611,505 +1316,637 @@ type MedicationStatementType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationStatementNoteUnion] - implicitRules: String + ): MedicationRequestNoteUnion! + category: [CodeableConcept] medication: CodeableReference - renderedDosageInstruction: String - derivedFrom( + priority: String + contained: [ResourceUnion] + modifierExtension: [Extension] + courseOfTherapyType: CodeableConcept + dispenseRequest: MedicationRequestDispenseRequest + text: Narrative + effectiveDosePeriod: Period + extension: [Extension] + performerType: CodeableConcept + groupIdentifier: Identifier + substitution: MedicationRequestSubstitution + status: String + supportingInformation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - subject( + ): ResourceUnion! + informationSource( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationStatementSubjectUnion] - adherence: MedicationStatementAdherence - reason: [CodeableReference] - text: Narrative - language: String - partOf( + ): MedicationRequestInformationSourceUnion! + doNotPerform: String + reported: String + performer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationStatementPartOfUnion] - modifierExtension: [Extension] - dateAsserted: String - extension: [Extension] - id: String - effectiveTiming: Timing - informationSource( + ): MedicationRequestPerformerUnion! + basedOn( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [MedicationStatementInformationSourceUnion] - status: String - resourceType: String -} -type MedicationStatementAdherence { - extension: [Extension] - id: String - modifierExtension: [Extension] - reason: CodeableConcept - resourceType: String - code: CodeableConcept -} -type ProcedureFocalDevice { - action: CodeableConcept - extension: [Extension] - id: String - modifierExtension: [Extension] - resourceType: String -} -type Attachment { - width: String - pages: String - extension: [Extension] - data: String - size: String - duration: String - title: String - creation: String - height: String - frames: String - hash: String - url: String - resourceType: String - id: String - contentType: String + ): MedicationRequestBasedOnUnion! + identifier: [Identifier] + statusReason: CodeableConcept + renderedDosageInstruction: String + recorder( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): MedicationRequestRecorderUnion! + authoredOn: String + intent: String language: String -} -type PractitionerQualification { - issuer( + reason: [CodeableReference] + meta: Meta + requester( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - modifierExtension: [Extension] - period: Period + ): MedicationRequestRequesterUnion! + priorPrescription( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): MedicationRequestType! + device: [CodeableReference] resourceType: String - code: CodeableConcept - extension: [Extension] + statusChanged: String + implicitRules: String id: String - identifier: [Identifier] } -type ResearchStudyObjective { - description: String +type AvailabilityNotAvailableTime { + during: Period extension: [Extension] id: String - modifierExtension: [Extension] - name: String resourceType: String - type: CodeableConcept + description: String } -union GroupMemberEntityUnion = - GroupType - | OrganizationType - | PatientType - | PractitionerType - | PractitionerRoleType - | SpecimenType -type GroupMember { - entity( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [GroupMemberEntityUnion] +type ProcedureFocalDevice { extension: [Extension] id: String - inactive: String modifierExtension: [Extension] - period: Period resourceType: String + action: CodeableConcept } -union ConditionSubjectUnion = PatientType | GroupType -union ConditionNoteUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union ConditionParticipantUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union ConditionStageUnion = DiagnosticReportType | ObservationType -type ConditionType { - contained: [ResourceUnion] - abatementAge: Age - onsetDateTime: String - verificationStatus: CodeableConcept - code: CodeableConcept - language: String - text: Narrative - abatementString: String - clinicalStatus: CodeableConcept - modifierExtension: [Extension] - abatementRange: Range +type ObservationReferenceRange { resourceType: String - recordedDate: String - severity: CodeableConcept - implicitRules: String - onsetAge: Age - evidence: [CodeableReference] - meta: Meta - stage( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ConditionStageUnion] - category: [CodeableConcept] - onsetRange: Range - subject( + type: CodeableConcept + extension: [Extension] + low: Quantity + high: Quantity + normalValue: CodeableConcept + appliesTo: [CodeableConcept] + id: String + text: String + age: Range + modifierExtension: [Extension] +} +union PatientLinkOtherUnion = PatientType +type PatientLink { + resourceType: String + type: String + extension: [Extension] + id: String + modifierExtension: [Extension] + other( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ConditionSubjectUnion] - abatementPeriod: Period - id: String - bodySite: [CodeableConcept] - onsetString: String - abatementDateTime: String + ): PatientLinkOtherUnion! +} +type PatientContact { extension: [Extension] - participant( + period: Period + gender: String + id: String + telecom: [ContactPoint] + name: HumanName + organization( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ConditionParticipantUnion] - note( + ): OrganizationType! + relationship: [CodeableConcept] + resourceType: String + address: Address + modifierExtension: [Extension] +} +type ResearchStudyLabel { + type: CodeableConcept + value: String + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String +} +type MedicationType { + meta: Meta + text: Narrative + marketingAuthorizationHolder( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ConditionNoteUnion] + ): OrganizationType! + modifierExtension: [Extension] + totalVolume: Quantity + language: String + doseForm: CodeableConcept + resourceType: String + implicitRules: String + ingredient: [MedicationIngredient] + contained: [ResourceUnion] + extension: [Extension] identifier: [Identifier] - onsetPeriod: Period + id: String + status: String + batch: MedicationBatch + code: CodeableConcept } -type EncounterDiagnosis { +type Duration { + id: String resourceType: String - use: [CodeableConcept] - condition: [CodeableReference] + system: String + unit: String + value: String + code: String + comparator: String extension: [Extension] - id: String - modifierExtension: [Extension] } -union FamilyMemberHistoryConditionNoteUnion = +union AnnotationAuthorReferenceUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type FamilyMemberHistoryCondition { - onsetPeriod: Period - extension: [Extension] - note( +type Annotation { + resourceType: String + text: String + time: String + authorReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [FamilyMemberHistoryConditionNoteUnion] - onsetAge: Age - onsetRange: Range + ): AnnotationAuthorReferenceUnion! + authorString: String + extension: [Extension] + id: String +} +union DiagnosticReportSupportingInfoReferenceUnion = + ProcedureType + | ObservationType + | DiagnosticReportType +type DiagnosticReportSupportingInfo { resourceType: String - contributedToDeath: String + type: CodeableConcept + extension: [Extension] id: String - code: CodeableConcept - onsetString: String - outcome: CodeableConcept modifierExtension: [Extension] -} -type RelatedArtifact { - display: String - publicationDate: String - publicationStatus: String - classifier: [CodeableConcept] - document: Attachment - resourceReference( + reference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - extension: [Extension] - id: String - label: String - citation: String - resource: String - type: String - resourceType: String + ): DiagnosticReportSupportingInfoReferenceUnion! } -type CodeableReference { +type Period { + start: String + end: String extension: [Extension] id: String resourceType: String - concept: CodeableConcept } -type ImmunizationProtocolApplied { - seriesDoses: String - targetDisease: [CodeableConcept] - doseNumber: String +type SubstanceIngredient { + resourceType: String + substanceCodeableConcept: CodeableConcept + substanceReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): SubstanceType! extension: [Extension] id: String modifierExtension: [Extension] - resourceType: String - series: String + quantity: Ratio } -union ObservationSpecimenUnion = SpecimenType | GroupType -union ObservationSubjectUnion = - PatientType - | GroupType - | OrganizationType - | ProcedureType - | PractitionerType - | MedicationType - | SubstanceType -union ObservationNoteUnion = +union TaskInputValueAnnotationUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ObservationBasedOnUnion = MedicationRequestType -union ObservationDerivedFromUnion = - DocumentReferenceType - | ImagingStudyType - | ObservationType -union ObservationHasMemberUnion = ObservationType -union ObservationPartOfUnion = - MedicationAdministrationType - | MedicationStatementType - | ProcedureType - | ImagingStudyType -union ObservationPerformerUnion = +union TaskInputValueSignatureUnion = PractitionerType | PractitionerRoleType - | OrganizationType | PatientType -type ObservationType { - effectivePeriod: Period - derivedFrom( + | OrganizationType +union TaskInputValueUsageContextUnion = + ResearchStudyType + | GroupType + | OrganizationType +type TaskInput { + valueBase64Binary: String + valueCode: String + valueTriggerDefinition: TriggerDefinition + valueUsageContext( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationDerivedFromUnion] - effectiveInstant: String - valuePeriod: Period - instantiatesCanonical: String - referenceRange: [ObservationReferenceRange] - code: CodeableConcept - category: [CodeableConcept] - valueBoolean: String - performer( + ): TaskInputValueUsageContextUnion! + valueDataRequirement: DataRequirement + valueUuid: String + valueOid: String + valueRatio: Ratio + type: CodeableConcept + valueCodeableReference: CodeableReference + valueId: String + valueInstant: String + valueHumanName: HumanName + valueMoney: Money + valueSignature( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationPerformerUnion] - bodySite: CodeableConcept - text: Narrative - valueQuantity: Quantity + ): TaskInputValueSignatureUnion! + valueAvailability: Availability + valueUnsignedInt: String + valueMarkdown: String valueString: String - id: String - modifierExtension: [Extension] - contained: [ResourceUnion] - valueAttachment: Attachment - issued: String - implicitRules: String - meta: Meta - method: CodeableConcept - bodyStructure( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [BodyStructureType] - effectiveDateTime: String - valueRatio: Ratio - interpretation: [CodeableConcept] - valueDateTime: String + valueSampledData: SampledData + valueDistance: Distance + valueAge: Age valueTime: String - dataAbsentReason: CodeableConcept - resourceType: String - note( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ObservationNoteUnion] - basedOn( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ObservationBasedOnUnion] - focus( + valueRange: Range + valueAnnotation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): ResourceUnion + ): TaskInputValueAnnotationUnion! + valueUrl: String + modifierExtension: [Extension] + valueInteger64: String + valueAttachment: Attachment + valueInteger: String + valueDosage: Dosage + valueExpression: Expression + valueContactPoint: ContactPoint + valueMeta: Meta + resourceType: String + valueDate: String + valueDateTime: String + valueExtendedContactDetail: ExtendedContactDetail + valueRatioRange: RatioRange + valueAddress: Address + id: String + valueQuantity: Quantity + valueTiming: Timing + valuePositiveInt: String + valuePeriod: Period + valueCount: Count + valueDuration: Duration + valueCanonical: String + valueParameterDefinition: ParameterDefinition + valueRelatedArtifact: RelatedArtifact + extension: [Extension] + valueContactDetail: ContactDetail + valueUri: String + valueDecimal: String + valueBoolean: String + valueIdentifier: Identifier valueCodeableConcept: CodeableConcept - hasMember( + valueCoding: Coding +} +type HumanName { + given: String + resourceType: String + use: String + family: String + suffix: String + id: String + period: Period + prefix: String + extension: [Extension] + text: String +} +type SubstanceDefinitionStructure { + stereochemistry: CodeableConcept + modifierExtension: [Extension] + resourceType: String + technique: [CodeableConcept] + molecularWeight: SubstanceDefinitionMolecularWeight + opticalActivity: CodeableConcept + sourceDocument( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationHasMemberUnion] - valueInteger: String - language: String - identifier: [Identifier] - valueSampledData: SampledData - subject( + ): DocumentReferenceType! + extension: [Extension] + id: String + molecularFormula: String + representation: [SubstanceDefinitionStructureRepresentation] + molecularFormulaByMoiety: String +} +union TaskPerformerActorUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type TaskPerformer { + actor( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): ObservationSubjectUnion + ): TaskPerformerActorUnion! extension: [Extension] - triggeredBy: [ObservationTriggeredBy] - specimen( + function: CodeableConcept + id: String + modifierExtension: [Extension] + resourceType: String +} +type AvailabilityAvailableTime { + availableStartTime: String + daysOfWeek: String + extension: [Extension] + id: String + resourceType: String + allDay: String + availableEndTime: String +} +type Reference { + identifier: Identifier + reference: String + resourceType: String + type: String + display: String + extension: [Extension] + id: String +} +type DataRequirementDateFilter { + resourceType: String + searchParam: String + valueDateTime: String + valueDuration: Duration + valuePeriod: Period + extension: [Extension] + id: String + path: String +} +type DocumentReferenceRelatesTo { + code: CodeableConcept + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String + target( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationSpecimenUnion] - partOf( + ): DocumentReferenceType! +} +union FamilyMemberHistoryParticipantActorUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryParticipant { + extension: [Extension] + function: CodeableConcept + id: String + modifierExtension: [Extension] + resourceType: String + actor( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationPartOfUnion] - component: [ObservationComponent] - effectiveTiming: Timing - valueRange: Range - status: String + ): FamilyMemberHistoryParticipantActorUnion! } -union ProcedureFocusUnion = - PatientType - | GroupType - | PractitionerType - | OrganizationType - | PractitionerRoleType - | SpecimenType -union ProcedurePartOfUnion = - ProcedureType - | ObservationType - | MedicationAdministrationType -union ProcedureRecorderUnion = - PatientType - | PractitionerType - | PractitionerRoleType -union ProcedureReportUnion = DiagnosticReportType | DocumentReferenceType -union ProcedureReportedReferenceUnion = - PatientType - | PractitionerType - | PractitionerRoleType - | OrganizationType -union ProcedureSubjectUnion = - PatientType - | GroupType - | PractitionerType - | OrganizationType -union ProcedureNoteUnion = +union TaskOutputValueAnnotationUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ProcedurePerformerUnion = +union TaskOutputValueSignatureUnion = PractitionerType | PractitionerRoleType - | OrganizationType | PatientType -type ProcedureType { + | OrganizationType +union TaskOutputValueUsageContextUnion = + ResearchStudyType + | GroupType + | OrganizationType +type TaskOutput { + type: CodeableConcept + valueIdentifier: Identifier + valueRange: Range + valueUri: String + valueCodeableConcept: CodeableConcept + valueContactDetail: ContactDetail + valueInstant: String + valueDuration: Duration + id: String + valueTime: String + valueMoney: Money + valueRatioRange: RatioRange + valueInteger: String + valueDate: String + valueCount: Count + valueCodeableReference: CodeableReference + valueBoolean: String + valuePositiveInt: String resourceType: String - recorder( + valueDateTime: String + valueUnsignedInt: String + valueAddress: Address + valueTriggerDefinition: TriggerDefinition + valueDataRequirement: DataRequirement + valueParameterDefinition: ParameterDefinition + valueMeta: Meta + valueCode: String + valueExpression: Expression + valueSampledData: SampledData + valueMarkdown: String + valueDecimal: String + valueUrl: String + valueHumanName: HumanName + valueRelatedArtifact: RelatedArtifact + valueInteger64: String + valueAnnotation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureRecorderUnion] - occurrenceTiming: Timing - occurrenceString: String - outcome: CodeableConcept - reason: [CodeableReference] - reportedReference( + ): TaskOutputValueAnnotationUnion! + valueUsageContext( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureReportedReferenceUnion] - occurrencePeriod: Period - reportedBoolean: String + ): TaskOutputValueUsageContextUnion! + valueDosage: Dosage + valueDistance: Distance + valueAge: Age + valueRatio: Ratio + valueOid: String + valueExtendedContactDetail: ExtendedContactDetail + valueBase64Binary: String + modifierExtension: [Extension] + valueContactPoint: ContactPoint + valueSignature( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): TaskOutputValueSignatureUnion! + valueAvailability: Availability + valuePeriod: Period + valueQuantity: Quantity + valueCoding: Coding + valueTiming: Timing + valueCanonical: String + valueAttachment: Attachment + extension: [Extension] + valueString: String + valueUuid: String + valueId: String +} +type BodyStructureIncludedStructureBodyLandmarkOrientation { + resourceType: String + surfaceOrientation: [CodeableConcept] + clockFacePosition: [CodeableConcept] + distanceFromLandmark: [BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark] + extension: [Extension] + id: String + landmarkDescription: [CodeableConcept] + modifierExtension: [Extension] +} +type ImmunizationProtocolApplied { + modifierExtension: [Extension] + resourceType: String + series: String + seriesDoses: String + targetDisease: [CodeableConcept] + doseNumber: String + extension: [Extension] + id: String +} +type MedicationRequestDispenseRequestInitialFill { + duration: Duration + extension: [Extension] + id: String + modifierExtension: [Extension] + quantity: Quantity + resourceType: String +} +type Distance { + comparator: String extension: [Extension] - report( + id: String + resourceType: String + system: String + unit: String + value: String + code: String +} +union ImagingStudyBasedOnUnion = TaskType +union ImagingStudyReferrerUnion = PractitionerType | PractitionerRoleType +union ImagingStudySubjectUnion = PatientType | GroupType +union ImagingStudyNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type ImagingStudyType { + description: String + identifier: [Identifier] + contained: [ResourceUnion] + id: String + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureReportUnion] - code: CodeableConcept - category: [CodeableConcept] - used: [CodeableReference] - recorded: String + ): ImagingStudySubjectUnion! + status: String + text: Narrative + meta: Meta + series: [ImagingStudySeries] + extension: [Extension] + implicitRules: String + reason: [CodeableReference] + modality: [CodeableConcept] + resourceType: String partOf( offset: Int first: Int @@ -2117,26 +1954,19 @@ type ProcedureType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedurePartOfUnion] - statusReason: CodeableConcept + ): ProcedureType! modifierExtension: [Extension] - occurrenceRange: Range - followUp: [CodeableConcept] - occurrenceAge: Age - bodySite: [CodeableConcept] - id: String - focalDevice: [ProcedureFocalDevice] - text: Narrative - meta: Meta - supportingInfo( + referrer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - language: String + ): ImagingStudyReferrerUnion! + procedure: [CodeableReference] + started: String + numberOfSeries: String note( offset: Int first: Int @@ -2144,744 +1974,897 @@ type ProcedureType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureNoteUnion] - status: String - implicitRules: String - contained: [ResourceUnion] - performer( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ProcedurePerformerUnion] - instantiatesCanonical: String - complication: [CodeableReference] - occurrenceDateTime: String - identifier: [Identifier] - instantiatesUri: String - subject( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ProcedureSubjectUnion] - focus( + ): ImagingStudyNoteUnion! + basedOn( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureFocusUnion] + ): ImagingStudyBasedOnUnion! + language: String + numberOfInstances: String } -union ResearchSubjectSubjectUnion = - PatientType - | GroupType - | SpecimenType - | MedicationType - | SubstanceType -type ResearchSubjectType { - subject( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ResearchSubjectSubjectUnion] - text: Narrative - resourceType: String - implicitRules: String - meta: Meta - status: String +type EncounterDiagnosis { + use: [CodeableConcept] + condition: [CodeableReference] + extension: [Extension] id: String - contained: [ResourceUnion] - identifier: [Identifier] - progress: [ResearchSubjectProgress] - actualComparisonGroup: String - language: String modifierExtension: [Extension] - study( + resourceType: String +} +union ImagingStudySeriesPerformerActorUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type ImagingStudySeriesPerformer { + resourceType: String + actor( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyType] + ): ImagingStudySeriesPerformerActorUnion! extension: [Extension] - period: Period - assignedComparisonGroup: String + function: CodeableConcept + id: String + modifierExtension: [Extension] } -type SpecimenFeature { +type GroupCharacteristic { + valueRange: Range + code: CodeableConcept extension: [Extension] + period: Period + resourceType: String + valueBoolean: String + exclude: String + valueCodeableConcept: CodeableConcept id: String modifierExtension: [Extension] - resourceType: String - type: CodeableConcept - description: String + valueQuantity: Quantity } -type Address { - text: String - use: String +type SubstanceDefinitionNameOfficial { id: String - line: String - country: String - postalCode: String - state: String - city: String - district: String - period: Period + modifierExtension: [Extension] resourceType: String - type: String + status: CodeableConcept + authority: CodeableConcept + date: String extension: [Extension] } -type DocumentReferenceRelatesTo { - modifierExtension: [Extension] +type RatioRange { resourceType: String - target( + denominator: Quantity + extension: [Extension] + highNumerator: Quantity + id: String + lowNumerator: Quantity +} +union SignatureOnBehalfOfUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union SignatureWhoUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type Signature { + targetFormat: String + when: String + onBehalfOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceType] - code: CodeableConcept + ): SignatureOnBehalfOfUnion! + type: [Coding] extension: [Extension] + sigFormat: String + data: String id: String + resourceType: String + who( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): SignatureWhoUnion! } -type EncounterLocation { - period: Period +type ResearchStudyOutcomeMeasure { + name: String resourceType: String - status: String + type: [CodeableConcept] + description: String extension: [Extension] - form: CodeableConcept id: String modifierExtension: [Extension] } -type SampledData { +type CodeableReference { resourceType: String - origin: Quantity - codeMap: String - intervalUnit: String - lowerLimit: String - upperLimit: String + concept: CodeableConcept extension: [Extension] id: String - dimensions: String - factor: String - interval: String - offsets: String - data: String } -type TriggerDefinition { - condition: Expression - name: String - data: [DataRequirement] - extension: [Extension] - id: String - timingTiming: Timing - code: CodeableConcept - timingDateTime: String - type: String +type PractitionerCommunication { + preferred: String resourceType: String - timingDate: String - subscriptionTopic: String -} -type Availability { - availableTime: [AvailabilityAvailableTime] extension: [Extension] id: String - notAvailableTime: [AvailabilityNotAvailableTime] - resourceType: String -} -type HumanName { - suffix: String - use: String - family: String - given: String - id: String - prefix: String - extension: [Extension] - resourceType: String - period: Period - text: String + language: CodeableConcept + modifierExtension: [Extension] } -union ImagingStudySeriesPerformerUnion = +union TaskOwnerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +union TaskRequesterUnion = + OrganizationType + | PatientType + | PractitionerType + | PractitionerRoleType +union TaskNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union TaskPerformerUnion = PractitionerType | PractitionerRoleType | OrganizationType | PatientType -type ImagingStudySeries { - bodySite: CodeableReference - resourceType: String +union TaskRestrictionUnion = + PatientType + | PractitionerType + | PractitionerRoleType + | GroupType + | OrganizationType +type TaskType { + instantiatesUri: String + owner( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): TaskOwnerUnion! id: String - started: String - extension: [Extension] - numberOfInstances: String - uid: String - laterality: CodeableConcept - modality: CodeableConcept - performer( + intent: String + code: CodeableConcept + requestedPeriod: Period + restriction( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudySeriesPerformerUnion] + ): TaskRestrictionUnion! + authoredOn: String modifierExtension: [Extension] - description: String - number: String - instance: [ImagingStudySeriesInstance] - specimen( + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenType] -} -type Narrative { - div: String + ): TaskNoteUnion! + doNotPerform: String + text: Narrative + identifier: [Identifier] + language: String + output: [TaskOutput] extension: [Extension] - id: String - resourceType: String + instantiatesCanonical: String status: String -} -type PractitionerType { + businessStatus: CodeableConcept + executionPeriod: Period meta: Meta - deceasedBoolean: String - birthDate: String - id: String - extension: [Extension] - gender: String - qualification: [PractitionerQualification] - contained: [ResourceUnion] - telecom: [ContactPoint] - identifier: [Identifier] - address: [Address] - modifierExtension: [Extension] - resourceType: String implicitRules: String - language: String - name: [HumanName] - photo: [Attachment] - text: Narrative - active: String - communication: [PractitionerCommunication] - deceasedDateTime: String -} -type Range { - resourceType: String - extension: [Extension] - high: Quantity - id: String - low: Quantity -} -type DocumentReferenceContent { - attachment: Attachment - extension: [Extension] - id: String - modifierExtension: [Extension] - profile: [DocumentReferenceContentProfile] + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResourceUnion! + partOf( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): TaskType! + statusReason: CodeableReference + contained: [ResourceUnion] + performer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): TaskPerformerUnion! + input: [TaskInput] + requester( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): TaskRequesterUnion! + description: String + groupIdentifier: Identifier + focus( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResourceUnion! + priority: String + lastModified: String resourceType: String + requestedPerformer: [CodeableReference] + reason: [CodeableReference] } -type Period { - extension: [Extension] - id: String +type Availability { + notAvailableTime: [AvailabilityNotAvailableTime] resourceType: String - start: String - end: String -} -type SubstanceDefinitionProperty { + availableTime: [AvailabilityAvailableTime] extension: [Extension] - modifierExtension: [Extension] - valueAttachment: Attachment - valueQuantity: Quantity id: String - resourceType: String - type: CodeableConcept - valueBoolean: String - valueCodeableConcept: CodeableConcept - valueDate: String } -union TaskPerformerActorUnion = - PractitionerType - | PractitionerRoleType - | OrganizationType - | PatientType -type TaskPerformer { - id: String - modifierExtension: [Extension] - resourceType: String - actor( +type ExtendedContactDetail { + period: Period + telecom: [ContactPoint] + address: Address + organization( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskPerformerActorUnion] + ): OrganizationType! + purpose: CodeableConcept + resourceType: String + name: [HumanName] extension: [Extension] - function: CodeableConcept + id: String } -union FamilyMemberHistoryNoteUnion = +union ExtensionValueSignatureUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union FamilyMemberHistoryParticipantUnion = +union ExtensionValueUsageContextUnion = + ResearchStudyType + | GroupType + | OrganizationType +union ExtensionValueAnnotationUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type FamilyMemberHistoryType { - condition: [FamilyMemberHistoryCondition] - ageAge: Age - deceasedRange: Range - deceasedAge: Age - status: String - language: String - identifier: [Identifier] - sex: CodeableConcept - note( +type Extension { + valuePeriod: Period + valueQuantity: Quantity + valueExpression: Expression + valueSampledData: SampledData + valueContactDetail: ContactDetail + valueCodeableReference: CodeableReference + valueRelatedArtifact: RelatedArtifact + valueParameterDefinition: ParameterDefinition + valueInstant: String + valueExtendedContactDetail: ExtendedContactDetail + valueId: String + valueCount: Count + valueCoding: Coding + valueUsageContext( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [FamilyMemberHistoryNoteUnion] - contained: [ResourceUnion] + ): ExtensionValueUsageContextUnion! + valueInteger: String + valueUuid: String + valueMeta: Meta + valueOid: String + valueTriggerDefinition: TriggerDefinition id: String + valueMarkdown: String + valueIdentifier: Identifier + valueRange: Range + valueAttachment: Attachment + valueDate: String + valueRatio: Ratio + valueBoolean: String + valueString: String + valueDuration: Duration + valueDataRequirement: DataRequirement + valueCodeableConcept: CodeableConcept + valueContactPoint: ContactPoint + valueAvailability: Availability + valueDosage: Dosage + valueUnsignedInt: String + valueAge: Age + valueHumanName: HumanName + valueInteger64: String + valueUrl: String + extension: [Extension] + valueBase64Binary: String + valueCode: String resourceType: String - deceasedString: String - relationship: CodeableConcept - bornDate: String - dataAbsentReason: CodeableConcept - estimatedAge: String - modifierExtension: [Extension] - date: String - patient( + valueDecimal: String + valuePositiveInt: String + valueAddress: Address + valueUri: String + valueSignature( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [PatientType] - extension: [Extension] - procedure: [FamilyMemberHistoryProcedure] - meta: Meta - ageRange: Range - name: String - deceasedDate: String - deceasedBoolean: String - instantiatesCanonical: String - ageString: String - text: Narrative - implicitRules: String - reason: [CodeableReference] - instantiatesUri: String - bornString: String - participant( + ): ExtensionValueSignatureUnion! + valueDateTime: String + valueTime: String + valueMoney: Money + valueDistance: Distance + valueTiming: Timing + valueRatioRange: RatioRange + valueCanonical: String + url: String + valueAnnotation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [FamilyMemberHistoryParticipantUnion] - bornPeriod: Period -} -type DataRequirementCodeFilter { - extension: [Extension] - id: String - path: String - resourceType: String - searchParam: String - valueSet: String - code: [Coding] -} -type ImmunizationPerformer { - function: CodeableConcept - id: String - modifierExtension: [Extension] - resourceType: String - extension: [Extension] -} -type MedicationRequestDispenseRequestInitialFill { - duration: Duration - extension: [Extension] - id: String - modifierExtension: [Extension] - quantity: Quantity - resourceType: String + ): ExtensionValueAnnotationUnion! } -union ConditionStageAssessmentUnion = DiagnosticReportType | ObservationType -type ConditionStage { +union GroupMemberEntityUnion = + GroupType + | OrganizationType + | PatientType + | PractitionerType + | PractitionerRoleType + | SpecimenType +type GroupMember { + period: Period resourceType: String - summary: CodeableConcept - type: CodeableConcept - assessment( + entity( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ConditionStageAssessmentUnion] - extension: [Extension] - id: String - modifierExtension: [Extension] -} -type ImmunizationProgramEligibility { - programStatus: CodeableConcept - resourceType: String + ): GroupMemberEntityUnion! extension: [Extension] id: String + inactive: String modifierExtension: [Extension] - program: CodeableConcept } -type ParameterDefinition { - profile: String - min: String - name: String - type: String - documentation: String +type DosageDoseAndRate { extension: [Extension] + type: CodeableConcept id: String - max: String + doseRange: Range resourceType: String - use: String + rateQuantity: Quantity + doseQuantity: Quantity + rateRatio: Ratio + rateRange: Range } -type ResearchStudyOutcomeMeasure { +type ResearchStudyObjective { + extension: [Extension] id: String modifierExtension: [Extension] name: String resourceType: String - type: [CodeableConcept] + type: CodeableConcept description: String - extension: [Extension] } -union TaskInputValueAnnotationUnion = +union ProcedurePerformerActorUnion = PractitionerType | PractitionerRoleType + | OrganizationType | PatientType +type ProcedurePerformer { + resourceType: String + actor( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ProcedurePerformerActorUnion! + extension: [Extension] + function: CodeableConcept + id: String + modifierExtension: [Extension] + onBehalfOf( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): OrganizationType! + period: Period +} +union DocumentReferenceBasedOnUnion = MedicationRequestType +union DocumentReferenceAttesterUnion = + PatientType + | PractitionerType + | PractitionerRoleType | OrganizationType -union TaskInputValueSignatureUnion = +union DocumentReferenceAuthorUnion = PractitionerType | PractitionerRoleType - | PatientType - | OrganizationType -union TaskInputValueUsageContextUnion = - ResearchStudyType - | GroupType | OrganizationType -type TaskInput { - valueAddress: Address - valueUrl: String - valueDosage: Dosage - valueRelatedArtifact: RelatedArtifact - valueDateTime: String - valueExpression: Expression - valueCanonical: String - valueContactPoint: ContactPoint - valueUnsignedInt: String - valueInstant: String - valueMoney: Money - valueParameterDefinition: ParameterDefinition - valueUuid: String - valueAttachment: Attachment - valueUsageContext( + | PatientType +type DocumentReferenceType { + modality: [CodeableConcept] + securityLabel: [CodeableConcept] + meta: Meta + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskInputValueUsageContextUnion] - valueTime: String - valueUri: String - valueSignature( + ): ResourceUnion! + id: String + modifierExtension: [Extension] + contained: [ResourceUnion] + event: [CodeableReference] + practiceSetting: CodeableConcept + bodySite: [CodeableReference] + identifier: [Identifier] + date: String + language: String + author( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskInputValueSignatureUnion] - valueQuantity: Quantity - valueContactDetail: ContactDetail - valueMeta: Meta - valueCode: String - valueTriggerDefinition: TriggerDefinition - valueOid: String - valueInteger64: String - valueDataRequirement: DataRequirement - valueBoolean: String - valueCoding: Coding - valueDecimal: String - valueAnnotation( + ): DocumentReferenceAuthorUnion! + type: CodeableConcept + category: [CodeableConcept] + period: Period + facilityType: CodeableConcept + attester( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskInputValueAnnotationUnion] - valueCount: Count - valueBase64Binary: String - valueCodeableReference: CodeableReference - valueDistance: Distance - valueHumanName: HumanName - valueId: String + ): DocumentReferenceAttesterUnion! + implicitRules: String + docStatus: String + custodian( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): OrganizationType! + description: String + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): DocumentReferenceBasedOnUnion! + relatesTo: [DocumentReferenceRelatesTo] resourceType: String - valueRatio: Ratio - valueExtendedContactDetail: ExtendedContactDetail - valueRatioRange: RatioRange - valueMarkdown: String - type: CodeableConcept + status: String + text: Narrative + content: [DocumentReferenceContent] + version: String + extension: [Extension] +} +type DataRequirementCodeFilter { id: String - valueSampledData: SampledData + path: String + resourceType: String + searchParam: String + valueSet: String + code: [Coding] extension: [Extension] +} +type ImmunizationReaction { + id: String + manifestation: CodeableReference modifierExtension: [Extension] - valueTiming: Timing - valueIdentifier: Identifier - valuePositiveInt: String - valueAvailability: Availability - valueDuration: Duration - valueString: String - valueCodeableConcept: CodeableConcept - valueAge: Age - valueDate: String - valuePeriod: Period - valueInteger: String - valueRange: Range + reported: String + resourceType: String + date: String + extension: [Extension] } type DataRequirement { type: String valueFilter: [DataRequirementValueFilter] - dateFilter: [DataRequirementDateFilter] + id: String + profile: String + subjectReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): GroupType! + codeFilter: [DataRequirementCodeFilter] limit: String subjectCodeableConcept: CodeableConcept - extension: [Extension] mustSupport: String + extension: [Extension] + resourceType: String sort: [DataRequirementSort] - id: String - profile: String - subjectReference( + dateFilter: [DataRequirementDateFilter] +} +union SubstanceDefinitionNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type SubstanceDefinitionType { + version: String + extension: [Extension] + manufacturer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [GroupType] - resourceType: String - codeFilter: [DataRequirementCodeFilter] -} -union ImagingStudyBasedOnUnion = TaskType -union ImagingStudyReferrerUnion = PractitionerType | PractitionerRoleType -union ImagingStudySubjectUnion = PatientType | GroupType -union ImagingStudyNoteUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -type ImagingStudyType { - partOf( + ): OrganizationType! + id: String + meta: Meta + classification: [CodeableConcept] + code: [SubstanceDefinitionCode] + characterization: [SubstanceDefinitionCharacterization] + supplier( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ProcedureType] - text: Narrative - meta: Meta - extension: [Extension] + ): OrganizationType! + resourceType: String + sourceMaterial: SubstanceDefinitionSourceMaterial + contained: [ResourceUnion] + status: CodeableConcept + property: [SubstanceDefinitionProperty] language: String - basedOn( + name: [SubstanceDefinitionName] + structure: SubstanceDefinitionStructure + description: String + text: Narrative + molecularWeight: [SubstanceDefinitionMolecularWeight] + implicitRules: String + identifier: [Identifier] + relationship: [SubstanceDefinitionRelationship] + domain: CodeableConcept + modifierExtension: [Extension] + moiety: [SubstanceDefinitionMoiety] + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudyBasedOnUnion] - numberOfInstances: String - procedure: [CodeableReference] + ): SubstanceDefinitionNoteUnion! + grade: [CodeableConcept] +} +type OrganizationType { identifier: [Identifier] - implicitRules: String - referrer( + contained: [ResourceUnion] + active: String + modifierExtension: [Extension] + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudyReferrerUnion] - modality: [CodeableConcept] + ): OrganizationType! resourceType: String - note( + extension: [Extension] + description: String + meta: Meta + name: String + type: [CodeableConcept] + implicitRules: String + id: String + qualification: [OrganizationQualification] + alias: String + contact: [ExtendedContactDetail] + text: Narrative + language: String +} +type SubstanceDefinitionStructureRepresentation { + document( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudyNoteUnion] - contained: [ResourceUnion] + ): DocumentReferenceType! + extension: [Extension] + format: CodeableConcept + id: String modifierExtension: [Extension] - series: [ImagingStudySeries] - reason: [CodeableReference] - started: String - status: String - subject( + representation: String + resourceType: String + type: CodeableConcept +} +type SubstanceDefinitionMoiety { + amountString: String + stereochemistry: CodeableConcept + extension: [Extension] + identifier: Identifier + name: String + role: CodeableConcept + id: String + measurementType: CodeableConcept + modifierExtension: [Extension] + molecularFormula: String + amountQuantity: Quantity + opticalActivity: CodeableConcept + resourceType: String +} +type MedicationAdministrationPerformer { + function: CodeableConcept + id: String + modifierExtension: [Extension] + resourceType: String + actor: CodeableReference + extension: [Extension] +} +type SpecimenFeature { + description: String + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String + type: CodeableConcept +} +type Age { + unit: String + value: String + code: String + comparator: String + extension: [Extension] + id: String + resourceType: String + system: String +} +type TimingRepeat { + resourceType: String + boundsRange: Range + countMax: String + boundsDuration: Duration + durationUnit: String + count: String + frequencyMax: String + periodMax: String + when: String + durationMax: String + id: String + timeOfDay: String + period: String + dayOfWeek: String + offset: String + frequency: String + duration: String + boundsPeriod: Period + extension: [Extension] + periodUnit: String +} +union SubstanceDefinitionCodeNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type SubstanceDefinitionCode { + extension: [Extension] + code: CodeableConcept + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudySubjectUnion] - description: String - id: String - numberOfSeries: String -} -type ObservationTriggeredBy { + ): SubstanceDefinitionCodeNoteUnion! + statusDate: String id: String modifierExtension: [Extension] - observation( + resourceType: String + source( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationType] - reason: String + ): DocumentReferenceType! + status: CodeableConcept +} +type Range { + id: String + low: Quantity resourceType: String - type: String extension: [Extension] + high: Quantity } -type PractitionerRoleType { - availability: [Availability] - identifier: [Identifier] - practitioner( +type ResearchStudyProgressStatus { + extension: [Extension] + id: String + modifierExtension: [Extension] + period: Period + resourceType: String + state: CodeableConcept + actual: String +} +type LocationPosition { + extension: [Extension] + id: String + latitude: String + longitude: String + modifierExtension: [Extension] + resourceType: String + altitude: String +} +union UsageContextValueReferenceUnion = + ResearchStudyType + | GroupType + | OrganizationType +type UsageContext { + id: String + resourceType: String + valueCodeableConcept: CodeableConcept + valueQuantity: Quantity + valueRange: Range + valueReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [PractitionerType] - contained: [ResourceUnion] + ): UsageContextValueReferenceUnion! + code: Coding + extension: [Extension] +} +type Coding { + userSelected: String + version: String + code: String + display: String + extension: [Extension] + id: String + resourceType: String + system: String +} +type PractitionerType { + birthDate: String + id: String language: String - code: [CodeableConcept] + qualification: [PractitionerQualification] + address: [Address] + modifierExtension: [Extension] + active: String + contained: [ResourceUnion] + gender: String + name: [HumanName] + text: Narrative + deceasedDateTime: String + extension: [Extension] + meta: Meta + photo: [Attachment] + telecom: [ContactPoint] + resourceType: String + communication: [PractitionerCommunication] + identifier: [Identifier] + deceasedBoolean: String implicitRules: String - specialty: [CodeableConcept] +} +type MedicationStatementAdherence { + code: CodeableConcept + extension: [Extension] + id: String + modifierExtension: [Extension] + reason: CodeableConcept + resourceType: String +} +type Expression { + expression: String + extension: [Extension] id: String + language: String + name: String + reference: String + resourceType: String + description: String +} +type CodeableConcept { resourceType: String + text: String + coding: [Coding] extension: [Extension] - organization( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [OrganizationType] - modifierExtension: [Extension] - communication: [CodeableConcept] - active: String - characteristic: [CodeableConcept] - contact: [ExtendedContactDetail] - meta: Meta - period: Period - text: Narrative + id: String } -union ResearchStudyAssociatedPartyUnion = +union FamilyMemberHistoryNoteUnion = PractitionerType | PractitionerRoleType + | PatientType | OrganizationType -union ResearchStudyNoteUnion = +union FamilyMemberHistoryParticipantUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ResearchStudyRecruitmentUnion = GroupType -union ResearchStudyResultUnion = DiagnosticReportType -union ResearchStudySiteUnion = ResearchStudyType | OrganizationType -type ResearchStudyType { - region: [CodeableConcept] - title: String - condition: [CodeableConcept] - contained: [ResourceUnion] - period: Period - descriptionSummary: String - primaryPurposeType: CodeableConcept - comparisonGroup: [ResearchStudyComparisonGroup] - whyStopped: CodeableConcept - date: String - recruitment( +type FamilyMemberHistoryType { + ageRange: Range + patient( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyRecruitmentUnion] - classifier: [CodeableConcept] - phase: CodeableConcept - language: String - meta: Meta + ): PatientType! name: String - text: Narrative - result( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ResearchStudyResultUnion] - progressStatus: [ResearchStudyProgressStatus] + deceasedBoolean: String + instantiatesUri: String modifierExtension: [Extension] - associatedParty( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ResearchStudyAssociatedPartyUnion] - description: String - site( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [ResearchStudySiteUnion] - url: String - implicitRules: String - version: String - outcomeMeasure: [ResearchStudyOutcomeMeasure] + instantiatesCanonical: String + text: Narrative id: String - identifier: [Identifier] - objective: [ResearchStudyObjective] - resourceType: String - keyword: [CodeableConcept] + bornString: String + deceasedAge: Age + ageAge: Age + date: String + sex: CodeableConcept + language: String + contained: [ResourceUnion] note( offset: Int first: Int @@ -2889,68 +2872,113 @@ type ResearchStudyType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyNoteUnion] - status: String - label: [ResearchStudyLabel] - relatedArtifact: [RelatedArtifact] - studyDesign: [CodeableConcept] + ): FamilyMemberHistoryNoteUnion! + reason: [CodeableReference] + relationship: CodeableConcept + condition: [FamilyMemberHistoryCondition] extension: [Extension] - focus: [CodeableReference] - partOf( + meta: Meta + deceasedString: String + status: String + ageString: String + identifier: [Identifier] + participant( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResearchStudyType] + ): FamilyMemberHistoryParticipantUnion! + deceasedDate: String + estimatedAge: String + dataAbsentReason: CodeableConcept + procedure: [FamilyMemberHistoryProcedure] + bornPeriod: Period + implicitRules: String + deceasedRange: Range + resourceType: String + bornDate: String } -type ResearchStudyComparisonGroup { +type SubstanceDefinitionProperty { + extension: [Extension] modifierExtension: [Extension] - observedGroup( + valueAttachment: Attachment + valueCodeableConcept: CodeableConcept + valueDate: String + resourceType: String + type: CodeableConcept + valueQuantity: Quantity + id: String + valueBoolean: String +} +type BodyStructureType { + description: String + implicitRules: String + patient( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [GroupType] - name: String - resourceType: String + ): PatientType! + language: String + meta: Meta + modifierExtension: [Extension] + includedStructure: [BodyStructureIncludedStructure] + text: Narrative + contained: [ResourceUnion] + excludedStructure: [BodyStructureIncludedStructure] + identifier: [Identifier] id: String - description: String - linkId: String - type: CodeableConcept + active: String + morphology: CodeableConcept extension: [Extension] -} -type SubstanceDefinitionNameOfficial { resourceType: String - status: CodeableConcept - authority: CodeableConcept - date: String + image: [Attachment] +} +type MedicationAdministrationDosage { + route: CodeableConcept + text: String extension: [Extension] + method: CodeableConcept + rateQuantity: Quantity + rateRatio: Ratio id: String + dose: Quantity + resourceType: String + site: CodeableConcept modifierExtension: [Extension] } -type Distance { +type BodyStructureIncludedStructure { + laterality: CodeableConcept + modifierExtension: [Extension] + qualifier: [CodeableConcept] resourceType: String - system: String - unit: String - value: String - code: String - comparator: String + structure: CodeableConcept + bodyLandmarkOrientation: [BodyStructureIncludedStructureBodyLandmarkOrientation] extension: [Extension] id: String } -union DocumentReferenceAttesterPartyUnion = - PatientType - | PractitionerType +type SubstanceDefinitionSourceMaterial { + resourceType: String + extension: [Extension] + genus: CodeableConcept + id: String + species: CodeableConcept + type: CodeableConcept + countryOfOrigin: [CodeableConcept] + modifierExtension: [Extension] + part: CodeableConcept +} +union ResearchStudyAssociatedPartyPartyUnion = + PractitionerType | PractitionerRoleType | OrganizationType -type DocumentReferenceAttester { +type ResearchStudyAssociatedParty { + extension: [Extension] id: String - mode: CodeableConcept - modifierExtension: [Extension] party( offset: Int first: Int @@ -2958,656 +2986,612 @@ type DocumentReferenceAttester { sort: JSON accessibility: Accessibility = all format: Format = json - ): [DocumentReferenceAttesterPartyUnion] + ): ResearchStudyAssociatedPartyPartyUnion! + role: CodeableConcept + modifierExtension: [Extension] resourceType: String - time: String - extension: [Extension] + period: [Period] + name: String + classifier: [CodeableConcept] } -union ExtensionValueAnnotationUnion = +union ProcedureNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union ExtensionValueSignatureUnion = +union ProcedurePerformerUnion = PractitionerType | PractitionerRoleType + | OrganizationType | PatientType +union ProcedureFocusUnion = + PatientType + | GroupType + | PractitionerType | OrganizationType -union ExtensionValueUsageContextUnion = - ResearchStudyType + | PractitionerRoleType + | SpecimenType +union ProcedurePartOfUnion = + ProcedureType + | ObservationType + | MedicationAdministrationType +union ProcedureRecorderUnion = + PatientType + | PractitionerType + | PractitionerRoleType +union ProcedureReportUnion = DiagnosticReportType | DocumentReferenceType +union ProcedureReportedReferenceUnion = + PatientType + | PractitionerType + | PractitionerRoleType + | OrganizationType +union ProcedureSubjectUnion = + PatientType | GroupType + | PractitionerType | OrganizationType -type Extension { - valueUri: String - valueInteger: String - valueAttachment: Attachment - valueParameterDefinition: ParameterDefinition - valueInteger64: String - valueHumanName: HumanName - valueAge: Age - valueCodeableConcept: CodeableConcept - valueSampledData: SampledData - valueDateTime: String - valueExtendedContactDetail: ExtendedContactDetail - valueMarkdown: String - valueTriggerDefinition: TriggerDefinition - valueString: String - valueContactPoint: ContactPoint - valueAnnotation( +type ProcedureType { + recorder( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ProcedureRecorderUnion! + report( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ExtensionValueAnnotationUnion] - valueContactDetail: ContactDetail - valueQuantity: Quantity - valueUuid: String - valueRange: Range - valueCanonical: String - valueCodeableReference: CodeableReference - id: String - valueRatio: Ratio - valueOid: String - valueRatioRange: RatioRange - valueInstant: String - valueDuration: Duration - valueRelatedArtifact: RelatedArtifact - valueSignature( + ): ProcedureReportUnion! + implicitRules: String + meta: Meta + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ExtensionValueSignatureUnion] - valueDate: String - valueDosage: Dosage - valueBase64Binary: String - valuePeriod: Period - valueMoney: Money - valueIdentifier: Identifier - url: String - valueCode: String - valuePositiveInt: String - valueId: String - valueUnsignedInt: String - valueDataRequirement: DataRequirement - valueTime: String - valueCoding: Coding - valueTiming: Timing - valueExpression: Expression - valueDistance: Distance - valueCount: Count - resourceType: String - valueAvailability: Availability - valueUrl: String - valueBoolean: String - valueDecimal: String - valueMeta: Meta - valueAddress: Address - valueUsageContext( + ): ProcedureNoteUnion! + bodySite: [CodeableConcept] + instantiatesUri: String + occurrenceTiming: Timing + occurrenceAge: Age + occurrenceDateTime: String + reportedBoolean: String + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ExtensionValueUsageContextUnion] - extension: [Extension] -} -type OrganizationType { - name: String - contact: [ExtendedContactDetail] - implicitRules: String - type: [CodeableConcept] - extension: [Extension] - text: Narrative - language: String + ): ProcedureSubjectUnion! + occurrenceRange: Range + modifierExtension: [Extension] resourceType: String - partOf( + contained: [ResourceUnion] + text: Narrative + status: String + reportedReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - alias: String - contained: [ResourceUnion] - meta: Meta - id: String - qualification: [OrganizationQualification] - description: String - modifierExtension: [Extension] - identifier: [Identifier] - active: String -} -type OrganizationQualification { - extension: [Extension] - id: String - identifier: [Identifier] - issuer( + ): ProcedureReportedReferenceUnion! + reason: [CodeableReference] + outcome: CodeableConcept + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - modifierExtension: [Extension] - period: Period - resourceType: String + ): ProcedurePartOfUnion! + used: [CodeableReference] code: CodeableConcept -} -type Quantity { - code: String - comparator: String - extension: [Extension] - id: String - resourceType: String - system: String - unit: String - value: String -} -type BodyStructureType { - patient( + identifier: [Identifier] + category: [CodeableConcept] + supportingInfo( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [PatientType] - contained: [ResourceUnion] - modifierExtension: [Extension] - active: String - identifier: [Identifier] - image: [Attachment] - extension: [Extension] - excludedStructure: [BodyStructureIncludedStructure] - resourceType: String - id: String - meta: Meta - includedStructure: [BodyStructureIncludedStructure] - implicitRules: String - morphology: CodeableConcept - text: Narrative - description: String + ): ResourceUnion! language: String -} -union ImagingStudySeriesPerformerActorUnion = - PractitionerType - | PractitionerRoleType - | OrganizationType - | PatientType -type ImagingStudySeriesPerformer { - modifierExtension: [Extension] - resourceType: String - actor( + focalDevice: [ProcedureFocalDevice] + id: String + occurrenceString: String + recorded: String + performer( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ImagingStudySeriesPerformerActorUnion] - extension: [Extension] - function: CodeableConcept - id: String -} -type Meta { - profile: String - security: [Coding] - source: String - tag: [Coding] - versionId: String - lastUpdated: String - resourceType: String - extension: [Extension] - id: String -} -type SubstanceDefinitionCharacterization { - modifierExtension: [Extension] - resourceType: String - technique: CodeableConcept - description: String + ): ProcedurePerformerUnion! + statusReason: CodeableConcept + followUp: [CodeableConcept] + complication: [CodeableReference] extension: [Extension] - file: [Attachment] - form: CodeableConcept - id: String -} -union DiagnosticReportNoteUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union DiagnosticReportSupportingInfoUnion = - ProcedureType - | ObservationType - | DiagnosticReportType -union DiagnosticReportBasedOnUnion = MedicationRequestType -union DiagnosticReportPerformerUnion = - PractitionerType - | PractitionerRoleType - | OrganizationType -union DiagnosticReportResultsInterpreterUnion = - PractitionerType - | PractitionerRoleType - | OrganizationType -union DiagnosticReportStudyUnion = ImagingStudyType -union DiagnosticReportSubjectUnion = - PatientType - | GroupType - | OrganizationType - | PractitionerType - | MedicationType - | SubstanceType -type DiagnosticReportType { - result( + focus( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ObservationType] - implicitRules: String - language: String - performer( + ): ProcedureFocusUnion! + occurrencePeriod: Period + instantiatesCanonical: String +} +union DocumentReferenceAttesterPartyUnion = + PatientType + | PractitionerType + | PractitionerRoleType + | OrganizationType +type DocumentReferenceAttester { + time: String + extension: [Extension] + id: String + mode: CodeableConcept + modifierExtension: [Extension] + party( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportPerformerUnion] - presentedForm: [Attachment] - text: Narrative - subject( + ): DocumentReferenceAttesterPartyUnion! + resourceType: String +} +type PractitionerRoleType { + communication: [CodeableConcept] + active: String + id: String + organization( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportSubjectUnion] - specimen( + ): OrganizationType! + contained: [ResourceUnion] + extension: [Extension] + period: Period + code: [CodeableConcept] + modifierExtension: [Extension] + specialty: [CodeableConcept] + resourceType: String + identifier: [Identifier] + implicitRules: String + language: String + meta: Meta + contact: [ExtendedContactDetail] + text: Narrative + practitioner( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SpecimenType] - identifier: [Identifier] - code: CodeableConcept - effectiveDateTime: String - media: [DiagnosticReportMedia] - effectivePeriod: Period - study( + ): PractitionerType! + availability: [Availability] + characteristic: [CodeableConcept] +} +type DocumentReferenceContentProfile { + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String + valueCanonical: String + valueCoding: Coding + valueUri: String +} +type Ratio { + denominator: Quantity + extension: [Extension] + id: String + numerator: Quantity + resourceType: String +} +type ObservationTriggeredBy { + type: String + extension: [Extension] + id: String + modifierExtension: [Extension] + observation( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportStudyUnion] + ): ObservationType! + reason: String + resourceType: String +} +type MedicationRequestSubstitution { + extension: [Extension] + id: String + modifierExtension: [Extension] + reason: CodeableConcept resourceType: String + allowedBoolean: String + allowedCodeableConcept: CodeableConcept +} +type Encounter { meta: Meta + text: Narrative + plannedEndDate: String + language: String + reason: [EncounterReason] + status: String + resourceType: String + virtualService: [VirtualServiceDetail] + subjectStatus: CodeableConcept + specialArrangement: [CodeableConcept] + admission: EncounterAdmission + specialCourtesy: [CodeableConcept] + identifier: [Identifier] + class: [CodeableConcept] + implicitRules: String + plannedStartDate: String + modifierExtension: [Extension] contained: [ResourceUnion] + extension: [Extension] + priority: CodeableConcept + diagnosis: [EncounterDiagnosis] + serviceType: [CodeableReference] + length: Duration + participant: [EncounterParticipant] + type: [CodeableConcept] + location: [EncounterLocation] + dietPreference: [CodeableConcept] + actualPeriod: Period id: String - note( +} +union TaskRestrictionRecipientUnion = + PatientType + | PractitionerType + | PractitionerRoleType + | GroupType + | OrganizationType +type TaskRestriction { + repetitions: String + resourceType: String + extension: [Extension] + id: String + modifierExtension: [Extension] + period: Period + recipient( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportNoteUnion] - modifierExtension: [Extension] - basedOn( + ): TaskRestrictionRecipientUnion! +} +union FamilyMemberHistoryProcedureNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryProcedure { + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportBasedOnUnion] - conclusionCode: [CodeableConcept] - supportingInfo( + ): FamilyMemberHistoryProcedureNoteUnion! + outcome: CodeableConcept + performedDateTime: String + contributedToDeath: String + resourceType: String + performedPeriod: Period + performedString: String + id: String + extension: [Extension] + modifierExtension: [Extension] + performedAge: Age + performedRange: Range + code: CodeableConcept +} +type EncounterLocation { + id: String + modifierExtension: [Extension] + period: Period + resourceType: String + status: String + extension: [Extension] + form: CodeableConcept +} +type EncounterAdmission { + admitSource: CodeableConcept + dischargeDisposition: CodeableConcept + extension: [Extension] + id: String + modifierExtension: [Extension] + preAdmissionIdentifier: Identifier + reAdmission: CodeableConcept + resourceType: String +} +type Identifier { + extension: [Extension] + resourceType: String + use: String + assigner( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportSupportingInfoUnion] - conclusion: String - status: String - extension: [Extension] - category: [CodeableConcept] - issued: String - resultsInterpreter( + ): OrganizationType! + period: Period + type: CodeableConcept + value: String + id: String + system: String +} +type RelatedArtifact { + type: String + resource: String + resourceReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportResultsInterpreterUnion] -} -type DataRequirementDateFilter { + ): ResourceUnion! + extension: [Extension] id: String - path: String + label: String + document: Attachment + publicationStatus: String resourceType: String - searchParam: String - valueDateTime: String - valueDuration: Duration - valuePeriod: Period - extension: [Extension] + classifier: [CodeableConcept] + publicationDate: String + citation: String + display: String } -type ImagingStudySeriesInstance { - sopClass: Coding - title: String - uid: String - extension: [Extension] +type EncounterParticipant { id: String modifierExtension: [Extension] - number: String - resourceType: String -} -type Timing { - repeat: TimingRepeat + period: Period resourceType: String - code: CodeableConcept - event: String + type: [CodeableConcept] extension: [Extension] - id: String - modifierExtension: [Extension] } -union AnnotationAuthorReferenceUnion = +union ConditionParticipantActorUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -type Annotation { - authorString: String - extension: [Extension] - id: String +type ConditionParticipant { + modifierExtension: [Extension] resourceType: String - text: String - time: String - authorReference( + actor( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [AnnotationAuthorReferenceUnion] -} -union DiagnosticReportSupportingInfoReferenceUnion = - ProcedureType - | ObservationType - | DiagnosticReportType -type DiagnosticReportSupportingInfo { + ): ConditionParticipantActorUnion! + extension: [Extension] + function: CodeableConcept id: String - modifierExtension: [Extension] - reference( +} +union SpecimenCollectionCollectorUnion = + PractitionerType + | PractitionerRoleType + | PatientType +type SpecimenCollection { + extension: [Extension] + fastingStatusDuration: Duration + collector( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [DiagnosticReportSupportingInfoReferenceUnion] - resourceType: String - type: CodeableConcept - extension: [Extension] -} -type ExtendedContactDetail { - name: [HumanName] - organization( + ): SpecimenCollectionCollectorUnion! + fastingStatusCodeableConcept: CodeableConcept + procedure( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [OrganizationType] - purpose: CodeableConcept + ): ProcedureType! resourceType: String - telecom: [ContactPoint] - address: Address id: String - extension: [Extension] - period: Period + quantity: Quantity + bodySite: CodeableReference + collectedDateTime: String + collectedPeriod: Period + modifierExtension: [Extension] + method: CodeableConcept + device: CodeableReference + duration: Duration } -type Money { - currency: String +type Quantity { + code: String + comparator: String extension: [Extension] id: String resourceType: String + system: String + unit: String value: String } -type SubstanceDefinitionMoiety { - measurementType: CodeableConcept - name: String - amountString: String - extension: [Extension] - identifier: Identifier - molecularFormula: String - opticalActivity: CodeableConcept - stereochemistry: CodeableConcept - role: CodeableConcept - id: String - modifierExtension: [Extension] +type ResearchStudyComparisonGroup { resourceType: String - amountQuantity: Quantity -} -union TaskOutputValueAnnotationUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union TaskOutputValueSignatureUnion = - PractitionerType - | PractitionerRoleType - | PatientType - | OrganizationType -union TaskOutputValueUsageContextUnion = - ResearchStudyType - | GroupType - | OrganizationType -type TaskOutput { - valuePeriod: Period + extension: [Extension] + linkId: String + modifierExtension: [Extension] id: String - valueString: String - valueOid: String - valueRatio: Ratio - valueAge: Age - valueSampledData: SampledData - valueBase64Binary: String - valueMeta: Meta - valueSignature( - offset: Int - first: Int - filter: JSON - sort: JSON - accessibility: Accessibility = all - format: Format = json - ): [TaskOutputValueSignatureUnion] - valueTime: String - valueDistance: Distance - valueDate: String - valueTiming: Timing - valueAnnotation( + name: String + observedGroup( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskOutputValueAnnotationUnion] - valueCanonical: String - valueMarkdown: String - valueUrl: String - valueContactDetail: ContactDetail - valueCodeableConcept: CodeableConcept - valueUuid: String - valueInstant: String - valueExpression: Expression - valueUnsignedInt: String + ): GroupType! type: CodeableConcept - valueParameterDefinition: ParameterDefinition - valueMoney: Money + description: String +} +type DataRequirementValueFilter { + comparator: String extension: [Extension] - valueExtendedContactDetail: ExtendedContactDetail - valueCode: String - valueIdentifier: Identifier - valueHumanName: HumanName - valueDuration: Duration - valueInteger64: String - valueUri: String - valueContactPoint: ContactPoint - valueCount: Count - valueCodeableReference: CodeableReference - valueRelatedArtifact: RelatedArtifact - valueId: String - valueDosage: Dosage - valueBoolean: String - valueAttachment: Attachment - valueTriggerDefinition: TriggerDefinition + id: String resourceType: String - valuePositiveInt: String - valueRange: Range - valueAddress: Address - valueInteger: String - valueAvailability: Availability - valueUsageContext( + searchParam: String + valueDuration: Duration + path: String + valueDateTime: String + valuePeriod: Period +} +type SubstanceDefinitionRelationship { + isDefining: String + substanceDefinitionCodeableConcept: CodeableConcept + extension: [Extension] + amountQuantity: Quantity + id: String + modifierExtension: [Extension] + amountString: String + source( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskOutputValueUsageContextUnion] - valueDateTime: String - valueDataRequirement: DataRequirement - modifierExtension: [Extension] - valueCoding: Coding - valueRatioRange: RatioRange - valueDecimal: String - valueQuantity: Quantity -} -type BodyStructureIncludedStructureBodyLandmarkOrientation { - id: String - landmarkDescription: [CodeableConcept] - modifierExtension: [Extension] - resourceType: String - surfaceOrientation: [CodeableConcept] - clockFacePosition: [CodeableConcept] - distanceFromLandmark: [BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark] - extension: [Extension] -} -type EncounterParticipant { - id: String - modifierExtension: [Extension] - period: Period + ): DocumentReferenceType! + comparator: CodeableConcept resourceType: String - type: [CodeableConcept] - extension: [Extension] -} -type SpecimenProcessing { - timePeriod: Period - additive( + ratioHighLimitAmount: Ratio + type: CodeableConcept + substanceDefinitionReference( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [SubstanceType] - modifierExtension: [Extension] - description: String + ): SubstanceDefinitionType! + amountRatio: Ratio +} +type Money { + currency: String + extension: [Extension] id: String resourceType: String - method: CodeableConcept - timeDateTime: String - extension: [Extension] + value: String } -union TaskOwnerUnion = - PractitionerType - | PractitionerRoleType +union ObservationSpecimenUnion = SpecimenType | GroupType +union ObservationSubjectUnion = + PatientType + | GroupType | OrganizationType - | PatientType -union TaskRequesterUnion = - OrganizationType - | PatientType + | ProcedureType | PractitionerType - | PractitionerRoleType -union TaskNoteUnion = + | MedicationType + | SubstanceType +union ObservationNoteUnion = PractitionerType | PractitionerRoleType | PatientType | OrganizationType -union TaskPerformerUnion = +union ObservationBasedOnUnion = MedicationRequestType +union ObservationDerivedFromUnion = + DocumentReferenceType + | ImagingStudyType + | ObservationType +union ObservationHasMemberUnion = ObservationType +union ObservationPartOfUnion = + MedicationAdministrationType + | MedicationStatementType + | ProcedureType + | ImagingStudyType +union ObservationPerformerUnion = PractitionerType | PractitionerRoleType | OrganizationType | PatientType -union TaskRestrictionUnion = - PatientType - | PractitionerType - | PractitionerRoleType - | GroupType - | OrganizationType -type TaskType { - input: [TaskInput] - basedOn( +type ObservationType { + bodyStructure( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [ResourceUnion] - output: [TaskOutput] - lastModified: String - authoredOn: String - modifierExtension: [Extension] - requester( + ): BodyStructureType! + dataAbsentReason: CodeableConcept + effectiveInstant: String + effectivePeriod: Period + identifier: [Identifier] + meta: Meta + issued: String + method: CodeableConcept + valueTime: String + contained: [ResourceUnion] + valueInteger: String + referenceRange: [ObservationReferenceRange] + note( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskRequesterUnion] - intent: String - partOf( + ): ObservationNoteUnion! + text: Narrative + resourceType: String + valueDateTime: String + valueString: String + valueQuantity: Quantity + effectiveDateTime: String + hasMember( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskType] - businessStatus: CodeableConcept - resourceType: String - code: CodeableConcept - instantiatesUri: String + ): ObservationHasMemberUnion! instantiatesCanonical: String - reason: [CodeableReference] - contained: [ResourceUnion] - requestedPeriod: Period - groupIdentifier: Identifier - priority: String - text: Narrative - identifier: [Identifier] - description: String + focus( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResourceUnion! performer( offset: Int first: Int @@ -3615,59 +3599,75 @@ type TaskType { sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskPerformerUnion] - id: String + ): ObservationPerformerUnion! + valueSampledData: SampledData implicitRules: String - meta: Meta - restriction( + language: String + valueCodeableConcept: CodeableConcept + code: CodeableConcept + partOf( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskRestrictionUnion] - note( + ): ObservationPartOfUnion! + status: String + category: [CodeableConcept] + triggeredBy: [ObservationTriggeredBy] + subject( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskNoteUnion] - executionPeriod: Period - language: String - requestedPerformer: [CodeableReference] - status: String - extension: [Extension] - focus( + ): ObservationSubjectUnion! + derivedFrom( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): ResourceUnion - owner( + ): ObservationDerivedFromUnion! + modifierExtension: [Extension] + bodySite: CodeableConcept + valueRatio: Ratio + basedOn( offset: Int first: Int filter: JSON sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskOwnerUnion] - statusReason: CodeableReference - doNotPerform: String + ): ObservationBasedOnUnion! + component: [ObservationComponent] + valueAttachment: Attachment + valueRange: Range + valuePeriod: Period + specimen( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ObservationSpecimenUnion! + effectiveTiming: Timing + id: String + interpretation: [CodeableConcept] + valueBoolean: String + extension: [Extension] } -type EncounterAdmission { +type DocumentReferenceContent { extension: [Extension] id: String modifierExtension: [Extension] - preAdmissionIdentifier: Identifier - reAdmission: CodeableConcept + profile: [DocumentReferenceContentProfile] resourceType: String - admitSource: CodeableConcept - dischargeDisposition: CodeableConcept + attachment: Attachment } union ResourceUnion = OrganizationType @@ -3853,7 +3853,7 @@ type Query { sort: JSON accessibility: Accessibility = all format: Format = json - ): [TaskType] + ): [TaskType!]! imagingStudy( offset: Int first: Int diff --git a/gql-gen/model/bodystructuretype.go b/gql-gen/model/bodystructuretype.go new file mode 100644 index 0000000..13392d6 --- /dev/null +++ b/gql-gen/model/bodystructuretype.go @@ -0,0 +1,58 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeBodyStructureType struct { + Description *string `json:"description,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Patient *PatientType `json:"patient"` + Language *string `json:"language,omitempty"` + Meta *Meta `json:"meta,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + IncludedStructure []*BodyStructureIncludedStructure `json:"includedStructure,omitempty"` + Text *Narrative `json:"text,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + ExcludedStructure []*BodyStructureIncludedStructure `json:"excludedStructure,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + ID *string `json:"id,omitempty"` + Active *string `json:"active,omitempty"` + Morphology *CodeableConcept `json:"morphology,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Image []*Attachment `json:"image,omitempty"` +} + +func (o *BodyStructureType) UnmarshalJSON(b []byte) error { + var safe SafeBodyStructureType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = BodyStructureType{ + Description: safe.Description, + ImplicitRules: safe.ImplicitRules, + Patient: safe.Patient, + Language: safe.Language, + Meta: safe.Meta, + ModifierExtension: safe.ModifierExtension, + IncludedStructure: safe.IncludedStructure, + Text: safe.Text, + ExcludedStructure: safe.ExcludedStructure, + Identifier: safe.Identifier, + ID: safe.ID, + Active: safe.Active, + Morphology: safe.Morphology, + Extension: safe.Extension, + ResourceType: safe.ResourceType, + Image: safe.Image, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + + return nil +} diff --git a/gql-gen/model/codegen/README.md b/gql-gen/model/codegen/README.md new file mode 100644 index 0000000..ccae54b --- /dev/null +++ b/gql-gen/model/codegen/README.md @@ -0,0 +1,12 @@ +# Custom Golang unmarshallers + +When unmarshalling union types on graphql query functions, a custom unmarshaller needs to be used in order to maintain type correctness with the auto generated +gql-gen types that are being used. In order to create these custom types, a codegen script must be run. + +Ex from this dir: + +go build -o gencli + +./gencli union --classes OrganizationType,GroupType,PractitionerType,PractitionerRoleType,ResearchStudyType,PatientType,ResearchSubjectType,SubstanceType,SubstanceDefinitionType,SpecimenType,ObservationType,DiagnosticReportType,ConditionType,MedicationType,MedicationAdministrationType,MedicationStatementType,MedicationRequestType,ProcedureType,DocumentReferenceType,TaskType,ImagingStudyType,FamilyMemberHistoryType,BodyStructureType --model-file ../generated.go + +./gencli unmarshal --names OrganizationType,GroupType,PractitionerType,PractitionerRoleType,ResearchStudyType,PatientType,ResearchSubjectType,SubstanceType,SubstanceDefinitionType,SpecimenType,ObservationType,DiagnosticReportType,ConditionType,MedicationType,MedicationAdministrationType,MedicationStatementType,MedicationRequestType,ProcedureType,DocumentReferenceType,TaskType,ImagingStudyType,FamilyMemberHistoryType,BodyStructureType diff --git a/gql-gen/model/codegen/codegen.go b/gql-gen/model/codegen/codegen.go new file mode 100644 index 0000000..aa9a602 --- /dev/null +++ b/gql-gen/model/codegen/codegen.go @@ -0,0 +1,301 @@ +package main + +import ( + "bytes" + "fmt" + "io/ioutil" + "log" + "regexp" + "strings" + "text/template" + + "github.com/spf13/cobra" +) + +type ClassDefinition struct { + Name string + Fields []FieldDefinition +} + +type FieldDefinition struct { + Name string + Type string + Tag string + IsUnion bool + UnionTag string +} + +type SafeFieldDefinition struct { + Name string + Type string + Tag string + UnionTag string +} + +const safeStructTemplate = ` +package model + +import ( + "encoding/json" + "fmt" +) + +type Safe{{ .Name }} struct { +{{- range .SafeFields }} + {{ .Name }} {{ .Type }} {{ .Tag }} +{{- end }} +} + +func (o *{{ .Name }}) UnmarshalJSON(b []byte) error { + var safe Safe{{ .Name }} + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = {{ .Name }}{ +{{- range .NonUnionFields }} + {{ .Name }}: safe.{{ .Name }}, +{{- end }} + } + +{{- range .UnionFields }} + if err := unmarshalUnion(b, "{{ .UnionTag }}", safe.{{ .Name }}.Typename, &o.{{ .Name }}); err != nil { + return fmt.Errorf("failed to unmarshal {{ .Name }}: %w", err) + } +{{- end }} + + return nil +} +` + +const unmarshalFuncTemplate = ` +func Unmarshal{{ .Name }}Slice(input []any) ([]{{ .Name }}, error) { + out := []{{ .Name }}{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := {{ .Name }}{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} +` + +func main() { + var classNames []string + var Names []string + var modelFile string + + // Define the root command + var rootCmd = &cobra.Command{ + Use: "", + Short: "Generate Safe struct files from model definitions", + } + + // Define the "generate" subcommand + var generateCmd = &cobra.Command{ + Use: "union", + Short: "Generate Safe struct files from model definitions", + Run: func(cmd *cobra.Command, args []string) { + if modelFile == "" { + log.Fatal("Model file path is required") + } + + // Read the model file + content, err := ioutil.ReadFile(modelFile) + if err != nil { + log.Fatalf("Failed to read model file: %v", err) + } + + modelText := string(content) + classDefinitions := extractClassDefinitions(modelText, classNames) + + for _, classDef := range classDefinitions { + generateSafeStruct(classDef) + } + }, + } + + // Define the "unmarshal" subcommand + var unmarshalCmd = &cobra.Command{ + Use: "unmarshal", + Short: "Generate Unmarshal functions for predefined types", + Run: func(cmd *cobra.Command, args []string) { + if Names == nil { + log.Fatal("Names was not provided") + return + } + generateUnmarshalFuncs(Names) + }, + } + + generateCmd.Flags().StringSliceVarP(&classNames, "classes", "c", nil, "List of class names to process") + generateCmd.Flags().StringVarP(&modelFile, "model-file", "m", "", "Path to the model file") + + unmarshalCmd.Flags().StringSliceVarP(&Names, "names", "n", nil, "List of class names to process") + + rootCmd.AddCommand(generateCmd) + rootCmd.AddCommand(unmarshalCmd) + + // Execute the root command, which will handle both subcommands + if err := rootCmd.Execute(); err != nil { + log.Fatalf("Error: %v", err) + } +} + +// Extract class definitions for the given class names +func extractClassDefinitions(modelText string, classNames []string) []ClassDefinition { + var classDefs []ClassDefinition + + for _, className := range classNames { + re := regexp.MustCompile(fmt.Sprintf(`type %s struct \{([\s\S]*?)\}`, className)) + match := re.FindStringSubmatch(modelText) + if len(match) < 2 { + continue + } + + fields := extractFields(match[1]) + classDefs = append(classDefs, ClassDefinition{ + Name: className, + Fields: fields, + }) + } + + return classDefs +} + +// Extract fields from a struct body +func extractFields(body string) []FieldDefinition { + lines := strings.Split(body, "\n") + var fields []FieldDefinition + + for _, line := range lines { + line = strings.TrimSpace(line) + if line == "" { + continue + } + + parts := strings.Fields(line) + if len(parts) < 2 { + continue + } + + fieldType := parts[1] + if strings.HasSuffix(fieldType, "Union") { + fieldType = "TypedObject" + } + + field := FieldDefinition{ + Name: parts[0], + Type: fieldType, + IsUnion: strings.HasSuffix(parts[1], "Union"), + Tag: extractTag(line), + UnionTag: extractFieldNameFromTag(line), + } + + fields = append(fields, field) + } + + return fields +} + +// Extract JSON tag from a line +func extractTag(line string) string { + re := regexp.MustCompile("`json:\"[^\"]*\"`") + tag := re.FindString(line) + return tag +} + +func extractFieldNameFromTag(line string) string { + re := regexp.MustCompile("`json:\"([^\"]*)\"`") + tag := re.FindStringSubmatch(line) + fieldName := tag[1] + fieldName = strings.ReplaceAll(fieldName, ",omitempty", "") + return fieldName +} + +// Generate a Safe struct and its Unmarshaller +func generateSafeStruct(classDef ClassDefinition) { + var safeFields []SafeFieldDefinition + var nonUnionFields, unionFields []FieldDefinition + + for _, field := range classDef.Fields { + safeFields = append(safeFields, SafeFieldDefinition{ + Name: field.Name, + Type: field.Type, + Tag: field.Tag, + UnionTag: field.UnionTag, + }) + + if field.IsUnion { + unionFields = append(unionFields, field) + } else { + nonUnionFields = append(nonUnionFields, field) + } + } + + data := struct { + Name string + SafeFields []SafeFieldDefinition + NonUnionFields []FieldDefinition + UnionFields []FieldDefinition + }{ + Name: classDef.Name, + SafeFields: safeFields, + NonUnionFields: nonUnionFields, + UnionFields: unionFields, + } + + var buf bytes.Buffer + tmpl := template.Must(template.New("safeStruct").Parse(safeStructTemplate)) + if err := tmpl.Execute(&buf, data); err != nil { + log.Fatalf("Failed to execute template: %v", err) + } + + outputFile := fmt.Sprintf("../%s.go", strings.ToLower(classDef.Name)) + if err := ioutil.WriteFile(outputFile, buf.Bytes(), 0644); err != nil { + log.Fatalf("Failed to write file: %v", err) + } + + fmt.Printf("Generated: %s\n", outputFile) +} + +// Generate Unmarshal functions for the predefined types and write them to a single file +func generateUnmarshalFuncs(classNames []string) { + + var buf bytes.Buffer + + // Add package and import statements to the file + buf.WriteString("package model\n\n") + buf.WriteString("import (\n") + buf.WriteString("\t\"encoding/json\"\n") + buf.WriteString("\t\"fmt\"\n") + buf.WriteString(")\n\n") + + // Generate Unmarshal function for each type and append to the buffer + for _, t := range classNames { + data := struct { + Name string + }{ + Name: t, + } + + tmpl := template.Must(template.New("unmarshalFunc").Parse(unmarshalFuncTemplate)) + if err := tmpl.Execute(&buf, data); err != nil { + log.Fatalf("Failed to execute template: %v", err) + } + } + + // Write the generated content to the unmarshalSlice.go file + outputFile := "../unmarshalSlice.go" + if err := ioutil.WriteFile(outputFile, buf.Bytes(), 0644); err != nil { + log.Fatalf("Failed to write file: %v", err) + } + + fmt.Printf("Generated: %s\n", outputFile) +} diff --git a/gql-gen/model/conditiontype.go b/gql-gen/model/conditiontype.go new file mode 100644 index 0000000..557c259 --- /dev/null +++ b/gql-gen/model/conditiontype.go @@ -0,0 +1,96 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeConditionType struct { + BodySite []*CodeableConcept `json:"bodySite,omitempty"` + VerificationStatus *CodeableConcept `json:"verificationStatus,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + OnsetRange *Range `json:"onsetRange,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + Language *string `json:"language,omitempty"` + AbatementAge *Age `json:"abatementAge,omitempty"` + ID *string `json:"id,omitempty"` + OnsetAge *Age `json:"onsetAge,omitempty"` + ClinicalStatus *CodeableConcept `json:"clinicalStatus,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + AbatementPeriod *Period `json:"abatementPeriod,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + RecordedDate *string `json:"recordedDate,omitempty"` + Stage TypedObject `json:"stage"` + OnsetDateTime *string `json:"onsetDateTime,omitempty"` + OnsetString *string `json:"onsetString,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Subject TypedObject `json:"subject"` + Code *CodeableConcept `json:"code,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Note TypedObject `json:"note"` + Evidence []*CodeableReference `json:"evidence,omitempty"` + OnsetPeriod *Period `json:"onsetPeriod,omitempty"` + AbatementString *string `json:"abatementString,omitempty"` + Severity *CodeableConcept `json:"severity,omitempty"` + Text *Narrative `json:"text,omitempty"` + AbatementDateTime *string `json:"abatementDateTime,omitempty"` + AbatementRange *Range `json:"abatementRange,omitempty"` + Participant TypedObject `json:"participant"` + Extension []*Extension `json:"extension,omitempty"` +} + +func (o *ConditionType) UnmarshalJSON(b []byte) error { + var safe SafeConditionType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = ConditionType{ + BodySite: safe.BodySite, + VerificationStatus: safe.VerificationStatus, + Identifier: safe.Identifier, + OnsetRange: safe.OnsetRange, + Category: safe.Category, + Language: safe.Language, + AbatementAge: safe.AbatementAge, + ID: safe.ID, + OnsetAge: safe.OnsetAge, + ClinicalStatus: safe.ClinicalStatus, + ModifierExtension: safe.ModifierExtension, + AbatementPeriod: safe.AbatementPeriod, + ImplicitRules: safe.ImplicitRules, + RecordedDate: safe.RecordedDate, + OnsetDateTime: safe.OnsetDateTime, + OnsetString: safe.OnsetString, + Meta: safe.Meta, + Code: safe.Code, + ResourceType: safe.ResourceType, + Evidence: safe.Evidence, + OnsetPeriod: safe.OnsetPeriod, + AbatementString: safe.AbatementString, + Severity: safe.Severity, + Text: safe.Text, + AbatementDateTime: safe.AbatementDateTime, + AbatementRange: safe.AbatementRange, + Extension: safe.Extension, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "stage", safe.Stage.Typename, &o.Stage); err != nil { + return fmt.Errorf("failed to unmarshal Stage: %w", err) + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "participant", safe.Participant.Typename, &o.Participant); err != nil { + return fmt.Errorf("failed to unmarshal Participant: %w", err) + } + + return nil +} diff --git a/gql-gen/model/diagnosticreporttype.go b/gql-gen/model/diagnosticreporttype.go new file mode 100644 index 0000000..368bed7 --- /dev/null +++ b/gql-gen/model/diagnosticreporttype.go @@ -0,0 +1,96 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeDiagnosticReportType struct { + SupportingInfo TypedObject `json:"supportingInfo"` + Specimen *SpecimenType `json:"specimen"` + Contained TypedObject `json:"contained,omitempty"` + Language *string `json:"language,omitempty"` + Meta *Meta `json:"meta,omitempty"` + ResultsInterpreter TypedObject `json:"resultsInterpreter"` + ID *string `json:"id,omitempty"` + BasedOn TypedObject `json:"basedOn"` + Note TypedObject `json:"note"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + EffectivePeriod *Period `json:"effectivePeriod,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PresentedForm []*Attachment `json:"presentedForm,omitempty"` + Subject TypedObject `json:"subject"` + Study TypedObject `json:"study"` + Media []*DiagnosticReportMedia `json:"media,omitempty"` + Text *Narrative `json:"text,omitempty"` + ConclusionCode []*CodeableConcept `json:"conclusionCode,omitempty"` + Result *ObservationType `json:"result"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Issued *string `json:"issued,omitempty"` + Performer TypedObject `json:"performer"` + Status *string `json:"status,omitempty"` + Conclusion *string `json:"conclusion,omitempty"` +} + +func (o *DiagnosticReportType) UnmarshalJSON(b []byte) error { + var safe SafeDiagnosticReportType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = DiagnosticReportType{ + Specimen: safe.Specimen, + Language: safe.Language, + Meta: safe.Meta, + ID: safe.ID, + ModifierExtension: safe.ModifierExtension, + EffectiveDateTime: safe.EffectiveDateTime, + Category: safe.Category, + Identifier: safe.Identifier, + EffectivePeriod: safe.EffectivePeriod, + ResourceType: safe.ResourceType, + Code: safe.Code, + Extension: safe.Extension, + PresentedForm: safe.PresentedForm, + Media: safe.Media, + Text: safe.Text, + ConclusionCode: safe.ConclusionCode, + Result: safe.Result, + ImplicitRules: safe.ImplicitRules, + Issued: safe.Issued, + Status: safe.Status, + Conclusion: safe.Conclusion, + } + if err := unmarshalUnion(b, "supportingInfo", safe.SupportingInfo.Typename, &o.SupportingInfo); err != nil { + return fmt.Errorf("failed to unmarshal SupportingInfo: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "resultsInterpreter", safe.ResultsInterpreter.Typename, &o.ResultsInterpreter); err != nil { + return fmt.Errorf("failed to unmarshal ResultsInterpreter: %w", err) + } + if err := unmarshalUnion(b, "basedOn", safe.BasedOn.Typename, &o.BasedOn); err != nil { + return fmt.Errorf("failed to unmarshal BasedOn: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "study", safe.Study.Typename, &o.Study); err != nil { + return fmt.Errorf("failed to unmarshal Study: %w", err) + } + if err := unmarshalUnion(b, "performer", safe.Performer.Typename, &o.Performer); err != nil { + return fmt.Errorf("failed to unmarshal Performer: %w", err) + } + + return nil +} diff --git a/gql-gen/model/documentreferencetype.go b/gql-gen/model/documentreferencetype.go new file mode 100644 index 0000000..1870f94 --- /dev/null +++ b/gql-gen/model/documentreferencetype.go @@ -0,0 +1,94 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeDocumentReferenceType struct { + Modality []*CodeableConcept `json:"modality,omitempty"` + SecurityLabel []*CodeableConcept `json:"securityLabel,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Subject TypedObject `json:"subject"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Event []*CodeableReference `json:"event,omitempty"` + PracticeSetting *CodeableConcept `json:"practiceSetting,omitempty"` + BodySite []*CodeableReference `json:"bodySite,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Date *string `json:"date,omitempty"` + Language *string `json:"language,omitempty"` + Author TypedObject `json:"author"` + Type *CodeableConcept `json:"type,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + Period *Period `json:"period,omitempty"` + FacilityType *CodeableConcept `json:"facilityType,omitempty"` + Attester TypedObject `json:"attester"` + ImplicitRules *string `json:"implicitRules,omitempty"` + DocStatus *string `json:"docStatus,omitempty"` + Custodian *OrganizationType `json:"custodian"` + Description *string `json:"description,omitempty"` + BasedOn TypedObject `json:"basedOn"` + RelatesTo []*DocumentReferenceRelatesTo `json:"relatesTo,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Status *string `json:"status,omitempty"` + Text *Narrative `json:"text,omitempty"` + Content []*DocumentReferenceContent `json:"content,omitempty"` + Version *string `json:"version,omitempty"` + Extension []*Extension `json:"extension,omitempty"` +} + +func (o *DocumentReferenceType) UnmarshalJSON(b []byte) error { + var safe SafeDocumentReferenceType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = DocumentReferenceType{ + Modality: safe.Modality, + SecurityLabel: safe.SecurityLabel, + Meta: safe.Meta, + ID: safe.ID, + ModifierExtension: safe.ModifierExtension, + Event: safe.Event, + PracticeSetting: safe.PracticeSetting, + BodySite: safe.BodySite, + Identifier: safe.Identifier, + Date: safe.Date, + Language: safe.Language, + Type: safe.Type, + Category: safe.Category, + Period: safe.Period, + FacilityType: safe.FacilityType, + ImplicitRules: safe.ImplicitRules, + DocStatus: safe.DocStatus, + Custodian: safe.Custodian, + Description: safe.Description, + RelatesTo: safe.RelatesTo, + ResourceType: safe.ResourceType, + Status: safe.Status, + Text: safe.Text, + Content: safe.Content, + Version: safe.Version, + Extension: safe.Extension, + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "author", safe.Author.Typename, &o.Author); err != nil { + return fmt.Errorf("failed to unmarshal Author: %w", err) + } + if err := unmarshalUnion(b, "attester", safe.Attester.Typename, &o.Attester); err != nil { + return fmt.Errorf("failed to unmarshal Attester: %w", err) + } + if err := unmarshalUnion(b, "basedOn", safe.BasedOn.Typename, &o.BasedOn); err != nil { + return fmt.Errorf("failed to unmarshal BasedOn: %w", err) + } + + return nil +} diff --git a/gql-gen/model/familymemberhistorytype.go b/gql-gen/model/familymemberhistorytype.go new file mode 100644 index 0000000..f66ddb7 --- /dev/null +++ b/gql-gen/model/familymemberhistorytype.go @@ -0,0 +1,100 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeFamilyMemberHistoryType struct { + AgeRange *Range `json:"ageRange,omitempty"` + Patient *PatientType `json:"patient"` + Name *string `json:"name,omitempty"` + DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` + InstantiatesURI *string `json:"instantiatesUri,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` + Text *Narrative `json:"text,omitempty"` + ID *string `json:"id,omitempty"` + BornString *string `json:"bornString,omitempty"` + DeceasedAge *Age `json:"deceasedAge,omitempty"` + AgeAge *Age `json:"ageAge,omitempty"` + Date *string `json:"date,omitempty"` + Sex *CodeableConcept `json:"sex,omitempty"` + Language *string `json:"language,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Note TypedObject `json:"note"` + Reason []*CodeableReference `json:"reason,omitempty"` + Relationship *CodeableConcept `json:"relationship,omitempty"` + Condition []*FamilyMemberHistoryCondition `json:"condition,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Meta *Meta `json:"meta,omitempty"` + DeceasedString *string `json:"deceasedString,omitempty"` + Status *string `json:"status,omitempty"` + AgeString *string `json:"ageString,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Participant TypedObject `json:"participant"` + DeceasedDate *string `json:"deceasedDate,omitempty"` + EstimatedAge *string `json:"estimatedAge,omitempty"` + DataAbsentReason *CodeableConcept `json:"dataAbsentReason,omitempty"` + Procedure []*FamilyMemberHistoryProcedure `json:"procedure,omitempty"` + BornPeriod *Period `json:"bornPeriod,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + DeceasedRange *Range `json:"deceasedRange,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + BornDate *string `json:"bornDate,omitempty"` +} + +func (o *FamilyMemberHistoryType) UnmarshalJSON(b []byte) error { + var safe SafeFamilyMemberHistoryType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = FamilyMemberHistoryType{ + AgeRange: safe.AgeRange, + Patient: safe.Patient, + Name: safe.Name, + DeceasedBoolean: safe.DeceasedBoolean, + InstantiatesURI: safe.InstantiatesURI, + ModifierExtension: safe.ModifierExtension, + InstantiatesCanonical: safe.InstantiatesCanonical, + Text: safe.Text, + ID: safe.ID, + BornString: safe.BornString, + DeceasedAge: safe.DeceasedAge, + AgeAge: safe.AgeAge, + Date: safe.Date, + Sex: safe.Sex, + Language: safe.Language, + Reason: safe.Reason, + Relationship: safe.Relationship, + Condition: safe.Condition, + Extension: safe.Extension, + Meta: safe.Meta, + DeceasedString: safe.DeceasedString, + Status: safe.Status, + AgeString: safe.AgeString, + Identifier: safe.Identifier, + DeceasedDate: safe.DeceasedDate, + EstimatedAge: safe.EstimatedAge, + DataAbsentReason: safe.DataAbsentReason, + Procedure: safe.Procedure, + BornPeriod: safe.BornPeriod, + ImplicitRules: safe.ImplicitRules, + DeceasedRange: safe.DeceasedRange, + ResourceType: safe.ResourceType, + BornDate: safe.BornDate, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "participant", safe.Participant.Typename, &o.Participant); err != nil { + return fmt.Errorf("failed to unmarshal Participant: %w", err) + } + + return nil +} diff --git a/gql-gen/model/generated.go b/gql-gen/model/generated.go index 055a0f6..07ca5e0 100644 --- a/gql-gen/model/generated.go +++ b/gql-gen/model/generated.go @@ -421,67 +421,67 @@ type UsageContextValueReferenceUnion interface { } type Address struct { - Text *string `json:"text,omitempty"` - Use *string `json:"use,omitempty"` - ID *string `json:"id,omitempty"` - Line *string `json:"line,omitempty"` Country *string `json:"country,omitempty"` - PostalCode *string `json:"postalCode,omitempty"` - State *string `json:"state,omitempty"` - City *string `json:"city,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Use *string `json:"use,omitempty"` District *string `json:"district,omitempty"` Period *Period `json:"period,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Text *string `json:"text,omitempty"` + City *string `json:"city,omitempty"` + PostalCode *string `json:"postalCode,omitempty"` + Line *string `json:"line,omitempty"` + State *string `json:"state,omitempty"` Type *string `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` } type Age struct { + Unit *string `json:"unit,omitempty"` + Value *string `json:"value,omitempty"` Code *string `json:"code,omitempty"` Comparator *string `json:"comparator,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ResourceType *string `json:"resourceType,omitempty"` System *string `json:"system,omitempty"` - Unit *string `json:"unit,omitempty"` - Value *string `json:"value,omitempty"` } type Annotation struct { - AuthorString *string `json:"authorString,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Text *string `json:"text,omitempty"` - Time *string `json:"time,omitempty"` - AuthorReference []AnnotationAuthorReferenceUnion `json:"authorReference,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Text *string `json:"text,omitempty"` + Time *string `json:"time,omitempty"` + AuthorReference AnnotationAuthorReferenceUnion `json:"authorReference"` + AuthorString *string `json:"authorString,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` } type Attachment struct { - Width *string `json:"width,omitempty"` - Pages *string `json:"pages,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Data *string `json:"data,omitempty"` + Frames *string `json:"frames,omitempty"` Size *string `json:"size,omitempty"` - Duration *string `json:"duration,omitempty"` Title *string `json:"title,omitempty"` Creation *string `json:"creation,omitempty"` Height *string `json:"height,omitempty"` - Frames *string `json:"frames,omitempty"` + Data *string `json:"data,omitempty"` + Language *string `json:"language,omitempty"` Hash *string `json:"hash,omitempty"` - URL *string `json:"url,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - ID *string `json:"id,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Pages *string `json:"pages,omitempty"` + Duration *string `json:"duration,omitempty"` ContentType *string `json:"contentType,omitempty"` - Language *string `json:"language,omitempty"` + ID *string `json:"id,omitempty"` + URL *string `json:"url,omitempty"` + Width *string `json:"width,omitempty"` } type Availability struct { + NotAvailableTime []*AvailabilityNotAvailableTime `json:"notAvailableTime,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` AvailableTime []*AvailabilityAvailableTime `json:"availableTime,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` - NotAvailableTime []*AvailabilityNotAvailableTime `json:"notAvailableTime,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` } type AvailabilityAvailableTime struct { @@ -495,144 +495,144 @@ type AvailabilityAvailableTime struct { } type AvailabilityNotAvailableTime struct { - ResourceType *string `json:"resourceType,omitempty"` - Description *string `json:"description,omitempty"` During *Period `json:"during,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Description *string `json:"description,omitempty"` } type BodyStructureIncludedStructure struct { - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` Laterality *CodeableConcept `json:"laterality,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Qualifier []*CodeableConcept `json:"qualifier,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Structure *CodeableConcept `json:"structure,omitempty"` BodyLandmarkOrientation []*BodyStructureIncludedStructureBodyLandmarkOrientation `json:"bodyLandmarkOrientation,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` } type BodyStructureIncludedStructureBodyLandmarkOrientation struct { - ID *string `json:"id,omitempty"` - LandmarkDescription []*CodeableConcept `json:"landmarkDescription,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` SurfaceOrientation []*CodeableConcept `json:"surfaceOrientation,omitempty"` ClockFacePosition []*CodeableConcept `json:"clockFacePosition,omitempty"` DistanceFromLandmark []*BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark `json:"distanceFromLandmark,omitempty"` Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + LandmarkDescription []*CodeableConcept `json:"landmarkDescription,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark struct { - Device []*CodeableReference `json:"device,omitempty"` - Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Value []*Quantity `json:"value,omitempty"` + Device []*CodeableReference `json:"device,omitempty"` + Extension []*Extension `json:"extension,omitempty"` } type BodyStructureType struct { - Patient []*PatientType `json:"patient,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` + Description *string `json:"description,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Patient *PatientType `json:"patient"` + Language *string `json:"language,omitempty"` + Meta *Meta `json:"meta,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Active *string `json:"active,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Image []*Attachment `json:"image,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + IncludedStructure []*BodyStructureIncludedStructure `json:"includedStructure,omitempty"` + Text *Narrative `json:"text,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` ExcludedStructure []*BodyStructureIncludedStructure `json:"excludedStructure,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` ID *string `json:"id,omitempty"` - Meta *Meta `json:"meta,omitempty"` - IncludedStructure []*BodyStructureIncludedStructure `json:"includedStructure,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` + Active *string `json:"active,omitempty"` Morphology *CodeableConcept `json:"morphology,omitempty"` - Text *Narrative `json:"text,omitempty"` - Description *string `json:"description,omitempty"` - Language *string `json:"language,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Image []*Attachment `json:"image,omitempty"` } func (BodyStructureType) IsResourceUnion() {} type CodeableConcept struct { + ResourceType *string `json:"resourceType,omitempty"` Text *string `json:"text,omitempty"` Coding []*Coding `json:"coding,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` } type CodeableReference struct { - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Concept *CodeableConcept `json:"concept,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` } type Coding struct { - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - System *string `json:"system,omitempty"` UserSelected *string `json:"userSelected,omitempty"` Version *string `json:"version,omitempty"` Code *string `json:"code,omitempty"` Display *string `json:"display,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + System *string `json:"system,omitempty"` } type ConditionParticipant struct { - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Actor []ConditionParticipantActorUnion `json:"actor,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Function *CodeableConcept `json:"function,omitempty"` - ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Actor ConditionParticipantActorUnion `json:"actor"` + Extension []*Extension `json:"extension,omitempty"` + Function *CodeableConcept `json:"function,omitempty"` + ID *string `json:"id,omitempty"` } type ConditionStage struct { - ResourceType *string `json:"resourceType,omitempty"` - Summary *CodeableConcept `json:"summary,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` - Assessment []ConditionStageAssessmentUnion `json:"assessment,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Summary *CodeableConcept `json:"summary,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + Assessment ConditionStageAssessmentUnion `json:"assessment"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type ConditionType struct { - Contained []ResourceUnion `json:"contained,omitempty"` - AbatementAge *Age `json:"abatementAge,omitempty"` - OnsetDateTime *string `json:"onsetDateTime,omitempty"` - VerificationStatus *CodeableConcept `json:"verificationStatus,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - Language *string `json:"language,omitempty"` - Text *Narrative `json:"text,omitempty"` - AbatementString *string `json:"abatementString,omitempty"` - ClinicalStatus *CodeableConcept `json:"clinicalStatus,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - AbatementRange *Range `json:"abatementRange,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - RecordedDate *string `json:"recordedDate,omitempty"` - Severity *CodeableConcept `json:"severity,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - OnsetAge *Age `json:"onsetAge,omitempty"` - Evidence []*CodeableReference `json:"evidence,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Stage []ConditionStageUnion `json:"stage,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` - OnsetRange *Range `json:"onsetRange,omitempty"` - Subject []ConditionSubjectUnion `json:"subject,omitempty"` - AbatementPeriod *Period `json:"abatementPeriod,omitempty"` - ID *string `json:"id,omitempty"` - BodySite []*CodeableConcept `json:"bodySite,omitempty"` - OnsetString *string `json:"onsetString,omitempty"` - AbatementDateTime *string `json:"abatementDateTime,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Participant []ConditionParticipantUnion `json:"participant,omitempty"` - Note []ConditionNoteUnion `json:"note,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - OnsetPeriod *Period `json:"onsetPeriod,omitempty"` + BodySite []*CodeableConcept `json:"bodySite,omitempty"` + VerificationStatus *CodeableConcept `json:"verificationStatus,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + OnsetRange *Range `json:"onsetRange,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + Language *string `json:"language,omitempty"` + AbatementAge *Age `json:"abatementAge,omitempty"` + ID *string `json:"id,omitempty"` + OnsetAge *Age `json:"onsetAge,omitempty"` + ClinicalStatus *CodeableConcept `json:"clinicalStatus,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + AbatementPeriod *Period `json:"abatementPeriod,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + RecordedDate *string `json:"recordedDate,omitempty"` + Stage ConditionStageUnion `json:"stage"` + OnsetDateTime *string `json:"onsetDateTime,omitempty"` + OnsetString *string `json:"onsetString,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Subject ConditionSubjectUnion `json:"subject"` + Code *CodeableConcept `json:"code,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Note ConditionNoteUnion `json:"note"` + Evidence []*CodeableReference `json:"evidence,omitempty"` + OnsetPeriod *Period `json:"onsetPeriod,omitempty"` + AbatementString *string `json:"abatementString,omitempty"` + Severity *CodeableConcept `json:"severity,omitempty"` + Text *Narrative `json:"text,omitempty"` + AbatementDateTime *string `json:"abatementDateTime,omitempty"` + AbatementRange *Range `json:"abatementRange,omitempty"` + Participant ConditionParticipantUnion `json:"participant"` + Extension []*Extension `json:"extension,omitempty"` } func (ConditionType) IsMedicationStatementRelatedClinicalInformationUnion() {} @@ -640,26 +640,25 @@ func (ConditionType) IsMedicationStatementRelatedClinicalInformationUnion() {} func (ConditionType) IsResourceUnion() {} type ContactDetail struct { - Telecom []*ContactPoint `json:"telecom,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Telecom []*ContactPoint `json:"telecom,omitempty"` } type ContactPoint struct { - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - Period *Period `json:"period,omitempty"` - Rank *string `json:"rank,omitempty"` ResourceType *string `json:"resourceType,omitempty"` System *string `json:"system,omitempty"` Use *string `json:"use,omitempty"` Value *string `json:"value,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Period *Period `json:"period,omitempty"` + Rank *string `json:"rank,omitempty"` } type Count struct { - Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ResourceType *string `json:"resourceType,omitempty"` System *string `json:"system,omitempty"` @@ -667,322 +666,323 @@ type Count struct { Value *string `json:"value,omitempty"` Code *string `json:"code,omitempty"` Comparator *string `json:"comparator,omitempty"` + Extension []*Extension `json:"extension,omitempty"` } type DataRequirement struct { Type *string `json:"type,omitempty"` ValueFilter []*DataRequirementValueFilter `json:"valueFilter,omitempty"` - DateFilter []*DataRequirementDateFilter `json:"dateFilter,omitempty"` + ID *string `json:"id,omitempty"` + Profile *string `json:"profile,omitempty"` + SubjectReference *GroupType `json:"subjectReference"` + CodeFilter []*DataRequirementCodeFilter `json:"codeFilter,omitempty"` Limit *string `json:"limit,omitempty"` SubjectCodeableConcept *CodeableConcept `json:"subjectCodeableConcept,omitempty"` - Extension []*Extension `json:"extension,omitempty"` MustSupport *string `json:"mustSupport,omitempty"` - Sort []*DataRequirementSort `json:"sort,omitempty"` - ID *string `json:"id,omitempty"` - Profile *string `json:"profile,omitempty"` - SubjectReference []*GroupType `json:"subjectReference,omitempty"` + Extension []*Extension `json:"extension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - CodeFilter []*DataRequirementCodeFilter `json:"codeFilter,omitempty"` + Sort []*DataRequirementSort `json:"sort,omitempty"` + DateFilter []*DataRequirementDateFilter `json:"dateFilter,omitempty"` } type DataRequirementCodeFilter struct { - Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` Path *string `json:"path,omitempty"` ResourceType *string `json:"resourceType,omitempty"` SearchParam *string `json:"searchParam,omitempty"` ValueSet *string `json:"valueSet,omitempty"` Code []*Coding `json:"code,omitempty"` + Extension []*Extension `json:"extension,omitempty"` } type DataRequirementDateFilter struct { - ID *string `json:"id,omitempty"` - Path *string `json:"path,omitempty"` ResourceType *string `json:"resourceType,omitempty"` SearchParam *string `json:"searchParam,omitempty"` ValueDateTime *string `json:"valueDateTime,omitempty"` ValueDuration *Duration `json:"valueDuration,omitempty"` ValuePeriod *Period `json:"valuePeriod,omitempty"` Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Path *string `json:"path,omitempty"` } type DataRequirementSort struct { + Path *string `json:"path,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` Direction *string `json:"direction,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` - Path *string `json:"path,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` } type DataRequirementValueFilter struct { + Comparator *string `json:"comparator,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` - Path *string `json:"path,omitempty"` - Comparator *string `json:"comparator,omitempty"` ResourceType *string `json:"resourceType,omitempty"` SearchParam *string `json:"searchParam,omitempty"` - ValueDateTime *string `json:"valueDateTime,omitempty"` ValueDuration *Duration `json:"valueDuration,omitempty"` + Path *string `json:"path,omitempty"` + ValueDateTime *string `json:"valueDateTime,omitempty"` ValuePeriod *Period `json:"valuePeriod,omitempty"` } type DiagnosticReportMedia struct { - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Comment *string `json:"comment,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - Link []*DocumentReferenceType `json:"link,omitempty"` + Comment *string `json:"comment,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Link *DocumentReferenceType `json:"link"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` } type DiagnosticReportSupportingInfo struct { - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Reference []DiagnosticReportSupportingInfoReferenceUnion `json:"reference,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Reference DiagnosticReportSupportingInfoReferenceUnion `json:"reference"` } type DiagnosticReportType struct { - Result []*ObservationType `json:"result,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Language *string `json:"language,omitempty"` - Performer []DiagnosticReportPerformerUnion `json:"performer,omitempty"` - PresentedForm []*Attachment `json:"presentedForm,omitempty"` - Text *Narrative `json:"text,omitempty"` - Subject []DiagnosticReportSubjectUnion `json:"subject,omitempty"` - Specimen []*SpecimenType `json:"specimen,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` - Media []*DiagnosticReportMedia `json:"media,omitempty"` - EffectivePeriod *Period `json:"effectivePeriod,omitempty"` - Study []DiagnosticReportStudyUnion `json:"study,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - ID *string `json:"id,omitempty"` - Note []DiagnosticReportNoteUnion `json:"note,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - BasedOn []DiagnosticReportBasedOnUnion `json:"basedOn,omitempty"` - ConclusionCode []*CodeableConcept `json:"conclusionCode,omitempty"` - SupportingInfo []DiagnosticReportSupportingInfoUnion `json:"supportingInfo,omitempty"` - Conclusion *string `json:"conclusion,omitempty"` - Status *string `json:"status,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` - Issued *string `json:"issued,omitempty"` - ResultsInterpreter []DiagnosticReportResultsInterpreterUnion `json:"resultsInterpreter,omitempty"` + SupportingInfo DiagnosticReportSupportingInfoUnion `json:"supportingInfo"` + Specimen *SpecimenType `json:"specimen"` + Contained []ResourceUnion `json:"contained,omitempty"` + Language *string `json:"language,omitempty"` + Meta *Meta `json:"meta,omitempty"` + ResultsInterpreter DiagnosticReportResultsInterpreterUnion `json:"resultsInterpreter"` + ID *string `json:"id,omitempty"` + BasedOn DiagnosticReportBasedOnUnion `json:"basedOn"` + Note DiagnosticReportNoteUnion `json:"note"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + EffectivePeriod *Period `json:"effectivePeriod,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PresentedForm []*Attachment `json:"presentedForm,omitempty"` + Subject DiagnosticReportSubjectUnion `json:"subject"` + Study DiagnosticReportStudyUnion `json:"study"` + Media []*DiagnosticReportMedia `json:"media,omitempty"` + Text *Narrative `json:"text,omitempty"` + ConclusionCode []*CodeableConcept `json:"conclusionCode,omitempty"` + Result *ObservationType `json:"result"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Issued *string `json:"issued,omitempty"` + Performer DiagnosticReportPerformerUnion `json:"performer"` + Status *string `json:"status,omitempty"` + Conclusion *string `json:"conclusion,omitempty"` } func (DiagnosticReportType) IsConditionStageUnion() {} -func (DiagnosticReportType) IsProcedureReportUnion() {} +func (DiagnosticReportType) IsResearchStudyResultUnion() {} func (DiagnosticReportType) IsConditionStageAssessmentUnion() {} -func (DiagnosticReportType) IsResearchStudyResultUnion() {} - func (DiagnosticReportType) IsDiagnosticReportSupportingInfoUnion() {} func (DiagnosticReportType) IsDiagnosticReportSupportingInfoReferenceUnion() {} +func (DiagnosticReportType) IsProcedureReportUnion() {} + func (DiagnosticReportType) IsResourceUnion() {} type Distance struct { + Comparator *string `json:"comparator,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` ResourceType *string `json:"resourceType,omitempty"` System *string `json:"system,omitempty"` Unit *string `json:"unit,omitempty"` Value *string `json:"value,omitempty"` Code *string `json:"code,omitempty"` - Comparator *string `json:"comparator,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` } type DocumentReferenceAttester struct { - ID *string `json:"id,omitempty"` - Mode *CodeableConcept `json:"mode,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Party []DocumentReferenceAttesterPartyUnion `json:"party,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Time *string `json:"time,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + Time *string `json:"time,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Mode *CodeableConcept `json:"mode,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Party DocumentReferenceAttesterPartyUnion `json:"party"` + ResourceType *string `json:"resourceType,omitempty"` } type DocumentReferenceContent struct { - Attachment *Attachment `json:"attachment,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Profile []*DocumentReferenceContentProfile `json:"profile,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Attachment *Attachment `json:"attachment,omitempty"` } type DocumentReferenceContentProfile struct { - ValueURI *string `json:"valueUri,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` ValueCanonical *string `json:"valueCanonical,omitempty"` ValueCoding *Coding `json:"valueCoding,omitempty"` + ValueURI *string `json:"valueUri,omitempty"` } type DocumentReferenceRelatesTo struct { - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Target []*DocumentReferenceType `json:"target,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Target *DocumentReferenceType `json:"target"` } type DocumentReferenceType struct { - Version *string `json:"version,omitempty"` - Language *string `json:"language,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - BodySite []*CodeableReference `json:"bodySite,omitempty"` - PracticeSetting *CodeableConcept `json:"practiceSetting,omitempty"` - Author []DocumentReferenceAuthorUnion `json:"author,omitempty"` - BasedOn []DocumentReferenceBasedOnUnion `json:"basedOn,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Status *string `json:"status,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` - Modality []*CodeableConcept `json:"modality,omitempty"` - Period *Period `json:"period,omitempty"` - Attester []DocumentReferenceAttesterUnion `json:"attester,omitempty"` - DocStatus *string `json:"docStatus,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Custodian []*OrganizationType `json:"custodian,omitempty"` - Event []*CodeableReference `json:"event,omitempty"` - RelatesTo []*DocumentReferenceRelatesTo `json:"relatesTo,omitempty"` - FacilityType *CodeableConcept `json:"facilityType,omitempty"` - ID *string `json:"id,omitempty"` - SecurityLabel []*CodeableConcept `json:"securityLabel,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Description *string `json:"description,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` - Text *Narrative `json:"text,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Subject []ResourceUnion `json:"subject,omitempty"` - Content []*DocumentReferenceContent `json:"content,omitempty"` - Date *string `json:"date,omitempty"` + Modality []*CodeableConcept `json:"modality,omitempty"` + SecurityLabel []*CodeableConcept `json:"securityLabel,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Subject ResourceUnion `json:"subject"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Event []*CodeableReference `json:"event,omitempty"` + PracticeSetting *CodeableConcept `json:"practiceSetting,omitempty"` + BodySite []*CodeableReference `json:"bodySite,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Date *string `json:"date,omitempty"` + Language *string `json:"language,omitempty"` + Author DocumentReferenceAuthorUnion `json:"author"` + Type *CodeableConcept `json:"type,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + Period *Period `json:"period,omitempty"` + FacilityType *CodeableConcept `json:"facilityType,omitempty"` + Attester DocumentReferenceAttesterUnion `json:"attester"` + ImplicitRules *string `json:"implicitRules,omitempty"` + DocStatus *string `json:"docStatus,omitempty"` + Custodian *OrganizationType `json:"custodian"` + Description *string `json:"description,omitempty"` + BasedOn DocumentReferenceBasedOnUnion `json:"basedOn"` + RelatesTo []*DocumentReferenceRelatesTo `json:"relatesTo,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Status *string `json:"status,omitempty"` + Text *Narrative `json:"text,omitempty"` + Content []*DocumentReferenceContent `json:"content,omitempty"` + Version *string `json:"version,omitempty"` + Extension []*Extension `json:"extension,omitempty"` } -func (DocumentReferenceType) IsObservationDerivedFromUnion() {} - func (DocumentReferenceType) IsProcedureReportUnion() {} +func (DocumentReferenceType) IsObservationDerivedFromUnion() {} + func (DocumentReferenceType) IsResourceUnion() {} type Dosage struct { - AsNeededFor []*CodeableConcept `json:"asNeededFor,omitempty"` DoseAndRate []*DosageDoseAndRate `json:"doseAndRate,omitempty"` + AdditionalInstruction []*CodeableConcept `json:"additionalInstruction,omitempty"` Route *CodeableConcept `json:"route,omitempty"` - Method *CodeableConcept `json:"method,omitempty"` + Timing *Timing `json:"timing,omitempty"` + ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - PatientInstruction *string `json:"patientInstruction,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` Text *string `json:"text,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + Sequence *string `json:"sequence,omitempty"` + AsNeeded *string `json:"asNeeded,omitempty"` Site *CodeableConcept `json:"site,omitempty"` - MaxDosePerAdministration *Quantity `json:"maxDosePerAdministration,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PatientInstruction *string `json:"patientInstruction,omitempty"` + AsNeededFor []*CodeableConcept `json:"asNeededFor,omitempty"` MaxDosePerLifetime *Quantity `json:"maxDosePerLifetime,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - AdditionalInstruction []*CodeableConcept `json:"additionalInstruction,omitempty"` - AsNeeded *string `json:"asNeeded,omitempty"` - Timing *Timing `json:"timing,omitempty"` - ID *string `json:"id,omitempty"` - Sequence *string `json:"sequence,omitempty"` + Method *CodeableConcept `json:"method,omitempty"` MaxDosePerPeriod []*Ratio `json:"maxDosePerPeriod,omitempty"` + MaxDosePerAdministration *Quantity `json:"maxDosePerAdministration,omitempty"` } type DosageDoseAndRate struct { + Extension []*Extension `json:"extension,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` ID *string `json:"id,omitempty"` DoseRange *Range `json:"doseRange,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - RateRange *Range `json:"rateRange,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` + RateQuantity *Quantity `json:"rateQuantity,omitempty"` DoseQuantity *Quantity `json:"doseQuantity,omitempty"` RateRatio *Ratio `json:"rateRatio,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - RateQuantity *Quantity `json:"rateQuantity,omitempty"` + RateRange *Range `json:"rateRange,omitempty"` } type Duration struct { - Code *string `json:"code,omitempty"` - Comparator *string `json:"comparator,omitempty"` - Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ResourceType *string `json:"resourceType,omitempty"` System *string `json:"system,omitempty"` Unit *string `json:"unit,omitempty"` Value *string `json:"value,omitempty"` + Code *string `json:"code,omitempty"` + Comparator *string `json:"comparator,omitempty"` + Extension []*Extension `json:"extension,omitempty"` } type Encounter struct { - Length *Duration `json:"length,omitempty"` - ActualPeriod *Period `json:"actualPeriod,omitempty"` - Priority *CodeableConcept `json:"priority,omitempty"` - Class []*CodeableConcept `json:"class,omitempty"` - PlannedEndDate *string `json:"plannedEndDate,omitempty"` - ServiceType []*CodeableReference `json:"serviceType,omitempty"` - Admission *EncounterAdmission `json:"admission,omitempty"` Meta *Meta `json:"meta,omitempty"` - ID *string `json:"id,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - PlannedStartDate *string `json:"plannedStartDate,omitempty"` - Type []*CodeableConcept `json:"type,omitempty"` - Diagnosis []*EncounterDiagnosis `json:"diagnosis,omitempty"` Text *Narrative `json:"text,omitempty"` - Participant []*EncounterParticipant `json:"participant,omitempty"` + PlannedEndDate *string `json:"plannedEndDate,omitempty"` + Language *string `json:"language,omitempty"` + Reason []*EncounterReason `json:"reason,omitempty"` Status *string `json:"status,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` VirtualService []*VirtualServiceDetail `json:"virtualService,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - SpecialCourtesy []*CodeableConcept `json:"specialCourtesy,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + SubjectStatus *CodeableConcept `json:"subjectStatus,omitempty"` SpecialArrangement []*CodeableConcept `json:"specialArrangement,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + Admission *EncounterAdmission `json:"admission,omitempty"` + SpecialCourtesy []*CodeableConcept `json:"specialCourtesy,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Class []*CodeableConcept `json:"class,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + PlannedStartDate *string `json:"plannedStartDate,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Contained []ResourceUnion `json:"contained,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Priority *CodeableConcept `json:"priority,omitempty"` + Diagnosis []*EncounterDiagnosis `json:"diagnosis,omitempty"` + ServiceType []*CodeableReference `json:"serviceType,omitempty"` + Length *Duration `json:"length,omitempty"` + Participant []*EncounterParticipant `json:"participant,omitempty"` + Type []*CodeableConcept `json:"type,omitempty"` Location []*EncounterLocation `json:"location,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` DietPreference []*CodeableConcept `json:"dietPreference,omitempty"` - Reason []*EncounterReason `json:"reason,omitempty"` - SubjectStatus *CodeableConcept `json:"subjectStatus,omitempty"` - Language *string `json:"language,omitempty"` + ActualPeriod *Period `json:"actualPeriod,omitempty"` + ID *string `json:"id,omitempty"` } type EncounterAdmission struct { + AdmitSource *CodeableConcept `json:"admitSource,omitempty"` + DischargeDisposition *CodeableConcept `json:"dischargeDisposition,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` PreAdmissionIdentifier *Identifier `json:"preAdmissionIdentifier,omitempty"` ReAdmission *CodeableConcept `json:"reAdmission,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - AdmitSource *CodeableConcept `json:"admitSource,omitempty"` - DischargeDisposition *CodeableConcept `json:"dischargeDisposition,omitempty"` } type EncounterDiagnosis struct { - ResourceType *string `json:"resourceType,omitempty"` Use []*CodeableConcept `json:"use,omitempty"` Condition []*CodeableReference `json:"condition,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` } type EncounterLocation struct { + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Period *Period `json:"period,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Status *string `json:"status,omitempty"` Extension []*Extension `json:"extension,omitempty"` Form *CodeableConcept `json:"form,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type EncounterParticipant struct { @@ -995,12 +995,12 @@ type EncounterParticipant struct { } type EncounterReason struct { - ResourceType *string `json:"resourceType,omitempty"` - Use []*CodeableConcept `json:"use,omitempty"` Value []*CodeableReference `json:"value,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Use []*CodeableConcept `json:"use,omitempty"` } type Expression struct { @@ -1015,302 +1015,301 @@ type Expression struct { } type ExtendedContactDetail struct { - Name []*HumanName `json:"name,omitempty"` - Organization []*OrganizationType `json:"organization,omitempty"` - Purpose *CodeableConcept `json:"purpose,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Telecom []*ContactPoint `json:"telecom,omitempty"` - Address *Address `json:"address,omitempty"` - ID *string `json:"id,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Period *Period `json:"period,omitempty"` + Period *Period `json:"period,omitempty"` + Telecom []*ContactPoint `json:"telecom,omitempty"` + Address *Address `json:"address,omitempty"` + Organization *OrganizationType `json:"organization"` + Purpose *CodeableConcept `json:"purpose,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Name []*HumanName `json:"name,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` } type Extension struct { - ValueURI *string `json:"valueUri,omitempty"` - ValueInteger *string `json:"valueInteger,omitempty"` - ValueAttachment *Attachment `json:"valueAttachment,omitempty"` - ValueParameterDefinition *ParameterDefinition `json:"valueParameterDefinition,omitempty"` - ValueInteger64 *string `json:"valueInteger64,omitempty"` - ValueHumanName *HumanName `json:"valueHumanName,omitempty"` - ValueAge *Age `json:"valueAge,omitempty"` - ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` - ValueSampledData *SampledData `json:"valueSampledData,omitempty"` - ValueDateTime *string `json:"valueDateTime,omitempty"` - ValueExtendedContactDetail *ExtendedContactDetail `json:"valueExtendedContactDetail,omitempty"` - ValueMarkdown *string `json:"valueMarkdown,omitempty"` - ValueTriggerDefinition *TriggerDefinition `json:"valueTriggerDefinition,omitempty"` - ValueString *string `json:"valueString,omitempty"` - ValueContactPoint *ContactPoint `json:"valueContactPoint,omitempty"` - ValueAnnotation []ExtensionValueAnnotationUnion `json:"valueAnnotation,omitempty"` - ValueContactDetail *ContactDetail `json:"valueContactDetail,omitempty"` - ValueQuantity *Quantity `json:"valueQuantity,omitempty"` - ValueUUID *string `json:"valueUuid,omitempty"` - ValueRange *Range `json:"valueRange,omitempty"` - ValueCanonical *string `json:"valueCanonical,omitempty"` - ValueCodeableReference *CodeableReference `json:"valueCodeableReference,omitempty"` - ID *string `json:"id,omitempty"` - ValueRatio *Ratio `json:"valueRatio,omitempty"` - ValueOid *string `json:"valueOid,omitempty"` - ValueRatioRange *RatioRange `json:"valueRatioRange,omitempty"` - ValueInstant *string `json:"valueInstant,omitempty"` - ValueDuration *Duration `json:"valueDuration,omitempty"` - ValueRelatedArtifact *RelatedArtifact `json:"valueRelatedArtifact,omitempty"` - ValueSignature []ExtensionValueSignatureUnion `json:"valueSignature,omitempty"` - ValueDate *string `json:"valueDate,omitempty"` - ValueDosage *Dosage `json:"valueDosage,omitempty"` - ValueBase64Binary *string `json:"valueBase64Binary,omitempty"` - ValuePeriod *Period `json:"valuePeriod,omitempty"` - ValueMoney *Money `json:"valueMoney,omitempty"` - ValueIdentifier *Identifier `json:"valueIdentifier,omitempty"` - URL *string `json:"url,omitempty"` - ValueCode *string `json:"valueCode,omitempty"` - ValuePositiveInt *string `json:"valuePositiveInt,omitempty"` - ValueID *string `json:"valueId,omitempty"` - ValueUnsignedInt *string `json:"valueUnsignedInt,omitempty"` - ValueDataRequirement *DataRequirement `json:"valueDataRequirement,omitempty"` - ValueTime *string `json:"valueTime,omitempty"` - ValueCoding *Coding `json:"valueCoding,omitempty"` - ValueTiming *Timing `json:"valueTiming,omitempty"` - ValueExpression *Expression `json:"valueExpression,omitempty"` - ValueDistance *Distance `json:"valueDistance,omitempty"` - ValueCount *Count `json:"valueCount,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ValueAvailability *Availability `json:"valueAvailability,omitempty"` - ValueURL *string `json:"valueUrl,omitempty"` - ValueBoolean *string `json:"valueBoolean,omitempty"` - ValueDecimal *string `json:"valueDecimal,omitempty"` - ValueMeta *Meta `json:"valueMeta,omitempty"` - ValueAddress *Address `json:"valueAddress,omitempty"` - ValueUsageContext []ExtensionValueUsageContextUnion `json:"valueUsageContext,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + ValuePeriod *Period `json:"valuePeriod,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + ValueExpression *Expression `json:"valueExpression,omitempty"` + ValueSampledData *SampledData `json:"valueSampledData,omitempty"` + ValueContactDetail *ContactDetail `json:"valueContactDetail,omitempty"` + ValueCodeableReference *CodeableReference `json:"valueCodeableReference,omitempty"` + ValueRelatedArtifact *RelatedArtifact `json:"valueRelatedArtifact,omitempty"` + ValueParameterDefinition *ParameterDefinition `json:"valueParameterDefinition,omitempty"` + ValueInstant *string `json:"valueInstant,omitempty"` + ValueExtendedContactDetail *ExtendedContactDetail `json:"valueExtendedContactDetail,omitempty"` + ValueID *string `json:"valueId,omitempty"` + ValueCount *Count `json:"valueCount,omitempty"` + ValueCoding *Coding `json:"valueCoding,omitempty"` + ValueUsageContext ExtensionValueUsageContextUnion `json:"valueUsageContext"` + ValueInteger *string `json:"valueInteger,omitempty"` + ValueUUID *string `json:"valueUuid,omitempty"` + ValueMeta *Meta `json:"valueMeta,omitempty"` + ValueOid *string `json:"valueOid,omitempty"` + ValueTriggerDefinition *TriggerDefinition `json:"valueTriggerDefinition,omitempty"` + ID *string `json:"id,omitempty"` + ValueMarkdown *string `json:"valueMarkdown,omitempty"` + ValueIdentifier *Identifier `json:"valueIdentifier,omitempty"` + ValueRange *Range `json:"valueRange,omitempty"` + ValueAttachment *Attachment `json:"valueAttachment,omitempty"` + ValueDate *string `json:"valueDate,omitempty"` + ValueRatio *Ratio `json:"valueRatio,omitempty"` + ValueBoolean *string `json:"valueBoolean,omitempty"` + ValueString *string `json:"valueString,omitempty"` + ValueDuration *Duration `json:"valueDuration,omitempty"` + ValueDataRequirement *DataRequirement `json:"valueDataRequirement,omitempty"` + ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + ValueContactPoint *ContactPoint `json:"valueContactPoint,omitempty"` + ValueAvailability *Availability `json:"valueAvailability,omitempty"` + ValueDosage *Dosage `json:"valueDosage,omitempty"` + ValueUnsignedInt *string `json:"valueUnsignedInt,omitempty"` + ValueAge *Age `json:"valueAge,omitempty"` + ValueHumanName *HumanName `json:"valueHumanName,omitempty"` + ValueInteger64 *string `json:"valueInteger64,omitempty"` + ValueURL *string `json:"valueUrl,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ValueBase64Binary *string `json:"valueBase64Binary,omitempty"` + ValueCode *string `json:"valueCode,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ValueDecimal *string `json:"valueDecimal,omitempty"` + ValuePositiveInt *string `json:"valuePositiveInt,omitempty"` + ValueAddress *Address `json:"valueAddress,omitempty"` + ValueURI *string `json:"valueUri,omitempty"` + ValueSignature ExtensionValueSignatureUnion `json:"valueSignature"` + ValueDateTime *string `json:"valueDateTime,omitempty"` + ValueTime *string `json:"valueTime,omitempty"` + ValueMoney *Money `json:"valueMoney,omitempty"` + ValueDistance *Distance `json:"valueDistance,omitempty"` + ValueTiming *Timing `json:"valueTiming,omitempty"` + ValueRatioRange *RatioRange `json:"valueRatioRange,omitempty"` + ValueCanonical *string `json:"valueCanonical,omitempty"` + URL *string `json:"url,omitempty"` + ValueAnnotation ExtensionValueAnnotationUnion `json:"valueAnnotation"` } type FHIRPrimitiveExtension struct { + ResourceType *string `json:"resourceType,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` } type FamilyMemberHistoryCondition struct { - OnsetPeriod *Period `json:"onsetPeriod,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Note []FamilyMemberHistoryConditionNoteUnion `json:"note,omitempty"` - OnsetAge *Age `json:"onsetAge,omitempty"` - OnsetRange *Range `json:"onsetRange,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ContributedToDeath *string `json:"contributedToDeath,omitempty"` - ID *string `json:"id,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - OnsetString *string `json:"onsetString,omitempty"` - Outcome *CodeableConcept `json:"outcome,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + OnsetPeriod *Period `json:"onsetPeriod,omitempty"` + ID *string `json:"id,omitempty"` + Outcome *CodeableConcept `json:"outcome,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + OnsetRange *Range `json:"onsetRange,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + OnsetString *string `json:"onsetString,omitempty"` + ContributedToDeath *string `json:"contributedToDeath,omitempty"` + Note FamilyMemberHistoryConditionNoteUnion `json:"note"` + OnsetAge *Age `json:"onsetAge,omitempty"` } type FamilyMemberHistoryParticipant struct { - Actor []FamilyMemberHistoryParticipantActorUnion `json:"actor,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Function *CodeableConcept `json:"function,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Function *CodeableConcept `json:"function,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Actor FamilyMemberHistoryParticipantActorUnion `json:"actor"` } type FamilyMemberHistoryProcedure struct { - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Note []FamilyMemberHistoryProcedureNoteUnion `json:"note,omitempty"` - PerformedDateTime *string `json:"performedDateTime,omitempty"` - PerformedRange *Range `json:"performedRange,omitempty"` - ContributedToDeath *string `json:"contributedToDeath,omitempty"` - PerformedAge *Age `json:"performedAge,omitempty"` - PerformedPeriod *Period `json:"performedPeriod,omitempty"` - PerformedString *string `json:"performedString,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ID *string `json:"id,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - Outcome *CodeableConcept `json:"outcome,omitempty"` + Note FamilyMemberHistoryProcedureNoteUnion `json:"note"` + Outcome *CodeableConcept `json:"outcome,omitempty"` + PerformedDateTime *string `json:"performedDateTime,omitempty"` + ContributedToDeath *string `json:"contributedToDeath,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + PerformedPeriod *Period `json:"performedPeriod,omitempty"` + PerformedString *string `json:"performedString,omitempty"` + ID *string `json:"id,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + PerformedAge *Age `json:"performedAge,omitempty"` + PerformedRange *Range `json:"performedRange,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` } type FamilyMemberHistoryType struct { - Condition []*FamilyMemberHistoryCondition `json:"condition,omitempty"` - AgeAge *Age `json:"ageAge,omitempty"` - DeceasedRange *Range `json:"deceasedRange,omitempty"` - DeceasedAge *Age `json:"deceasedAge,omitempty"` - Status *string `json:"status,omitempty"` - Language *string `json:"language,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Sex *CodeableConcept `json:"sex,omitempty"` - Note []FamilyMemberHistoryNoteUnion `json:"note,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - ID *string `json:"id,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - DeceasedString *string `json:"deceasedString,omitempty"` - Relationship *CodeableConcept `json:"relationship,omitempty"` - BornDate *string `json:"bornDate,omitempty"` - DataAbsentReason *CodeableConcept `json:"dataAbsentReason,omitempty"` - EstimatedAge *string `json:"estimatedAge,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Date *string `json:"date,omitempty"` - Patient []*PatientType `json:"patient,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Procedure []*FamilyMemberHistoryProcedure `json:"procedure,omitempty"` - Meta *Meta `json:"meta,omitempty"` - AgeRange *Range `json:"ageRange,omitempty"` - Name *string `json:"name,omitempty"` - DeceasedDate *string `json:"deceasedDate,omitempty"` - DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` - InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` - AgeString *string `json:"ageString,omitempty"` - Text *Narrative `json:"text,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Reason []*CodeableReference `json:"reason,omitempty"` - InstantiatesURI *string `json:"instantiatesUri,omitempty"` - BornString *string `json:"bornString,omitempty"` - Participant []FamilyMemberHistoryParticipantUnion `json:"participant,omitempty"` - BornPeriod *Period `json:"bornPeriod,omitempty"` + AgeRange *Range `json:"ageRange,omitempty"` + Patient *PatientType `json:"patient"` + Name *string `json:"name,omitempty"` + DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` + InstantiatesURI *string `json:"instantiatesUri,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` + Text *Narrative `json:"text,omitempty"` + ID *string `json:"id,omitempty"` + BornString *string `json:"bornString,omitempty"` + DeceasedAge *Age `json:"deceasedAge,omitempty"` + AgeAge *Age `json:"ageAge,omitempty"` + Date *string `json:"date,omitempty"` + Sex *CodeableConcept `json:"sex,omitempty"` + Language *string `json:"language,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Note FamilyMemberHistoryNoteUnion `json:"note"` + Reason []*CodeableReference `json:"reason,omitempty"` + Relationship *CodeableConcept `json:"relationship,omitempty"` + Condition []*FamilyMemberHistoryCondition `json:"condition,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Meta *Meta `json:"meta,omitempty"` + DeceasedString *string `json:"deceasedString,omitempty"` + Status *string `json:"status,omitempty"` + AgeString *string `json:"ageString,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Participant FamilyMemberHistoryParticipantUnion `json:"participant"` + DeceasedDate *string `json:"deceasedDate,omitempty"` + EstimatedAge *string `json:"estimatedAge,omitempty"` + DataAbsentReason *CodeableConcept `json:"dataAbsentReason,omitempty"` + Procedure []*FamilyMemberHistoryProcedure `json:"procedure,omitempty"` + BornPeriod *Period `json:"bornPeriod,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + DeceasedRange *Range `json:"deceasedRange,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + BornDate *string `json:"bornDate,omitempty"` } func (FamilyMemberHistoryType) IsResourceUnion() {} type GroupCharacteristic struct { - Period *Period `json:"period,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - ValueBoolean *string `json:"valueBoolean,omitempty"` - ValueQuantity *Quantity `json:"valueQuantity,omitempty"` ValueRange *Range `json:"valueRange,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` Extension []*Extension `json:"extension,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Period *Period `json:"period,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + ValueBoolean *string `json:"valueBoolean,omitempty"` Exclude *string `json:"exclude,omitempty"` ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` } type GroupMember struct { - Entity []GroupMemberEntityUnion `json:"entity,omitempty"` + Period *Period `json:"period,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Entity GroupMemberEntityUnion `json:"entity"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Inactive *string `json:"inactive,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` +} + +type GroupType struct { + Language *string `json:"language,omitempty"` Extension []*Extension `json:"extension,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Member GroupMemberUnion `json:"member"` ID *string `json:"id,omitempty"` - Inactive *string `json:"inactive,omitempty"` + Quantity *string `json:"quantity,omitempty"` + Name *string `json:"name,omitempty"` + Text *Narrative `json:"text,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + Description *string `json:"description,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Period *Period `json:"period,omitempty"` + Active *string `json:"active,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Membership *string `json:"membership,omitempty"` + Type *string `json:"type,omitempty"` + Characteristic []*GroupCharacteristic `json:"characteristic,omitempty"` + ManagingEntity GroupManagingEntityUnion `json:"managingEntity"` + Meta *Meta `json:"meta,omitempty"` } -type GroupType struct { - Member []GroupMemberUnion `json:"member,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Membership *string `json:"membership,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Characteristic []*GroupCharacteristic `json:"characteristic,omitempty"` - Quantity *string `json:"quantity,omitempty"` - Type *string `json:"type,omitempty"` - Active *string `json:"active,omitempty"` - Description *string `json:"description,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - ID *string `json:"id,omitempty"` - Language *string `json:"language,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Name *string `json:"name,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Text *Narrative `json:"text,omitempty"` - ManagingEntity []GroupManagingEntityUnion `json:"managingEntity,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` -} - -func (GroupType) IsGroupMemberUnion() {} +func (GroupType) IsConditionSubjectUnion() {} -func (GroupType) IsMedicationAdministrationSubjectUnion() {} +func (GroupType) IsResearchSubjectSubjectUnion() {} -func (GroupType) IsUsageContextValueReferenceUnion() {} +func (GroupType) IsResearchStudyRecruitmentUnion() {} func (GroupType) IsResearchStudyRecruitmentEligibilityUnion() {} -func (GroupType) IsTaskRestrictionRecipientUnion() {} - func (GroupType) IsSpecimenSubjectUnion() {} -func (GroupType) IsMedicationRequestSubjectUnion() {} +func (GroupType) IsGroupMemberUnion() {} func (GroupType) IsMedicationStatementSubjectUnion() {} -func (GroupType) IsGroupMemberEntityUnion() {} +func (GroupType) IsDiagnosticReportSubjectUnion() {} -func (GroupType) IsConditionSubjectUnion() {} +func (GroupType) IsMedicationAdministrationSubjectUnion() {} -func (GroupType) IsObservationSpecimenUnion() {} +func (GroupType) IsMedicationRequestSubjectUnion() {} -func (GroupType) IsObservationSubjectUnion() {} +func (GroupType) IsTaskInputValueUsageContextUnion() {} -func (GroupType) IsProcedureFocusUnion() {} +func (GroupType) IsTaskOutputValueUsageContextUnion() {} -func (GroupType) IsProcedureSubjectUnion() {} +func (GroupType) IsImagingStudySubjectUnion() {} -func (GroupType) IsResearchSubjectSubjectUnion() {} +func (GroupType) IsTaskRestrictionUnion() {} -func (GroupType) IsTaskInputValueUsageContextUnion() {} +func (GroupType) IsExtensionValueUsageContextUnion() {} -func (GroupType) IsImagingStudySubjectUnion() {} +func (GroupType) IsGroupMemberEntityUnion() {} -func (GroupType) IsResearchStudyRecruitmentUnion() {} +func (GroupType) IsUsageContextValueReferenceUnion() {} -func (GroupType) IsExtensionValueUsageContextUnion() {} +func (GroupType) IsProcedureFocusUnion() {} -func (GroupType) IsDiagnosticReportSubjectUnion() {} +func (GroupType) IsProcedureSubjectUnion() {} -func (GroupType) IsTaskOutputValueUsageContextUnion() {} +func (GroupType) IsTaskRestrictionRecipientUnion() {} -func (GroupType) IsTaskRestrictionUnion() {} +func (GroupType) IsObservationSpecimenUnion() {} + +func (GroupType) IsObservationSubjectUnion() {} func (GroupType) IsResourceUnion() {} type HumanName struct { - Suffix *string `json:"suffix,omitempty"` + Given *string `json:"given,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` Use *string `json:"use,omitempty"` Family *string `json:"family,omitempty"` - Given *string `json:"given,omitempty"` + Suffix *string `json:"suffix,omitempty"` ID *string `json:"id,omitempty"` + Period *Period `json:"period,omitempty"` Prefix *string `json:"prefix,omitempty"` Extension []*Extension `json:"extension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Period *Period `json:"period,omitempty"` Text *string `json:"text,omitempty"` } type Identifier struct { - Type *CodeableConcept `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Period *Period `json:"period,omitempty"` - System *string `json:"system,omitempty"` - Value *string `json:"value,omitempty"` - Assigner []*OrganizationType `json:"assigner,omitempty"` - ID *string `json:"id,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Use *string `json:"use,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Use *string `json:"use,omitempty"` + Assigner *OrganizationType `json:"assigner"` + Period *Period `json:"period,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + Value *string `json:"value,omitempty"` + ID *string `json:"id,omitempty"` + System *string `json:"system,omitempty"` } type ImagingStudySeries struct { - BodySite *CodeableReference `json:"bodySite,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ID *string `json:"id,omitempty"` - Started *string `json:"started,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - NumberOfInstances *string `json:"numberOfInstances,omitempty"` - UID *string `json:"uid,omitempty"` - Laterality *CodeableConcept `json:"laterality,omitempty"` - Modality *CodeableConcept `json:"modality,omitempty"` - Performer []ImagingStudySeriesPerformerUnion `json:"performer,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Description *string `json:"description,omitempty"` - Number *string `json:"number,omitempty"` - Instance []*ImagingStudySeriesInstance `json:"instance,omitempty"` - Specimen []*SpecimenType `json:"specimen,omitempty"` + Laterality *CodeableConcept `json:"laterality,omitempty"` + UID *string `json:"uid,omitempty"` + Description *string `json:"description,omitempty"` + ID *string `json:"id,omitempty"` + Instance []*ImagingStudySeriesInstance `json:"instance,omitempty"` + Modality *CodeableConcept `json:"modality,omitempty"` + Performer ImagingStudySeriesPerformerUnion `json:"performer"` + ResourceType *string `json:"resourceType,omitempty"` + Started *string `json:"started,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + NumberOfInstances *string `json:"numberOfInstances,omitempty"` + BodySite *CodeableReference `json:"bodySite,omitempty"` + Number *string `json:"number,omitempty"` + Specimen *SpecimenType `json:"specimen"` } type ImagingStudySeriesInstance struct { - SopClass *Coding `json:"sopClass,omitempty"` Title *string `json:"title,omitempty"` UID *string `json:"uid,omitempty"` Extension []*Extension `json:"extension,omitempty"` @@ -1318,261 +1317,262 @@ type ImagingStudySeriesInstance struct { ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Number *string `json:"number,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + SopClass *Coding `json:"sopClass,omitempty"` } type ImagingStudySeriesPerformer struct { - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Actor []ImagingStudySeriesPerformerActorUnion `json:"actor,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Function *CodeableConcept `json:"function,omitempty"` - ID *string `json:"id,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Actor ImagingStudySeriesPerformerActorUnion `json:"actor"` + Extension []*Extension `json:"extension,omitempty"` + Function *CodeableConcept `json:"function,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type ImagingStudyType struct { - PartOf []*ProcedureType `json:"partOf,omitempty"` - Text *Narrative `json:"text,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Language *string `json:"language,omitempty"` - BasedOn []ImagingStudyBasedOnUnion `json:"basedOn,omitempty"` - NumberOfInstances *string `json:"numberOfInstances,omitempty"` - Procedure []*CodeableReference `json:"procedure,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Referrer []ImagingStudyReferrerUnion `json:"referrer,omitempty"` - Modality []*CodeableConcept `json:"modality,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Note []ImagingStudyNoteUnion `json:"note,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Series []*ImagingStudySeries `json:"series,omitempty"` - Reason []*CodeableReference `json:"reason,omitempty"` - Started *string `json:"started,omitempty"` - Status *string `json:"status,omitempty"` - Subject []ImagingStudySubjectUnion `json:"subject,omitempty"` - Description *string `json:"description,omitempty"` - ID *string `json:"id,omitempty"` - NumberOfSeries *string `json:"numberOfSeries,omitempty"` + Description *string `json:"description,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + ID *string `json:"id,omitempty"` + Subject ImagingStudySubjectUnion `json:"subject"` + Status *string `json:"status,omitempty"` + Text *Narrative `json:"text,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Series []*ImagingStudySeries `json:"series,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Reason []*CodeableReference `json:"reason,omitempty"` + Modality []*CodeableConcept `json:"modality,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + PartOf *ProcedureType `json:"partOf"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Referrer ImagingStudyReferrerUnion `json:"referrer"` + Procedure []*CodeableReference `json:"procedure,omitempty"` + Started *string `json:"started,omitempty"` + NumberOfSeries *string `json:"numberOfSeries,omitempty"` + Note ImagingStudyNoteUnion `json:"note"` + BasedOn ImagingStudyBasedOnUnion `json:"basedOn"` + Language *string `json:"language,omitempty"` + NumberOfInstances *string `json:"numberOfInstances,omitempty"` } +func (ImagingStudyType) IsDiagnosticReportStudyUnion() {} + func (ImagingStudyType) IsObservationDerivedFromUnion() {} func (ImagingStudyType) IsObservationPartOfUnion() {} -func (ImagingStudyType) IsDiagnosticReportStudyUnion() {} - func (ImagingStudyType) IsResourceUnion() {} type Immunization struct { - StatusReason *CodeableConcept `json:"statusReason,omitempty"` - AdministeredProduct *CodeableReference `json:"administeredProduct,omitempty"` - DoseQuantity *Quantity `json:"doseQuantity,omitempty"` - LotNumber *string `json:"lotNumber,omitempty"` - Status *string `json:"status,omitempty"` - Manufacturer *CodeableReference `json:"manufacturer,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ExpirationDate *string `json:"expirationDate,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Note []*Annotation `json:"note,omitempty"` Reaction []*ImmunizationReaction `json:"reaction,omitempty"` - ProtocolApplied []*ImmunizationProtocolApplied `json:"protocolApplied,omitempty"` - Site *CodeableConcept `json:"site,omitempty"` + Note []*Annotation `json:"note,omitempty"` + ProgramEligibility []*ImmunizationProgramEligibility `json:"programEligibility,omitempty"` OccurrenceDateTime *string `json:"occurrenceDateTime,omitempty"` + VaccineCode *CodeableConcept `json:"vaccineCode,omitempty"` + Language *string `json:"language,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + StatusReason *CodeableConcept `json:"statusReason,omitempty"` + Text *Narrative `json:"text,omitempty"` Reason []*CodeableReference `json:"reason,omitempty"` - FundingSource *CodeableConcept `json:"fundingSource,omitempty"` + Performer []*ImmunizationPerformer `json:"performer,omitempty"` Meta *Meta `json:"meta,omitempty"` + ProtocolApplied []*ImmunizationProtocolApplied `json:"protocolApplied,omitempty"` + AdministeredProduct *CodeableReference `json:"administeredProduct,omitempty"` + FundingSource *CodeableConcept `json:"fundingSource,omitempty"` SubpotentReason []*CodeableConcept `json:"subpotentReason,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - VaccineCode *CodeableConcept `json:"vaccineCode,omitempty"` - Text *Narrative `json:"text,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - InformationSource *CodeableReference `json:"informationSource,omitempty"` + Manufacturer *CodeableReference `json:"manufacturer,omitempty"` OccurrenceString *string `json:"occurrenceString,omitempty"` - Performer []*ImmunizationPerformer `json:"performer,omitempty"` - ProgramEligibility []*ImmunizationProgramEligibility `json:"programEligibility,omitempty"` - Route *CodeableConcept `json:"route,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - ID *string `json:"id,omitempty"` + DoseQuantity *Quantity `json:"doseQuantity,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` PrimarySource *string `json:"primarySource,omitempty"` + InformationSource *CodeableReference `json:"informationSource,omitempty"` + ID *string `json:"id,omitempty"` IsSubpotent *string `json:"isSubpotent,omitempty"` - Language *string `json:"language,omitempty"` + Site *CodeableConcept `json:"site,omitempty"` + LotNumber *string `json:"lotNumber,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + ExpirationDate *string `json:"expirationDate,omitempty"` + Route *CodeableConcept `json:"route,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Status *string `json:"status,omitempty"` } type ImmunizationPerformer struct { + ResourceType *string `json:"resourceType,omitempty"` + Extension []*Extension `json:"extension,omitempty"` Function *CodeableConcept `json:"function,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Extension []*Extension `json:"extension,omitempty"` } type ImmunizationProgramEligibility struct { - ProgramStatus *CodeableConcept `json:"programStatus,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Program *CodeableConcept `json:"program,omitempty"` + ProgramStatus *CodeableConcept `json:"programStatus,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` } type ImmunizationProtocolApplied struct { + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Series *string `json:"series,omitempty"` SeriesDoses *string `json:"seriesDoses,omitempty"` TargetDisease []*CodeableConcept `json:"targetDisease,omitempty"` DoseNumber *string `json:"doseNumber,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Series *string `json:"series,omitempty"` } type ImmunizationReaction struct { + ID *string `json:"id,omitempty"` Manifestation *CodeableReference `json:"manifestation,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Reported *string `json:"reported,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Date *string `json:"date,omitempty"` Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` } type Location struct { - Meta *Meta `json:"meta,omitempty"` Name *string `json:"name,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Form *CodeableConcept `json:"form,omitempty"` Language *string `json:"language,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + Text *Narrative `json:"text,omitempty"` ID *string `json:"id,omitempty"` - Characteristic []*CodeableConcept `json:"characteristic,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Address *Address `json:"address,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Mode *string `json:"mode,omitempty"` OperationalStatus *Coding `json:"operationalStatus,omitempty"` - Position *LocationPosition `json:"position,omitempty"` - VirtualService []*VirtualServiceDetail `json:"virtualService,omitempty"` - Text *Narrative `json:"text,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Type []*CodeableConcept `json:"type,omitempty"` + Characteristic []*CodeableConcept `json:"characteristic,omitempty"` + Form *CodeableConcept `json:"form,omitempty"` Contact []*ExtendedContactDetail `json:"contact,omitempty"` - Status *string `json:"status,omitempty"` - HoursOfOperation []*Availability `json:"hoursOfOperation,omitempty"` Identifier []*Identifier `json:"identifier,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Position *LocationPosition `json:"position,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Mode *string `json:"mode,omitempty"` Alias *string `json:"alias,omitempty"` - Type []*CodeableConcept `json:"type,omitempty"` + VirtualService []*VirtualServiceDetail `json:"virtualService,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Status *string `json:"status,omitempty"` Description *string `json:"description,omitempty"` + HoursOfOperation []*Availability `json:"hoursOfOperation,omitempty"` + Address *Address `json:"address,omitempty"` } type LocationPosition struct { - Altitude *string `json:"altitude,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` Latitude *string `json:"latitude,omitempty"` Longitude *string `json:"longitude,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Altitude *string `json:"altitude,omitempty"` } type MedicationAdministrationDosage struct { - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - RateQuantity *Quantity `json:"rateQuantity,omitempty"` + Route *CodeableConcept `json:"route,omitempty"` Text *string `json:"text,omitempty"` Extension []*Extension `json:"extension,omitempty"` - Dose *Quantity `json:"dose,omitempty"` - Site *CodeableConcept `json:"site,omitempty"` Method *CodeableConcept `json:"method,omitempty"` + RateQuantity *Quantity `json:"rateQuantity,omitempty"` RateRatio *Ratio `json:"rateRatio,omitempty"` - Route *CodeableConcept `json:"route,omitempty"` + ID *string `json:"id,omitempty"` + Dose *Quantity `json:"dose,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Site *CodeableConcept `json:"site,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type MedicationAdministrationPerformer struct { + Function *CodeableConcept `json:"function,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Actor *CodeableReference `json:"actor,omitempty"` Extension []*Extension `json:"extension,omitempty"` - Function *CodeableConcept `json:"function,omitempty"` } type MedicationAdministrationType struct { - SubPotentReason []*CodeableConcept `json:"subPotentReason,omitempty"` - Device []*CodeableReference `json:"device,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` - OccurenceDateTime *string `json:"occurenceDateTime,omitempty"` - Medication *CodeableReference `json:"medication,omitempty"` - OccurencePeriod *Period `json:"occurencePeriod,omitempty"` - IsSubPotent *string `json:"isSubPotent,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Meta *Meta `json:"meta,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Dosage *MedicationAdministrationDosage `json:"dosage,omitempty"` - Performer []*MedicationAdministrationPerformer `json:"performer,omitempty"` - Status *string `json:"status,omitempty"` - Recorded *string `json:"recorded,omitempty"` - ID *string `json:"id,omitempty"` - OccurenceTiming *Timing `json:"occurenceTiming,omitempty"` - Subject []MedicationAdministrationSubjectUnion `json:"subject,omitempty"` - Language *string `json:"language,omitempty"` - Request []*MedicationRequestType `json:"request,omitempty"` - Note []MedicationAdministrationNoteUnion `json:"note,omitempty"` - Text *Narrative `json:"text,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - StatusReason []*CodeableConcept `json:"statusReason,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - PartOf []MedicationAdministrationPartOfUnion `json:"partOf,omitempty"` - Reason []*CodeableReference `json:"reason,omitempty"` - SupportingInformation []ResourceUnion `json:"supportingInformation,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` + Note MedicationAdministrationNoteUnion `json:"note"` + Dosage *MedicationAdministrationDosage `json:"dosage,omitempty"` + Language *string `json:"language,omitempty"` + Request *MedicationRequestType `json:"request"` + Reason []*CodeableReference `json:"reason,omitempty"` + OccurencePeriod *Period `json:"occurencePeriod,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Text *Narrative `json:"text,omitempty"` + Medication *CodeableReference `json:"medication,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + Meta *Meta `json:"meta,omitempty"` + IsSubPotent *string `json:"isSubPotent,omitempty"` + Recorded *string `json:"recorded,omitempty"` + Performer []*MedicationAdministrationPerformer `json:"performer,omitempty"` + StatusReason []*CodeableConcept `json:"statusReason,omitempty"` + Subject MedicationAdministrationSubjectUnion `json:"subject"` + Contained []ResourceUnion `json:"contained,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PartOf MedicationAdministrationPartOfUnion `json:"partOf"` + OccurenceTiming *Timing `json:"occurenceTiming,omitempty"` + SubPotentReason []*CodeableConcept `json:"subPotentReason,omitempty"` + SupportingInformation ResourceUnion `json:"supportingInformation"` + Status *string `json:"status,omitempty"` + ID *string `json:"id,omitempty"` + OccurenceDateTime *string `json:"occurenceDateTime,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Device []*CodeableReference `json:"device,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` } func (MedicationAdministrationType) IsMedicationAdministrationPartOfUnion() {} -func (MedicationAdministrationType) IsObservationPartOfUnion() {} - func (MedicationAdministrationType) IsProcedurePartOfUnion() {} +func (MedicationAdministrationType) IsObservationPartOfUnion() {} + func (MedicationAdministrationType) IsResourceUnion() {} type MedicationBatch struct { + ID *string `json:"id,omitempty"` + LotNumber *string `json:"lotNumber,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` ExpirationDate *string `json:"expirationDate,omitempty"` Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - LotNumber *string `json:"lotNumber,omitempty"` } type MedicationIngredient struct { + Item *CodeableReference `json:"item,omitempty"` + StrengthQuantity *Quantity `json:"strengthQuantity,omitempty"` + StrengthRatio *Ratio `json:"strengthRatio,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` StrengthCodeableConcept *CodeableConcept `json:"strengthCodeableConcept,omitempty"` ID *string `json:"id,omitempty"` + IsActive *string `json:"isActive,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` Extension []*Extension `json:"extension,omitempty"` - IsActive *string `json:"isActive,omitempty"` - Item *CodeableReference `json:"item,omitempty"` - StrengthQuantity *Quantity `json:"strengthQuantity,omitempty"` - StrengthRatio *Ratio `json:"strengthRatio,omitempty"` } type MedicationRequestDispenseRequest struct { - ExpectedSupplyDuration *Duration `json:"expectedSupplyDuration,omitempty"` - InitialFill *MedicationRequestDispenseRequestInitialFill `json:"initialFill,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ValidityPeriod *Period `json:"validityPeriod,omitempty"` - DoseAdministrationAid *CodeableConcept `json:"doseAdministrationAid,omitempty"` - ID *string `json:"id,omitempty"` - DispenseInterval *Duration `json:"dispenseInterval,omitempty"` - Dispenser []*OrganizationType `json:"dispenser,omitempty"` - DispenserInstruction []MedicationRequestDispenseRequestDispenserInstructionUnion `json:"dispenserInstruction,omitempty"` - Quantity *Quantity `json:"quantity,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - NumberOfRepeatsAllowed *string `json:"numberOfRepeatsAllowed,omitempty"` + DispenserInstruction MedicationRequestDispenseRequestDispenserInstructionUnion `json:"dispenserInstruction"` + ID *string `json:"id,omitempty"` + DispenseInterval *Duration `json:"dispenseInterval,omitempty"` + DoseAdministrationAid *CodeableConcept `json:"doseAdministrationAid,omitempty"` + InitialFill *MedicationRequestDispenseRequestInitialFill `json:"initialFill,omitempty"` + Quantity *Quantity `json:"quantity,omitempty"` + ValidityPeriod *Period `json:"validityPeriod,omitempty"` + ExpectedSupplyDuration *Duration `json:"expectedSupplyDuration,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + NumberOfRepeatsAllowed *string `json:"numberOfRepeatsAllowed,omitempty"` + Dispenser *OrganizationType `json:"dispenser"` + Extension []*Extension `json:"extension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` } type MedicationRequestDispenseRequestInitialFill struct { @@ -1585,104 +1585,104 @@ type MedicationRequestDispenseRequestInitialFill struct { } type MedicationRequestSubstitution struct { + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Reason *CodeableConcept `json:"reason,omitempty"` ResourceType *string `json:"resourceType,omitempty"` AllowedBoolean *string `json:"allowedBoolean,omitempty"` AllowedCodeableConcept *CodeableConcept `json:"allowedCodeableConcept,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type MedicationRequestType struct { - Medication *CodeableReference `json:"medication,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Reason []*CodeableReference `json:"reason,omitempty"` - StatusChanged *string `json:"statusChanged,omitempty"` - CourseOfTherapyType *CodeableConcept `json:"courseOfTherapyType,omitempty"` - EffectiveDosePeriod *Period `json:"effectiveDosePeriod,omitempty"` - Device []*CodeableReference `json:"device,omitempty"` - SupportingInformation []ResourceUnion `json:"supportingInformation,omitempty"` - Performer []MedicationRequestPerformerUnion `json:"performer,omitempty"` - AuthoredOn *string `json:"authoredOn,omitempty"` - Note []MedicationRequestNoteUnion `json:"note,omitempty"` - Text *Narrative `json:"text,omitempty"` - ID *string `json:"id,omitempty"` - Language *string `json:"language,omitempty"` - Status *string `json:"status,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Requester []MedicationRequestRequesterUnion `json:"requester,omitempty"` - GroupIdentifier *Identifier `json:"groupIdentifier,omitempty"` - StatusReason *CodeableConcept `json:"statusReason,omitempty"` - Intent *string `json:"intent,omitempty"` - DosageInstruction []*Dosage `json:"dosageInstruction,omitempty"` - InformationSource []MedicationRequestInformationSourceUnion `json:"informationSource,omitempty"` - PerformerType *CodeableConcept `json:"performerType,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` - Recorder []MedicationRequestRecorderUnion `json:"recorder,omitempty"` - PriorPrescription []*MedicationRequestType `json:"priorPrescription,omitempty"` - Meta *Meta `json:"meta,omitempty"` - BasedOn []MedicationRequestBasedOnUnion `json:"basedOn,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - RenderedDosageInstruction *string `json:"renderedDosageInstruction,omitempty"` - Reported *string `json:"reported,omitempty"` - Substitution *MedicationRequestSubstitution `json:"substitution,omitempty"` - DoNotPerform *string `json:"doNotPerform,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Subject []MedicationRequestSubjectUnion `json:"subject,omitempty"` - DispenseRequest *MedicationRequestDispenseRequest `json:"dispenseRequest,omitempty"` - Priority *string `json:"priority,omitempty"` + Subject MedicationRequestSubjectUnion `json:"subject"` + DosageInstruction []*Dosage `json:"dosageInstruction,omitempty"` + Note MedicationRequestNoteUnion `json:"note"` + Category []*CodeableConcept `json:"category,omitempty"` + Medication *CodeableReference `json:"medication,omitempty"` + Priority *string `json:"priority,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + CourseOfTherapyType *CodeableConcept `json:"courseOfTherapyType,omitempty"` + DispenseRequest *MedicationRequestDispenseRequest `json:"dispenseRequest,omitempty"` + Text *Narrative `json:"text,omitempty"` + EffectiveDosePeriod *Period `json:"effectiveDosePeriod,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PerformerType *CodeableConcept `json:"performerType,omitempty"` + GroupIdentifier *Identifier `json:"groupIdentifier,omitempty"` + Substitution *MedicationRequestSubstitution `json:"substitution,omitempty"` + Status *string `json:"status,omitempty"` + SupportingInformation ResourceUnion `json:"supportingInformation"` + InformationSource MedicationRequestInformationSourceUnion `json:"informationSource"` + DoNotPerform *string `json:"doNotPerform,omitempty"` + Reported *string `json:"reported,omitempty"` + Performer MedicationRequestPerformerUnion `json:"performer"` + BasedOn MedicationRequestBasedOnUnion `json:"basedOn"` + Identifier []*Identifier `json:"identifier,omitempty"` + StatusReason *CodeableConcept `json:"statusReason,omitempty"` + RenderedDosageInstruction *string `json:"renderedDosageInstruction,omitempty"` + Recorder MedicationRequestRecorderUnion `json:"recorder"` + AuthoredOn *string `json:"authoredOn,omitempty"` + Intent *string `json:"intent,omitempty"` + Language *string `json:"language,omitempty"` + Reason []*CodeableReference `json:"reason,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Requester MedicationRequestRequesterUnion `json:"requester"` + PriorPrescription *MedicationRequestType `json:"priorPrescription"` + Device []*CodeableReference `json:"device,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + StatusChanged *string `json:"statusChanged,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + ID *string `json:"id,omitempty"` } -func (MedicationRequestType) IsDocumentReferenceBasedOnUnion() {} +func (MedicationRequestType) IsDiagnosticReportBasedOnUnion() {} func (MedicationRequestType) IsMedicationRequestBasedOnUnion() {} -func (MedicationRequestType) IsObservationBasedOnUnion() {} +func (MedicationRequestType) IsDocumentReferenceBasedOnUnion() {} -func (MedicationRequestType) IsDiagnosticReportBasedOnUnion() {} +func (MedicationRequestType) IsObservationBasedOnUnion() {} func (MedicationRequestType) IsResourceUnion() {} type MedicationStatementAdherence struct { + Code *CodeableConcept `json:"code,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Reason *CodeableConcept `json:"reason,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` } type MedicationStatementType struct { - RelatedClinicalInformation []MedicationStatementRelatedClinicalInformationUnion `json:"relatedClinicalInformation,omitempty"` - Meta *Meta `json:"meta,omitempty"` - EffectivePeriod *Period `json:"effectivePeriod,omitempty"` - Dosage []*Dosage `json:"dosage,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Note []MedicationStatementNoteUnion `json:"note,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Medication *CodeableReference `json:"medication,omitempty"` - RenderedDosageInstruction *string `json:"renderedDosageInstruction,omitempty"` - DerivedFrom []ResourceUnion `json:"derivedFrom,omitempty"` - Subject []MedicationStatementSubjectUnion `json:"subject,omitempty"` - Adherence *MedicationStatementAdherence `json:"adherence,omitempty"` - Reason []*CodeableReference `json:"reason,omitempty"` - Text *Narrative `json:"text,omitempty"` - Language *string `json:"language,omitempty"` - PartOf []MedicationStatementPartOfUnion `json:"partOf,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - DateAsserted *string `json:"dateAsserted,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - EffectiveTiming *Timing `json:"effectiveTiming,omitempty"` - InformationSource []MedicationStatementInformationSourceUnion `json:"informationSource,omitempty"` - Status *string `json:"status,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + Text *Narrative `json:"text,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Reason []*CodeableReference `json:"reason,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Medication *CodeableReference `json:"medication,omitempty"` + Note MedicationStatementNoteUnion `json:"note"` + Category []*CodeableConcept `json:"category,omitempty"` + ID *string `json:"id,omitempty"` + InformationSource MedicationStatementInformationSourceUnion `json:"informationSource"` + RelatedClinicalInformation MedicationStatementRelatedClinicalInformationUnion `json:"relatedClinicalInformation"` + EffectiveTiming *Timing `json:"effectiveTiming,omitempty"` + EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` + Subject MedicationStatementSubjectUnion `json:"subject"` + EffectivePeriod *Period `json:"effectivePeriod,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + DerivedFrom ResourceUnion `json:"derivedFrom"` + Adherence *MedicationStatementAdherence `json:"adherence,omitempty"` + Language *string `json:"language,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + RenderedDosageInstruction *string `json:"renderedDosageInstruction,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Dosage []*Dosage `json:"dosage,omitempty"` + Status *string `json:"status,omitempty"` + DateAsserted *string `json:"dateAsserted,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PartOf MedicationStatementPartOfUnion `json:"partOf"` } func (MedicationStatementType) IsMedicationStatementPartOfUnion() {} @@ -1692,43 +1692,43 @@ func (MedicationStatementType) IsObservationPartOfUnion() {} func (MedicationStatementType) IsResourceUnion() {} type MedicationType struct { - DoseForm *CodeableConcept `json:"doseForm,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Text *Narrative `json:"text,omitempty"` Meta *Meta `json:"meta,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Status *string `json:"status,omitempty"` - Language *string `json:"language,omitempty"` + Text *Narrative `json:"text,omitempty"` + MarketingAuthorizationHolder *OrganizationType `json:"marketingAuthorizationHolder"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Batch *MedicationBatch `json:"batch,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` TotalVolume *Quantity `json:"totalVolume,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + Language *string `json:"language,omitempty"` + DoseForm *CodeableConcept `json:"doseForm,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` Ingredient []*MedicationIngredient `json:"ingredient,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` ID *string `json:"id,omitempty"` - MarketingAuthorizationHolder []*OrganizationType `json:"marketingAuthorizationHolder,omitempty"` + Status *string `json:"status,omitempty"` + Batch *MedicationBatch `json:"batch,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` } -func (MedicationType) IsObservationSubjectUnion() {} - func (MedicationType) IsResearchSubjectSubjectUnion() {} func (MedicationType) IsDiagnosticReportSubjectUnion() {} +func (MedicationType) IsObservationSubjectUnion() {} + func (MedicationType) IsResourceUnion() {} type Meta struct { - Profile *string `json:"profile,omitempty"` - Security []*Coding `json:"security,omitempty"` - Source *string `json:"source,omitempty"` - Tag []*Coding `json:"tag,omitempty"` - VersionID *string `json:"versionId,omitempty"` LastUpdated *string `json:"lastUpdated,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + Security []*Coding `json:"security,omitempty"` Extension []*Extension `json:"extension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + VersionID *string `json:"versionId,omitempty"` + Tag []*Coding `json:"tag,omitempty"` ID *string `json:"id,omitempty"` + Profile *string `json:"profile,omitempty"` + Source *string `json:"source,omitempty"` } type Money struct { @@ -1740,409 +1740,413 @@ type Money struct { } type Narrative struct { - Div *string `json:"div,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Status *string `json:"status,omitempty"` + Div *string `json:"div,omitempty"` } type ObservationComponent struct { - ID *string `json:"id,omitempty"` - ValuePeriod *Period `json:"valuePeriod,omitempty"` - ValueQuantity *Quantity `json:"valueQuantity,omitempty"` - ValueRange *Range `json:"valueRange,omitempty"` + DataAbsentReason *CodeableConcept `json:"dataAbsentReason,omitempty"` + Interpretation []*CodeableConcept `json:"interpretation,omitempty"` ValueAttachment *Attachment `json:"valueAttachment,omitempty"` Extension []*Extension `json:"extension,omitempty"` - ValueSampledData *SampledData `json:"valueSampledData,omitempty"` - ValueString *string `json:"valueString,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - DataAbsentReason *CodeableConcept `json:"dataAbsentReason,omitempty"` + ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + ValueTime *string `json:"valueTime,omitempty"` ValueBoolean *string `json:"valueBoolean,omitempty"` - ValueDateTime *string `json:"valueDateTime,omitempty"` + ValuePeriod *Period `json:"valuePeriod,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ValueInteger *string `json:"valueInteger,omitempty"` - ValueTime *string `json:"valueTime,omitempty"` - Interpretation []*CodeableConcept `json:"interpretation,omitempty"` - ReferenceRange []*ObservationReferenceRange `json:"referenceRange,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + ReferenceRange []*ObservationReferenceRange `json:"referenceRange,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` ValueRatio *Ratio `json:"valueRatio,omitempty"` + ValueSampledData *SampledData `json:"valueSampledData,omitempty"` + ValueDateTime *string `json:"valueDateTime,omitempty"` + ValueRange *Range `json:"valueRange,omitempty"` + ValueString *string `json:"valueString,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + ID *string `json:"id,omitempty"` } type ObservationReferenceRange struct { + ResourceType *string `json:"resourceType,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` Extension []*Extension `json:"extension,omitempty"` + Low *Quantity `json:"low,omitempty"` High *Quantity `json:"high,omitempty"` - ID *string `json:"id,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` + NormalValue *CodeableConcept `json:"normalValue,omitempty"` AppliesTo []*CodeableConcept `json:"appliesTo,omitempty"` - Age *Range `json:"age,omitempty"` + ID *string `json:"id,omitempty"` Text *string `json:"text,omitempty"` - Low *Quantity `json:"low,omitempty"` - NormalValue *CodeableConcept `json:"normalValue,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + Age *Range `json:"age,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type ObservationTriggeredBy struct { - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Observation []*ObservationType `json:"observation,omitempty"` - Reason *string `json:"reason,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Type *string `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + Type *string `json:"type,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Observation *ObservationType `json:"observation"` + Reason *string `json:"reason,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` } type ObservationType struct { - EffectivePeriod *Period `json:"effectivePeriod,omitempty"` - DerivedFrom []ObservationDerivedFromUnion `json:"derivedFrom,omitempty"` - EffectiveInstant *string `json:"effectiveInstant,omitempty"` - ValuePeriod *Period `json:"valuePeriod,omitempty"` - InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` - ReferenceRange []*ObservationReferenceRange `json:"referenceRange,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` - ValueBoolean *string `json:"valueBoolean,omitempty"` - Performer []ObservationPerformerUnion `json:"performer,omitempty"` - BodySite *CodeableConcept `json:"bodySite,omitempty"` - Text *Narrative `json:"text,omitempty"` - ValueQuantity *Quantity `json:"valueQuantity,omitempty"` - ValueString *string `json:"valueString,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - ValueAttachment *Attachment `json:"valueAttachment,omitempty"` - Issued *string `json:"issued,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Method *CodeableConcept `json:"method,omitempty"` - BodyStructure []*BodyStructureType `json:"bodyStructure,omitempty"` - EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` - ValueRatio *Ratio `json:"valueRatio,omitempty"` - Interpretation []*CodeableConcept `json:"interpretation,omitempty"` - ValueDateTime *string `json:"valueDateTime,omitempty"` - ValueTime *string `json:"valueTime,omitempty"` - DataAbsentReason *CodeableConcept `json:"dataAbsentReason,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Note []ObservationNoteUnion `json:"note,omitempty"` - BasedOn []ObservationBasedOnUnion `json:"basedOn,omitempty"` - Focus ResourceUnion `json:"focus,omitempty"` - ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` - HasMember []ObservationHasMemberUnion `json:"hasMember,omitempty"` - ValueInteger *string `json:"valueInteger,omitempty"` - Language *string `json:"language,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - ValueSampledData *SampledData `json:"valueSampledData,omitempty"` - Subject ObservationSubjectUnion `json:"subject,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - TriggeredBy []*ObservationTriggeredBy `json:"triggeredBy,omitempty"` - Specimen []ObservationSpecimenUnion `json:"specimen,omitempty"` - PartOf []ObservationPartOfUnion `json:"partOf,omitempty"` - Component []*ObservationComponent `json:"component,omitempty"` - EffectiveTiming *Timing `json:"effectiveTiming,omitempty"` - ValueRange *Range `json:"valueRange,omitempty"` - Status *string `json:"status,omitempty"` + BodyStructure *BodyStructureType `json:"bodyStructure"` + DataAbsentReason *CodeableConcept `json:"dataAbsentReason,omitempty"` + EffectiveInstant *string `json:"effectiveInstant,omitempty"` + EffectivePeriod *Period `json:"effectivePeriod,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Issued *string `json:"issued,omitempty"` + Method *CodeableConcept `json:"method,omitempty"` + ValueTime *string `json:"valueTime,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + ValueInteger *string `json:"valueInteger,omitempty"` + ReferenceRange []*ObservationReferenceRange `json:"referenceRange,omitempty"` + Note ObservationNoteUnion `json:"note"` + Text *Narrative `json:"text,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ValueDateTime *string `json:"valueDateTime,omitempty"` + ValueString *string `json:"valueString,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` + HasMember ObservationHasMemberUnion `json:"hasMember"` + InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` + Focus ResourceUnion `json:"focus"` + Performer ObservationPerformerUnion `json:"performer"` + ValueSampledData *SampledData `json:"valueSampledData,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Language *string `json:"language,omitempty"` + ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + PartOf ObservationPartOfUnion `json:"partOf"` + Status *string `json:"status,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + TriggeredBy []*ObservationTriggeredBy `json:"triggeredBy,omitempty"` + Subject ObservationSubjectUnion `json:"subject"` + DerivedFrom ObservationDerivedFromUnion `json:"derivedFrom"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + BodySite *CodeableConcept `json:"bodySite,omitempty"` + ValueRatio *Ratio `json:"valueRatio,omitempty"` + BasedOn ObservationBasedOnUnion `json:"basedOn"` + Component []*ObservationComponent `json:"component,omitempty"` + ValueAttachment *Attachment `json:"valueAttachment,omitempty"` + ValueRange *Range `json:"valueRange,omitempty"` + ValuePeriod *Period `json:"valuePeriod,omitempty"` + Specimen ObservationSpecimenUnion `json:"specimen"` + EffectiveTiming *Timing `json:"effectiveTiming,omitempty"` + ID *string `json:"id,omitempty"` + Interpretation []*CodeableConcept `json:"interpretation,omitempty"` + ValueBoolean *string `json:"valueBoolean,omitempty"` + Extension []*Extension `json:"extension,omitempty"` } -func (ObservationType) IsMedicationStatementRelatedClinicalInformationUnion() {} - func (ObservationType) IsConditionStageUnion() {} -func (ObservationType) IsObservationDerivedFromUnion() {} - -func (ObservationType) IsObservationHasMemberUnion() {} - -func (ObservationType) IsProcedurePartOfUnion() {} - func (ObservationType) IsConditionStageAssessmentUnion() {} +func (ObservationType) IsMedicationStatementRelatedClinicalInformationUnion() {} + func (ObservationType) IsDiagnosticReportSupportingInfoUnion() {} func (ObservationType) IsDiagnosticReportSupportingInfoReferenceUnion() {} +func (ObservationType) IsProcedurePartOfUnion() {} + +func (ObservationType) IsObservationDerivedFromUnion() {} + +func (ObservationType) IsObservationHasMemberUnion() {} + func (ObservationType) IsResourceUnion() {} type OrganizationQualification struct { - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Issuer []*OrganizationType `json:"issuer,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Period *Period `json:"period,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Issuer *OrganizationType `json:"issuer"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Period *Period `json:"period,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` } type OrganizationType struct { - Name *string `json:"name,omitempty"` - Contact []*ExtendedContactDetail `json:"contact,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Type []*CodeableConcept `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Text *Narrative `json:"text,omitempty"` - Language *string `json:"language,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - PartOf []*OrganizationType `json:"partOf,omitempty"` - Alias *string `json:"alias,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` Contained []ResourceUnion `json:"contained,omitempty"` + Active *string `json:"active,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + PartOf *OrganizationType `json:"partOf"` + ResourceType *string `json:"resourceType,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Description *string `json:"description,omitempty"` Meta *Meta `json:"meta,omitempty"` + Name *string `json:"name,omitempty"` + Type []*CodeableConcept `json:"type,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` ID *string `json:"id,omitempty"` Qualification []*OrganizationQualification `json:"qualification,omitempty"` - Description *string `json:"description,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Active *string `json:"active,omitempty"` + Alias *string `json:"alias,omitempty"` + Contact []*ExtendedContactDetail `json:"contact,omitempty"` + Text *Narrative `json:"text,omitempty"` + Language *string `json:"language,omitempty"` } -func (OrganizationType) IsGroupManagingEntityUnion() {} - -func (OrganizationType) IsGroupMemberUnion() {} +func (OrganizationType) IsConditionNoteUnion() {} -func (OrganizationType) IsProcedurePerformerActorUnion() {} +func (OrganizationType) IsConditionParticipantUnion() {} -func (OrganizationType) IsSubstanceDefinitionNoteUnion() {} +func (OrganizationType) IsResearchStudySiteUnion() {} -func (OrganizationType) IsConditionParticipantActorUnion() {} +func (OrganizationType) IsResearchStudyAssociatedPartyUnion() {} -func (OrganizationType) IsFamilyMemberHistoryParticipantActorUnion() {} +func (OrganizationType) IsResearchStudyNoteUnion() {} -func (OrganizationType) IsMedicationAdministrationNoteUnion() {} +func (OrganizationType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} -func (OrganizationType) IsResearchStudyAssociatedPartyPartyUnion() {} +func (OrganizationType) IsSpecimenNoteUnion() {} -func (OrganizationType) IsDocumentReferenceAuthorUnion() {} +func (OrganizationType) IsGroupManagingEntityUnion() {} -func (OrganizationType) IsDocumentReferenceAttesterUnion() {} +func (OrganizationType) IsGroupMemberUnion() {} -func (OrganizationType) IsSubstanceDefinitionCodeNoteUnion() {} +func (OrganizationType) IsPatientGeneralPractitionerUnion() {} -func (OrganizationType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} +func (OrganizationType) IsFamilyMemberHistoryConditionNoteUnion() {} -func (OrganizationType) IsSignatureOnBehalfOfUnion() {} +func (OrganizationType) IsImagingStudySeriesPerformerUnion() {} -func (OrganizationType) IsSignatureWhoUnion() {} +func (OrganizationType) IsMedicationStatementInformationSourceUnion() {} -func (OrganizationType) IsUsageContextValueReferenceUnion() {} +func (OrganizationType) IsMedicationStatementNoteUnion() {} -func (OrganizationType) IsFamilyMemberHistoryProcedureNoteUnion() {} +func (OrganizationType) IsDiagnosticReportSubjectUnion() {} -func (OrganizationType) IsTaskRestrictionRecipientUnion() {} +func (OrganizationType) IsDiagnosticReportNoteUnion() {} -func (OrganizationType) IsSpecimenNoteUnion() {} +func (OrganizationType) IsDiagnosticReportPerformerUnion() {} -func (OrganizationType) IsMedicationRequestPerformerUnion() {} +func (OrganizationType) IsDiagnosticReportResultsInterpreterUnion() {} -func (OrganizationType) IsMedicationRequestRequesterUnion() {} +func (OrganizationType) IsMedicationAdministrationNoteUnion() {} func (OrganizationType) IsMedicationRequestNoteUnion() {} func (OrganizationType) IsMedicationRequestInformationSourceUnion() {} -func (OrganizationType) IsPatientGeneralPractitionerUnion() {} +func (OrganizationType) IsMedicationRequestPerformerUnion() {} -func (OrganizationType) IsMedicationStatementInformationSourceUnion() {} +func (OrganizationType) IsMedicationRequestRequesterUnion() {} -func (OrganizationType) IsMedicationStatementNoteUnion() {} +func (OrganizationType) IsAnnotationAuthorReferenceUnion() {} -func (OrganizationType) IsGroupMemberEntityUnion() {} +func (OrganizationType) IsTaskInputValueAnnotationUnion() {} -func (OrganizationType) IsConditionNoteUnion() {} +func (OrganizationType) IsTaskInputValueSignatureUnion() {} -func (OrganizationType) IsConditionParticipantUnion() {} +func (OrganizationType) IsTaskInputValueUsageContextUnion() {} -func (OrganizationType) IsFamilyMemberHistoryConditionNoteUnion() {} +func (OrganizationType) IsTaskPerformerActorUnion() {} -func (OrganizationType) IsObservationSubjectUnion() {} +func (OrganizationType) IsFamilyMemberHistoryParticipantActorUnion() {} -func (OrganizationType) IsObservationNoteUnion() {} +func (OrganizationType) IsTaskOutputValueAnnotationUnion() {} -func (OrganizationType) IsObservationPerformerUnion() {} +func (OrganizationType) IsTaskOutputValueSignatureUnion() {} -func (OrganizationType) IsProcedureFocusUnion() {} +func (OrganizationType) IsTaskOutputValueUsageContextUnion() {} -func (OrganizationType) IsProcedureReportedReferenceUnion() {} +func (OrganizationType) IsImagingStudyNoteUnion() {} -func (OrganizationType) IsProcedureSubjectUnion() {} +func (OrganizationType) IsImagingStudySeriesPerformerActorUnion() {} -func (OrganizationType) IsProcedureNoteUnion() {} +func (OrganizationType) IsSignatureOnBehalfOfUnion() {} -func (OrganizationType) IsProcedurePerformerUnion() {} +func (OrganizationType) IsSignatureWhoUnion() {} -func (OrganizationType) IsImagingStudySeriesPerformerUnion() {} +func (OrganizationType) IsTaskOwnerUnion() {} -func (OrganizationType) IsTaskPerformerActorUnion() {} +func (OrganizationType) IsTaskRequesterUnion() {} -func (OrganizationType) IsFamilyMemberHistoryNoteUnion() {} +func (OrganizationType) IsTaskNoteUnion() {} -func (OrganizationType) IsFamilyMemberHistoryParticipantUnion() {} +func (OrganizationType) IsTaskPerformerUnion() {} -func (OrganizationType) IsTaskInputValueAnnotationUnion() {} +func (OrganizationType) IsTaskRestrictionUnion() {} -func (OrganizationType) IsTaskInputValueSignatureUnion() {} +func (OrganizationType) IsExtensionValueSignatureUnion() {} -func (OrganizationType) IsTaskInputValueUsageContextUnion() {} +func (OrganizationType) IsExtensionValueUsageContextUnion() {} -func (OrganizationType) IsImagingStudyNoteUnion() {} +func (OrganizationType) IsExtensionValueAnnotationUnion() {} -func (OrganizationType) IsResearchStudyAssociatedPartyUnion() {} +func (OrganizationType) IsGroupMemberEntityUnion() {} -func (OrganizationType) IsResearchStudyNoteUnion() {} +func (OrganizationType) IsProcedurePerformerActorUnion() {} -func (OrganizationType) IsResearchStudySiteUnion() {} +func (OrganizationType) IsDocumentReferenceAttesterUnion() {} -func (OrganizationType) IsDocumentReferenceAttesterPartyUnion() {} +func (OrganizationType) IsDocumentReferenceAuthorUnion() {} -func (OrganizationType) IsExtensionValueAnnotationUnion() {} +func (OrganizationType) IsSubstanceDefinitionNoteUnion() {} -func (OrganizationType) IsExtensionValueSignatureUnion() {} +func (OrganizationType) IsSubstanceDefinitionCodeNoteUnion() {} -func (OrganizationType) IsExtensionValueUsageContextUnion() {} +func (OrganizationType) IsUsageContextValueReferenceUnion() {} -func (OrganizationType) IsImagingStudySeriesPerformerActorUnion() {} +func (OrganizationType) IsFamilyMemberHistoryNoteUnion() {} -func (OrganizationType) IsDiagnosticReportNoteUnion() {} +func (OrganizationType) IsFamilyMemberHistoryParticipantUnion() {} -func (OrganizationType) IsDiagnosticReportPerformerUnion() {} +func (OrganizationType) IsResearchStudyAssociatedPartyPartyUnion() {} -func (OrganizationType) IsDiagnosticReportResultsInterpreterUnion() {} +func (OrganizationType) IsProcedureNoteUnion() {} -func (OrganizationType) IsDiagnosticReportSubjectUnion() {} +func (OrganizationType) IsProcedurePerformerUnion() {} -func (OrganizationType) IsAnnotationAuthorReferenceUnion() {} +func (OrganizationType) IsProcedureFocusUnion() {} -func (OrganizationType) IsTaskOutputValueAnnotationUnion() {} +func (OrganizationType) IsProcedureReportedReferenceUnion() {} -func (OrganizationType) IsTaskOutputValueSignatureUnion() {} +func (OrganizationType) IsProcedureSubjectUnion() {} -func (OrganizationType) IsTaskOutputValueUsageContextUnion() {} +func (OrganizationType) IsDocumentReferenceAttesterPartyUnion() {} -func (OrganizationType) IsTaskOwnerUnion() {} +func (OrganizationType) IsTaskRestrictionRecipientUnion() {} -func (OrganizationType) IsTaskRequesterUnion() {} +func (OrganizationType) IsFamilyMemberHistoryProcedureNoteUnion() {} -func (OrganizationType) IsTaskNoteUnion() {} +func (OrganizationType) IsConditionParticipantActorUnion() {} -func (OrganizationType) IsTaskPerformerUnion() {} +func (OrganizationType) IsObservationSubjectUnion() {} -func (OrganizationType) IsTaskRestrictionUnion() {} +func (OrganizationType) IsObservationNoteUnion() {} + +func (OrganizationType) IsObservationPerformerUnion() {} func (OrganizationType) IsResourceUnion() {} type ParameterDefinition struct { - Profile *string `json:"profile,omitempty"` - Min *string `json:"min,omitempty"` + Max *string `json:"max,omitempty"` Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` Documentation *string `json:"documentation,omitempty"` - Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` - Max *string `json:"max,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Profile *string `json:"profile,omitempty"` Use *string `json:"use,omitempty"` + Min *string `json:"min,omitempty"` + Type *string `json:"type,omitempty"` } type PatientCommunication struct { + Preferred *string `json:"preferred,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` Language *CodeableConcept `json:"language,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Preferred *string `json:"preferred,omitempty"` } type PatientContact struct { - Relationship []*CodeableConcept `json:"relationship,omitempty"` - Telecom []*ContactPoint `json:"telecom,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Name *HumanName `json:"name,omitempty"` - Address *Address `json:"address,omitempty"` - Gender *string `json:"gender,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Organization []*OrganizationType `json:"organization,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Period *Period `json:"period,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Period *Period `json:"period,omitempty"` + Gender *string `json:"gender,omitempty"` + ID *string `json:"id,omitempty"` + Telecom []*ContactPoint `json:"telecom,omitempty"` + Name *HumanName `json:"name,omitempty"` + Organization *OrganizationType `json:"organization"` + Relationship []*CodeableConcept `json:"relationship,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Address *Address `json:"address,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type PatientLink struct { - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Other []PatientLinkOtherUnion `json:"other,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Type *string `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Type *string `json:"type,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Other PatientLinkOtherUnion `json:"other"` } type PatientType struct { - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Gender *string `json:"gender,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` - Address []*Address `json:"address,omitempty"` - Link []PatientLinkUnion `json:"link,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - GeneralPractitioner []PatientGeneralPractitionerUnion `json:"generalPractitioner,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Meta *Meta `json:"meta,omitempty"` - MultipleBirthInteger *string `json:"multipleBirthInteger,omitempty"` - MultipleBirthBoolean *string `json:"multipleBirthBoolean,omitempty"` - Text *Narrative `json:"text,omitempty"` - ManagingOrganization []*OrganizationType `json:"managingOrganization,omitempty"` - Active *string `json:"active,omitempty"` - BirthDate *string `json:"birthDate,omitempty"` - DeceasedDateTime *string `json:"deceasedDateTime,omitempty"` - ID *string `json:"id,omitempty"` - Name []*HumanName `json:"name,omitempty"` - Photo []*Attachment `json:"photo,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Contact []*PatientContact `json:"contact,omitempty"` - MaritalStatus *CodeableConcept `json:"maritalStatus,omitempty"` - Communication []*PatientCommunication `json:"communication,omitempty"` - Telecom []*ContactPoint `json:"telecom,omitempty"` - Language *string `json:"language,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + ManagingOrganization *OrganizationType `json:"managingOrganization"` + Contact []*PatientContact `json:"contact,omitempty"` + Gender *string `json:"gender,omitempty"` + Link PatientLinkUnion `json:"link"` + ImplicitRules *string `json:"implicitRules,omitempty"` + MultipleBirthInteger *string `json:"multipleBirthInteger,omitempty"` + ID *string `json:"id,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Communication []*PatientCommunication `json:"communication,omitempty"` + BirthDate *string `json:"birthDate,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + GeneralPractitioner PatientGeneralPractitionerUnion `json:"generalPractitioner"` + Language *string `json:"language,omitempty"` + DeceasedDateTime *string `json:"deceasedDateTime,omitempty"` + Telecom []*ContactPoint `json:"telecom,omitempty"` + Photo []*Attachment `json:"photo,omitempty"` + Text *Narrative `json:"text,omitempty"` + MultipleBirthBoolean *string `json:"multipleBirthBoolean,omitempty"` + Address []*Address `json:"address,omitempty"` + MaritalStatus *CodeableConcept `json:"maritalStatus,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Name []*HumanName `json:"name,omitempty"` + Active *string `json:"active,omitempty"` + DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` } -func (PatientType) IsGroupMemberUnion() {} +func (PatientType) IsConditionSubjectUnion() {} -func (PatientType) IsProcedurePerformerActorUnion() {} +func (PatientType) IsConditionNoteUnion() {} -func (PatientType) IsSubstanceDefinitionNoteUnion() {} +func (PatientType) IsConditionParticipantUnion() {} -func (PatientType) IsConditionParticipantActorUnion() {} +func (PatientType) IsResearchSubjectSubjectUnion() {} -func (PatientType) IsFamilyMemberHistoryParticipantActorUnion() {} +func (PatientType) IsResearchStudyNoteUnion() {} -func (PatientType) IsMedicationAdministrationNoteUnion() {} +func (PatientType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} -func (PatientType) IsMedicationAdministrationSubjectUnion() {} +func (PatientType) IsSpecimenNoteUnion() {} -func (PatientType) IsPatientLinkOtherUnion() {} +func (PatientType) IsSpecimenSubjectUnion() {} -func (PatientType) IsDocumentReferenceAuthorUnion() {} +func (PatientType) IsSpecimenCollectionUnion() {} -func (PatientType) IsDocumentReferenceAttesterUnion() {} +func (PatientType) IsGroupMemberUnion() {} -func (PatientType) IsSubstanceDefinitionCodeNoteUnion() {} +func (PatientType) IsPatientLinkUnion() {} -func (PatientType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} +func (PatientType) IsFamilyMemberHistoryConditionNoteUnion() {} -func (PatientType) IsSignatureOnBehalfOfUnion() {} +func (PatientType) IsImagingStudySeriesPerformerUnion() {} -func (PatientType) IsSignatureWhoUnion() {} +func (PatientType) IsMedicationStatementInformationSourceUnion() {} -func (PatientType) IsFamilyMemberHistoryProcedureNoteUnion() {} +func (PatientType) IsMedicationStatementSubjectUnion() {} -func (PatientType) IsTaskRestrictionRecipientUnion() {} +func (PatientType) IsMedicationStatementNoteUnion() {} -func (PatientType) IsSpecimenSubjectUnion() {} +func (PatientType) IsDiagnosticReportSubjectUnion() {} -func (PatientType) IsSpecimenCollectionUnion() {} +func (PatientType) IsDiagnosticReportNoteUnion() {} -func (PatientType) IsSpecimenNoteUnion() {} +func (PatientType) IsMedicationAdministrationSubjectUnion() {} -func (PatientType) IsSpecimenCollectionCollectorUnion() {} +func (PatientType) IsMedicationAdministrationNoteUnion() {} + +func (PatientType) IsMedicationRequestNoteUnion() {} + +func (PatientType) IsMedicationRequestInformationSourceUnion() {} func (PatientType) IsMedicationRequestPerformerUnion() {} @@ -2150,102 +2154,98 @@ func (PatientType) IsMedicationRequestRequesterUnion() {} func (PatientType) IsMedicationRequestSubjectUnion() {} -func (PatientType) IsMedicationRequestNoteUnion() {} - -func (PatientType) IsMedicationRequestInformationSourceUnion() {} - -func (PatientType) IsPatientLinkUnion() {} +func (PatientType) IsPatientLinkOtherUnion() {} -func (PatientType) IsMedicationStatementInformationSourceUnion() {} +func (PatientType) IsAnnotationAuthorReferenceUnion() {} -func (PatientType) IsMedicationStatementSubjectUnion() {} +func (PatientType) IsTaskInputValueAnnotationUnion() {} -func (PatientType) IsMedicationStatementNoteUnion() {} +func (PatientType) IsTaskInputValueSignatureUnion() {} -func (PatientType) IsGroupMemberEntityUnion() {} +func (PatientType) IsTaskPerformerActorUnion() {} -func (PatientType) IsConditionSubjectUnion() {} +func (PatientType) IsFamilyMemberHistoryParticipantActorUnion() {} -func (PatientType) IsConditionNoteUnion() {} +func (PatientType) IsTaskOutputValueAnnotationUnion() {} -func (PatientType) IsConditionParticipantUnion() {} +func (PatientType) IsTaskOutputValueSignatureUnion() {} -func (PatientType) IsFamilyMemberHistoryConditionNoteUnion() {} +func (PatientType) IsImagingStudySubjectUnion() {} -func (PatientType) IsObservationSubjectUnion() {} +func (PatientType) IsImagingStudyNoteUnion() {} -func (PatientType) IsObservationNoteUnion() {} +func (PatientType) IsImagingStudySeriesPerformerActorUnion() {} -func (PatientType) IsObservationPerformerUnion() {} +func (PatientType) IsSignatureOnBehalfOfUnion() {} -func (PatientType) IsProcedureFocusUnion() {} +func (PatientType) IsSignatureWhoUnion() {} -func (PatientType) IsProcedureRecorderUnion() {} +func (PatientType) IsTaskOwnerUnion() {} -func (PatientType) IsProcedureReportedReferenceUnion() {} +func (PatientType) IsTaskRequesterUnion() {} -func (PatientType) IsProcedureSubjectUnion() {} +func (PatientType) IsTaskNoteUnion() {} -func (PatientType) IsProcedureNoteUnion() {} +func (PatientType) IsTaskPerformerUnion() {} -func (PatientType) IsProcedurePerformerUnion() {} +func (PatientType) IsTaskRestrictionUnion() {} -func (PatientType) IsResearchSubjectSubjectUnion() {} +func (PatientType) IsExtensionValueSignatureUnion() {} -func (PatientType) IsImagingStudySeriesPerformerUnion() {} +func (PatientType) IsExtensionValueAnnotationUnion() {} -func (PatientType) IsTaskPerformerActorUnion() {} +func (PatientType) IsGroupMemberEntityUnion() {} -func (PatientType) IsFamilyMemberHistoryNoteUnion() {} +func (PatientType) IsProcedurePerformerActorUnion() {} -func (PatientType) IsFamilyMemberHistoryParticipantUnion() {} +func (PatientType) IsDocumentReferenceAttesterUnion() {} -func (PatientType) IsTaskInputValueAnnotationUnion() {} +func (PatientType) IsDocumentReferenceAuthorUnion() {} -func (PatientType) IsTaskInputValueSignatureUnion() {} +func (PatientType) IsSubstanceDefinitionNoteUnion() {} -func (PatientType) IsImagingStudySubjectUnion() {} +func (PatientType) IsSubstanceDefinitionCodeNoteUnion() {} -func (PatientType) IsImagingStudyNoteUnion() {} +func (PatientType) IsFamilyMemberHistoryNoteUnion() {} -func (PatientType) IsResearchStudyNoteUnion() {} +func (PatientType) IsFamilyMemberHistoryParticipantUnion() {} -func (PatientType) IsDocumentReferenceAttesterPartyUnion() {} +func (PatientType) IsProcedureNoteUnion() {} -func (PatientType) IsExtensionValueAnnotationUnion() {} +func (PatientType) IsProcedurePerformerUnion() {} -func (PatientType) IsExtensionValueSignatureUnion() {} +func (PatientType) IsProcedureFocusUnion() {} -func (PatientType) IsImagingStudySeriesPerformerActorUnion() {} +func (PatientType) IsProcedureRecorderUnion() {} -func (PatientType) IsDiagnosticReportNoteUnion() {} +func (PatientType) IsProcedureReportedReferenceUnion() {} -func (PatientType) IsDiagnosticReportSubjectUnion() {} +func (PatientType) IsProcedureSubjectUnion() {} -func (PatientType) IsAnnotationAuthorReferenceUnion() {} +func (PatientType) IsDocumentReferenceAttesterPartyUnion() {} -func (PatientType) IsTaskOutputValueAnnotationUnion() {} +func (PatientType) IsTaskRestrictionRecipientUnion() {} -func (PatientType) IsTaskOutputValueSignatureUnion() {} +func (PatientType) IsFamilyMemberHistoryProcedureNoteUnion() {} -func (PatientType) IsTaskOwnerUnion() {} +func (PatientType) IsConditionParticipantActorUnion() {} -func (PatientType) IsTaskRequesterUnion() {} +func (PatientType) IsSpecimenCollectionCollectorUnion() {} -func (PatientType) IsTaskNoteUnion() {} +func (PatientType) IsObservationSubjectUnion() {} -func (PatientType) IsTaskPerformerUnion() {} +func (PatientType) IsObservationNoteUnion() {} -func (PatientType) IsTaskRestrictionUnion() {} +func (PatientType) IsObservationPerformerUnion() {} func (PatientType) IsResourceUnion() {} type Period struct { + Start *string `json:"start,omitempty"` + End *string `json:"end,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - Start *string `json:"start,omitempty"` - End *string `json:"end,omitempty"` } type PractitionerCommunication struct { @@ -2258,76 +2258,78 @@ type PractitionerCommunication struct { } type PractitionerQualification struct { - Issuer []*OrganizationType `json:"issuer,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Period *Period `json:"period,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Issuer *OrganizationType `json:"issuer"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Period *Period `json:"period,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` } type PractitionerRoleType struct { - Availability []*Availability `json:"availability,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Practitioner []*PractitionerType `json:"practitioner,omitempty"` + Communication []*CodeableConcept `json:"communication,omitempty"` + Active *string `json:"active,omitempty"` + ID *string `json:"id,omitempty"` + Organization *OrganizationType `json:"organization"` Contained []ResourceUnion `json:"contained,omitempty"` - Language *string `json:"language,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Period *Period `json:"period,omitempty"` Code []*CodeableConcept `json:"code,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Specialty []*CodeableConcept `json:"specialty,omitempty"` - ID *string `json:"id,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Organization []*OrganizationType `json:"organization,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Communication []*CodeableConcept `json:"communication,omitempty"` - Active *string `json:"active,omitempty"` - Characteristic []*CodeableConcept `json:"characteristic,omitempty"` - Contact []*ExtendedContactDetail `json:"contact,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Language *string `json:"language,omitempty"` Meta *Meta `json:"meta,omitempty"` - Period *Period `json:"period,omitempty"` + Contact []*ExtendedContactDetail `json:"contact,omitempty"` Text *Narrative `json:"text,omitempty"` + Practitioner *PractitionerType `json:"practitioner"` + Availability []*Availability `json:"availability,omitempty"` + Characteristic []*CodeableConcept `json:"characteristic,omitempty"` } -func (PractitionerRoleType) IsGroupManagingEntityUnion() {} +func (PractitionerRoleType) IsConditionNoteUnion() {} -func (PractitionerRoleType) IsGroupMemberUnion() {} +func (PractitionerRoleType) IsConditionParticipantUnion() {} -func (PractitionerRoleType) IsProcedurePerformerActorUnion() {} +func (PractitionerRoleType) IsResearchStudyAssociatedPartyUnion() {} -func (PractitionerRoleType) IsSubstanceDefinitionNoteUnion() {} +func (PractitionerRoleType) IsResearchStudyNoteUnion() {} -func (PractitionerRoleType) IsConditionParticipantActorUnion() {} +func (PractitionerRoleType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} -func (PractitionerRoleType) IsFamilyMemberHistoryParticipantActorUnion() {} +func (PractitionerRoleType) IsSpecimenNoteUnion() {} -func (PractitionerRoleType) IsMedicationAdministrationNoteUnion() {} +func (PractitionerRoleType) IsSpecimenCollectionUnion() {} -func (PractitionerRoleType) IsResearchStudyAssociatedPartyPartyUnion() {} +func (PractitionerRoleType) IsGroupManagingEntityUnion() {} -func (PractitionerRoleType) IsDocumentReferenceAuthorUnion() {} +func (PractitionerRoleType) IsGroupMemberUnion() {} -func (PractitionerRoleType) IsDocumentReferenceAttesterUnion() {} +func (PractitionerRoleType) IsPatientGeneralPractitionerUnion() {} -func (PractitionerRoleType) IsSubstanceDefinitionCodeNoteUnion() {} +func (PractitionerRoleType) IsFamilyMemberHistoryConditionNoteUnion() {} -func (PractitionerRoleType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} +func (PractitionerRoleType) IsImagingStudySeriesPerformerUnion() {} -func (PractitionerRoleType) IsSignatureOnBehalfOfUnion() {} +func (PractitionerRoleType) IsMedicationStatementInformationSourceUnion() {} -func (PractitionerRoleType) IsSignatureWhoUnion() {} +func (PractitionerRoleType) IsMedicationStatementNoteUnion() {} -func (PractitionerRoleType) IsFamilyMemberHistoryProcedureNoteUnion() {} +func (PractitionerRoleType) IsDiagnosticReportNoteUnion() {} -func (PractitionerRoleType) IsTaskRestrictionRecipientUnion() {} +func (PractitionerRoleType) IsDiagnosticReportPerformerUnion() {} -func (PractitionerRoleType) IsSpecimenCollectionUnion() {} +func (PractitionerRoleType) IsDiagnosticReportResultsInterpreterUnion() {} -func (PractitionerRoleType) IsSpecimenNoteUnion() {} +func (PractitionerRoleType) IsMedicationAdministrationNoteUnion() {} -func (PractitionerRoleType) IsSpecimenCollectionCollectorUnion() {} +func (PractitionerRoleType) IsMedicationRequestNoteUnion() {} + +func (PractitionerRoleType) IsMedicationRequestInformationSourceUnion() {} func (PractitionerRoleType) IsMedicationRequestPerformerUnion() {} @@ -2335,151 +2337,153 @@ func (PractitionerRoleType) IsMedicationRequestRecorderUnion() {} func (PractitionerRoleType) IsMedicationRequestRequesterUnion() {} -func (PractitionerRoleType) IsMedicationRequestNoteUnion() {} - -func (PractitionerRoleType) IsMedicationRequestInformationSourceUnion() {} +func (PractitionerRoleType) IsAnnotationAuthorReferenceUnion() {} -func (PractitionerRoleType) IsPatientGeneralPractitionerUnion() {} +func (PractitionerRoleType) IsTaskInputValueAnnotationUnion() {} -func (PractitionerRoleType) IsMedicationStatementInformationSourceUnion() {} +func (PractitionerRoleType) IsTaskInputValueSignatureUnion() {} -func (PractitionerRoleType) IsMedicationStatementNoteUnion() {} +func (PractitionerRoleType) IsTaskPerformerActorUnion() {} -func (PractitionerRoleType) IsGroupMemberEntityUnion() {} +func (PractitionerRoleType) IsFamilyMemberHistoryParticipantActorUnion() {} -func (PractitionerRoleType) IsConditionNoteUnion() {} +func (PractitionerRoleType) IsTaskOutputValueAnnotationUnion() {} -func (PractitionerRoleType) IsConditionParticipantUnion() {} +func (PractitionerRoleType) IsTaskOutputValueSignatureUnion() {} -func (PractitionerRoleType) IsFamilyMemberHistoryConditionNoteUnion() {} +func (PractitionerRoleType) IsImagingStudyReferrerUnion() {} -func (PractitionerRoleType) IsObservationNoteUnion() {} +func (PractitionerRoleType) IsImagingStudyNoteUnion() {} -func (PractitionerRoleType) IsObservationPerformerUnion() {} +func (PractitionerRoleType) IsImagingStudySeriesPerformerActorUnion() {} -func (PractitionerRoleType) IsProcedureFocusUnion() {} +func (PractitionerRoleType) IsSignatureOnBehalfOfUnion() {} -func (PractitionerRoleType) IsProcedureRecorderUnion() {} +func (PractitionerRoleType) IsSignatureWhoUnion() {} -func (PractitionerRoleType) IsProcedureReportedReferenceUnion() {} +func (PractitionerRoleType) IsTaskOwnerUnion() {} -func (PractitionerRoleType) IsProcedureNoteUnion() {} +func (PractitionerRoleType) IsTaskRequesterUnion() {} -func (PractitionerRoleType) IsProcedurePerformerUnion() {} +func (PractitionerRoleType) IsTaskNoteUnion() {} -func (PractitionerRoleType) IsImagingStudySeriesPerformerUnion() {} +func (PractitionerRoleType) IsTaskPerformerUnion() {} -func (PractitionerRoleType) IsTaskPerformerActorUnion() {} +func (PractitionerRoleType) IsTaskRestrictionUnion() {} -func (PractitionerRoleType) IsFamilyMemberHistoryNoteUnion() {} +func (PractitionerRoleType) IsExtensionValueSignatureUnion() {} -func (PractitionerRoleType) IsFamilyMemberHistoryParticipantUnion() {} +func (PractitionerRoleType) IsExtensionValueAnnotationUnion() {} -func (PractitionerRoleType) IsTaskInputValueAnnotationUnion() {} +func (PractitionerRoleType) IsGroupMemberEntityUnion() {} -func (PractitionerRoleType) IsTaskInputValueSignatureUnion() {} +func (PractitionerRoleType) IsProcedurePerformerActorUnion() {} -func (PractitionerRoleType) IsImagingStudyReferrerUnion() {} +func (PractitionerRoleType) IsDocumentReferenceAttesterUnion() {} -func (PractitionerRoleType) IsImagingStudyNoteUnion() {} +func (PractitionerRoleType) IsDocumentReferenceAuthorUnion() {} -func (PractitionerRoleType) IsResearchStudyAssociatedPartyUnion() {} +func (PractitionerRoleType) IsSubstanceDefinitionNoteUnion() {} -func (PractitionerRoleType) IsResearchStudyNoteUnion() {} +func (PractitionerRoleType) IsSubstanceDefinitionCodeNoteUnion() {} -func (PractitionerRoleType) IsDocumentReferenceAttesterPartyUnion() {} +func (PractitionerRoleType) IsFamilyMemberHistoryNoteUnion() {} -func (PractitionerRoleType) IsExtensionValueAnnotationUnion() {} +func (PractitionerRoleType) IsFamilyMemberHistoryParticipantUnion() {} -func (PractitionerRoleType) IsExtensionValueSignatureUnion() {} +func (PractitionerRoleType) IsResearchStudyAssociatedPartyPartyUnion() {} -func (PractitionerRoleType) IsImagingStudySeriesPerformerActorUnion() {} +func (PractitionerRoleType) IsProcedureNoteUnion() {} -func (PractitionerRoleType) IsDiagnosticReportNoteUnion() {} +func (PractitionerRoleType) IsProcedurePerformerUnion() {} -func (PractitionerRoleType) IsDiagnosticReportPerformerUnion() {} +func (PractitionerRoleType) IsProcedureFocusUnion() {} -func (PractitionerRoleType) IsDiagnosticReportResultsInterpreterUnion() {} +func (PractitionerRoleType) IsProcedureRecorderUnion() {} -func (PractitionerRoleType) IsAnnotationAuthorReferenceUnion() {} +func (PractitionerRoleType) IsProcedureReportedReferenceUnion() {} -func (PractitionerRoleType) IsTaskOutputValueAnnotationUnion() {} +func (PractitionerRoleType) IsDocumentReferenceAttesterPartyUnion() {} -func (PractitionerRoleType) IsTaskOutputValueSignatureUnion() {} +func (PractitionerRoleType) IsTaskRestrictionRecipientUnion() {} -func (PractitionerRoleType) IsTaskOwnerUnion() {} +func (PractitionerRoleType) IsFamilyMemberHistoryProcedureNoteUnion() {} -func (PractitionerRoleType) IsTaskRequesterUnion() {} +func (PractitionerRoleType) IsConditionParticipantActorUnion() {} -func (PractitionerRoleType) IsTaskNoteUnion() {} +func (PractitionerRoleType) IsSpecimenCollectionCollectorUnion() {} -func (PractitionerRoleType) IsTaskPerformerUnion() {} +func (PractitionerRoleType) IsObservationNoteUnion() {} -func (PractitionerRoleType) IsTaskRestrictionUnion() {} +func (PractitionerRoleType) IsObservationPerformerUnion() {} func (PractitionerRoleType) IsResourceUnion() {} -type PractitionerType struct { - Meta *Meta `json:"meta,omitempty"` - DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` +type PractitionerType struct { BirthDate *string `json:"birthDate,omitempty"` ID *string `json:"id,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Gender *string `json:"gender,omitempty"` + Language *string `json:"language,omitempty"` Qualification []*PractitionerQualification `json:"qualification,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Telecom []*ContactPoint `json:"telecom,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` Address []*Address `json:"address,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Language *string `json:"language,omitempty"` + Active *string `json:"active,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Gender *string `json:"gender,omitempty"` Name []*HumanName `json:"name,omitempty"` - Photo []*Attachment `json:"photo,omitempty"` Text *Narrative `json:"text,omitempty"` - Active *string `json:"active,omitempty"` - Communication []*PractitionerCommunication `json:"communication,omitempty"` DeceasedDateTime *string `json:"deceasedDateTime,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Photo []*Attachment `json:"photo,omitempty"` + Telecom []*ContactPoint `json:"telecom,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Communication []*PractitionerCommunication `json:"communication,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` } -func (PractitionerType) IsGroupManagingEntityUnion() {} +func (PractitionerType) IsConditionNoteUnion() {} -func (PractitionerType) IsGroupMemberUnion() {} +func (PractitionerType) IsConditionParticipantUnion() {} -func (PractitionerType) IsProcedurePerformerActorUnion() {} +func (PractitionerType) IsResearchStudyAssociatedPartyUnion() {} -func (PractitionerType) IsSubstanceDefinitionNoteUnion() {} +func (PractitionerType) IsResearchStudyNoteUnion() {} -func (PractitionerType) IsConditionParticipantActorUnion() {} +func (PractitionerType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} -func (PractitionerType) IsFamilyMemberHistoryParticipantActorUnion() {} +func (PractitionerType) IsSpecimenNoteUnion() {} -func (PractitionerType) IsMedicationAdministrationNoteUnion() {} +func (PractitionerType) IsSpecimenCollectionUnion() {} -func (PractitionerType) IsResearchStudyAssociatedPartyPartyUnion() {} +func (PractitionerType) IsGroupManagingEntityUnion() {} -func (PractitionerType) IsDocumentReferenceAuthorUnion() {} +func (PractitionerType) IsGroupMemberUnion() {} -func (PractitionerType) IsDocumentReferenceAttesterUnion() {} +func (PractitionerType) IsPatientGeneralPractitionerUnion() {} -func (PractitionerType) IsSubstanceDefinitionCodeNoteUnion() {} +func (PractitionerType) IsFamilyMemberHistoryConditionNoteUnion() {} -func (PractitionerType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} +func (PractitionerType) IsImagingStudySeriesPerformerUnion() {} -func (PractitionerType) IsSignatureOnBehalfOfUnion() {} +func (PractitionerType) IsMedicationStatementInformationSourceUnion() {} -func (PractitionerType) IsSignatureWhoUnion() {} +func (PractitionerType) IsMedicationStatementNoteUnion() {} -func (PractitionerType) IsFamilyMemberHistoryProcedureNoteUnion() {} +func (PractitionerType) IsDiagnosticReportSubjectUnion() {} -func (PractitionerType) IsTaskRestrictionRecipientUnion() {} +func (PractitionerType) IsDiagnosticReportNoteUnion() {} -func (PractitionerType) IsSpecimenCollectionUnion() {} +func (PractitionerType) IsDiagnosticReportPerformerUnion() {} -func (PractitionerType) IsSpecimenNoteUnion() {} +func (PractitionerType) IsDiagnosticReportResultsInterpreterUnion() {} -func (PractitionerType) IsSpecimenCollectionCollectorUnion() {} +func (PractitionerType) IsMedicationAdministrationNoteUnion() {} + +func (PractitionerType) IsMedicationRequestNoteUnion() {} + +func (PractitionerType) IsMedicationRequestInformationSourceUnion() {} func (PractitionerType) IsMedicationRequestPerformerUnion() {} @@ -2487,171 +2491,167 @@ func (PractitionerType) IsMedicationRequestRecorderUnion() {} func (PractitionerType) IsMedicationRequestRequesterUnion() {} -func (PractitionerType) IsMedicationRequestNoteUnion() {} - -func (PractitionerType) IsMedicationRequestInformationSourceUnion() {} - -func (PractitionerType) IsPatientGeneralPractitionerUnion() {} +func (PractitionerType) IsAnnotationAuthorReferenceUnion() {} -func (PractitionerType) IsMedicationStatementInformationSourceUnion() {} +func (PractitionerType) IsTaskInputValueAnnotationUnion() {} -func (PractitionerType) IsMedicationStatementNoteUnion() {} +func (PractitionerType) IsTaskInputValueSignatureUnion() {} -func (PractitionerType) IsGroupMemberEntityUnion() {} +func (PractitionerType) IsTaskPerformerActorUnion() {} -func (PractitionerType) IsConditionNoteUnion() {} +func (PractitionerType) IsFamilyMemberHistoryParticipantActorUnion() {} -func (PractitionerType) IsConditionParticipantUnion() {} +func (PractitionerType) IsTaskOutputValueAnnotationUnion() {} -func (PractitionerType) IsFamilyMemberHistoryConditionNoteUnion() {} +func (PractitionerType) IsTaskOutputValueSignatureUnion() {} -func (PractitionerType) IsObservationSubjectUnion() {} +func (PractitionerType) IsImagingStudyReferrerUnion() {} -func (PractitionerType) IsObservationNoteUnion() {} +func (PractitionerType) IsImagingStudyNoteUnion() {} -func (PractitionerType) IsObservationPerformerUnion() {} +func (PractitionerType) IsImagingStudySeriesPerformerActorUnion() {} -func (PractitionerType) IsProcedureFocusUnion() {} +func (PractitionerType) IsSignatureOnBehalfOfUnion() {} -func (PractitionerType) IsProcedureRecorderUnion() {} +func (PractitionerType) IsSignatureWhoUnion() {} -func (PractitionerType) IsProcedureReportedReferenceUnion() {} +func (PractitionerType) IsTaskOwnerUnion() {} -func (PractitionerType) IsProcedureSubjectUnion() {} +func (PractitionerType) IsTaskRequesterUnion() {} -func (PractitionerType) IsProcedureNoteUnion() {} +func (PractitionerType) IsTaskNoteUnion() {} -func (PractitionerType) IsProcedurePerformerUnion() {} +func (PractitionerType) IsTaskPerformerUnion() {} -func (PractitionerType) IsImagingStudySeriesPerformerUnion() {} +func (PractitionerType) IsTaskRestrictionUnion() {} -func (PractitionerType) IsTaskPerformerActorUnion() {} +func (PractitionerType) IsExtensionValueSignatureUnion() {} -func (PractitionerType) IsFamilyMemberHistoryNoteUnion() {} +func (PractitionerType) IsExtensionValueAnnotationUnion() {} -func (PractitionerType) IsFamilyMemberHistoryParticipantUnion() {} +func (PractitionerType) IsGroupMemberEntityUnion() {} -func (PractitionerType) IsTaskInputValueAnnotationUnion() {} +func (PractitionerType) IsProcedurePerformerActorUnion() {} -func (PractitionerType) IsTaskInputValueSignatureUnion() {} +func (PractitionerType) IsDocumentReferenceAttesterUnion() {} -func (PractitionerType) IsImagingStudyReferrerUnion() {} +func (PractitionerType) IsDocumentReferenceAuthorUnion() {} -func (PractitionerType) IsImagingStudyNoteUnion() {} +func (PractitionerType) IsSubstanceDefinitionNoteUnion() {} -func (PractitionerType) IsResearchStudyAssociatedPartyUnion() {} +func (PractitionerType) IsSubstanceDefinitionCodeNoteUnion() {} -func (PractitionerType) IsResearchStudyNoteUnion() {} +func (PractitionerType) IsFamilyMemberHistoryNoteUnion() {} -func (PractitionerType) IsDocumentReferenceAttesterPartyUnion() {} +func (PractitionerType) IsFamilyMemberHistoryParticipantUnion() {} -func (PractitionerType) IsExtensionValueAnnotationUnion() {} +func (PractitionerType) IsResearchStudyAssociatedPartyPartyUnion() {} -func (PractitionerType) IsExtensionValueSignatureUnion() {} +func (PractitionerType) IsProcedureNoteUnion() {} -func (PractitionerType) IsImagingStudySeriesPerformerActorUnion() {} +func (PractitionerType) IsProcedurePerformerUnion() {} -func (PractitionerType) IsDiagnosticReportNoteUnion() {} +func (PractitionerType) IsProcedureFocusUnion() {} -func (PractitionerType) IsDiagnosticReportPerformerUnion() {} +func (PractitionerType) IsProcedureRecorderUnion() {} -func (PractitionerType) IsDiagnosticReportResultsInterpreterUnion() {} +func (PractitionerType) IsProcedureReportedReferenceUnion() {} -func (PractitionerType) IsDiagnosticReportSubjectUnion() {} +func (PractitionerType) IsProcedureSubjectUnion() {} -func (PractitionerType) IsAnnotationAuthorReferenceUnion() {} +func (PractitionerType) IsDocumentReferenceAttesterPartyUnion() {} -func (PractitionerType) IsTaskOutputValueAnnotationUnion() {} +func (PractitionerType) IsTaskRestrictionRecipientUnion() {} -func (PractitionerType) IsTaskOutputValueSignatureUnion() {} +func (PractitionerType) IsFamilyMemberHistoryProcedureNoteUnion() {} -func (PractitionerType) IsTaskOwnerUnion() {} +func (PractitionerType) IsConditionParticipantActorUnion() {} -func (PractitionerType) IsTaskRequesterUnion() {} +func (PractitionerType) IsSpecimenCollectionCollectorUnion() {} -func (PractitionerType) IsTaskNoteUnion() {} +func (PractitionerType) IsObservationSubjectUnion() {} -func (PractitionerType) IsTaskPerformerUnion() {} +func (PractitionerType) IsObservationNoteUnion() {} -func (PractitionerType) IsTaskRestrictionUnion() {} +func (PractitionerType) IsObservationPerformerUnion() {} func (PractitionerType) IsResourceUnion() {} type ProcedureFocalDevice struct { - Action *CodeableConcept `json:"action,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Action *CodeableConcept `json:"action,omitempty"` } type ProcedurePerformer struct { - Function *CodeableConcept `json:"function,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - OnBehalfOf []*OrganizationType `json:"onBehalfOf,omitempty"` - Period *Period `json:"period,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Actor []ProcedurePerformerActorUnion `json:"actor,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Actor ProcedurePerformerActorUnion `json:"actor"` + Extension []*Extension `json:"extension,omitempty"` + Function *CodeableConcept `json:"function,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + OnBehalfOf *OrganizationType `json:"onBehalfOf"` + Period *Period `json:"period,omitempty"` } type ProcedureType struct { - ResourceType *string `json:"resourceType,omitempty"` - Recorder []ProcedureRecorderUnion `json:"recorder,omitempty"` - OccurrenceTiming *Timing `json:"occurrenceTiming,omitempty"` - OccurrenceString *string `json:"occurrenceString,omitempty"` - Outcome *CodeableConcept `json:"outcome,omitempty"` - Reason []*CodeableReference `json:"reason,omitempty"` - ReportedReference []ProcedureReportedReferenceUnion `json:"reportedReference,omitempty"` - OccurrencePeriod *Period `json:"occurrencePeriod,omitempty"` - ReportedBoolean *string `json:"reportedBoolean,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Report []ProcedureReportUnion `json:"report,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` - Used []*CodeableReference `json:"used,omitempty"` - Recorded *string `json:"recorded,omitempty"` - PartOf []ProcedurePartOfUnion `json:"partOf,omitempty"` - StatusReason *CodeableConcept `json:"statusReason,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - OccurrenceRange *Range `json:"occurrenceRange,omitempty"` - FollowUp []*CodeableConcept `json:"followUp,omitempty"` - OccurrenceAge *Age `json:"occurrenceAge,omitempty"` - BodySite []*CodeableConcept `json:"bodySite,omitempty"` - ID *string `json:"id,omitempty"` - FocalDevice []*ProcedureFocalDevice `json:"focalDevice,omitempty"` - Text *Narrative `json:"text,omitempty"` - Meta *Meta `json:"meta,omitempty"` - SupportingInfo []ResourceUnion `json:"supportingInfo,omitempty"` - Language *string `json:"language,omitempty"` - Note []ProcedureNoteUnion `json:"note,omitempty"` - Status *string `json:"status,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Performer []ProcedurePerformerUnion `json:"performer,omitempty"` - InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` - Complication []*CodeableReference `json:"complication,omitempty"` - OccurrenceDateTime *string `json:"occurrenceDateTime,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - InstantiatesURI *string `json:"instantiatesUri,omitempty"` - Subject []ProcedureSubjectUnion `json:"subject,omitempty"` - Focus []ProcedureFocusUnion `json:"focus,omitempty"` + Recorder ProcedureRecorderUnion `json:"recorder"` + Report ProcedureReportUnion `json:"report"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Note ProcedureNoteUnion `json:"note"` + BodySite []*CodeableConcept `json:"bodySite,omitempty"` + InstantiatesURI *string `json:"instantiatesUri,omitempty"` + OccurrenceTiming *Timing `json:"occurrenceTiming,omitempty"` + OccurrenceAge *Age `json:"occurrenceAge,omitempty"` + OccurrenceDateTime *string `json:"occurrenceDateTime,omitempty"` + ReportedBoolean *string `json:"reportedBoolean,omitempty"` + Subject ProcedureSubjectUnion `json:"subject"` + OccurrenceRange *Range `json:"occurrenceRange,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Text *Narrative `json:"text,omitempty"` + Status *string `json:"status,omitempty"` + ReportedReference ProcedureReportedReferenceUnion `json:"reportedReference"` + Reason []*CodeableReference `json:"reason,omitempty"` + Outcome *CodeableConcept `json:"outcome,omitempty"` + PartOf ProcedurePartOfUnion `json:"partOf"` + Used []*CodeableReference `json:"used,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + SupportingInfo ResourceUnion `json:"supportingInfo"` + Language *string `json:"language,omitempty"` + FocalDevice []*ProcedureFocalDevice `json:"focalDevice,omitempty"` + ID *string `json:"id,omitempty"` + OccurrenceString *string `json:"occurrenceString,omitempty"` + Recorded *string `json:"recorded,omitempty"` + Performer ProcedurePerformerUnion `json:"performer"` + StatusReason *CodeableConcept `json:"statusReason,omitempty"` + FollowUp []*CodeableConcept `json:"followUp,omitempty"` + Complication []*CodeableReference `json:"complication,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Focus ProcedureFocusUnion `json:"focus"` + OccurrencePeriod *Period `json:"occurrencePeriod,omitempty"` + InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` } -func (ProcedureType) IsMedicationAdministrationPartOfUnion() {} - func (ProcedureType) IsMedicationStatementPartOfUnion() {} -func (ProcedureType) IsObservationSubjectUnion() {} +func (ProcedureType) IsDiagnosticReportSupportingInfoUnion() {} -func (ProcedureType) IsObservationPartOfUnion() {} +func (ProcedureType) IsMedicationAdministrationPartOfUnion() {} + +func (ProcedureType) IsDiagnosticReportSupportingInfoReferenceUnion() {} func (ProcedureType) IsProcedurePartOfUnion() {} -func (ProcedureType) IsDiagnosticReportSupportingInfoUnion() {} +func (ProcedureType) IsObservationSubjectUnion() {} -func (ProcedureType) IsDiagnosticReportSupportingInfoReferenceUnion() {} +func (ProcedureType) IsObservationPartOfUnion() {} func (ProcedureType) IsResourceUnion() {} @@ -2670,19 +2670,19 @@ type Query struct { } type Range struct { + ID *string `json:"id,omitempty"` + Low *Quantity `json:"low,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Extension []*Extension `json:"extension,omitempty"` High *Quantity `json:"high,omitempty"` - ID *string `json:"id,omitempty"` - Low *Quantity `json:"low,omitempty"` } type Ratio struct { + Denominator *Quantity `json:"denominator,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` Numerator *Quantity `json:"numerator,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - Denominator *Quantity `json:"denominator,omitempty"` } type RatioRange struct { @@ -2695,307 +2695,307 @@ type RatioRange struct { } type Reference struct { + Identifier *Identifier `json:"identifier,omitempty"` + Reference *string `json:"reference,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Type *string `json:"type,omitempty"` Display *string `json:"display,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` - Identifier *Identifier `json:"identifier,omitempty"` - Reference *string `json:"reference,omitempty"` } type RelatedArtifact struct { - Display *string `json:"display,omitempty"` - PublicationDate *string `json:"publicationDate,omitempty"` - PublicationStatus *string `json:"publicationStatus,omitempty"` - Classifier []*CodeableConcept `json:"classifier,omitempty"` - Document *Attachment `json:"document,omitempty"` - ResourceReference []ResourceUnion `json:"resourceReference,omitempty"` + Type *string `json:"type,omitempty"` + Resource *string `json:"resource,omitempty"` + ResourceReference ResourceUnion `json:"resourceReference"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` Label *string `json:"label,omitempty"` - Citation *string `json:"citation,omitempty"` - Resource *string `json:"resource,omitempty"` - Type *string `json:"type,omitempty"` + Document *Attachment `json:"document,omitempty"` + PublicationStatus *string `json:"publicationStatus,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Classifier []*CodeableConcept `json:"classifier,omitempty"` + PublicationDate *string `json:"publicationDate,omitempty"` + Citation *string `json:"citation,omitempty"` + Display *string `json:"display,omitempty"` } type ResearchStudyAssociatedParty struct { - Party []ResearchStudyAssociatedPartyPartyUnion `json:"party,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Name *string `json:"name,omitempty"` - Role *CodeableConcept `json:"role,omitempty"` - ID *string `json:"id,omitempty"` - Period []*Period `json:"period,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Classifier []*CodeableConcept `json:"classifier,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Party ResearchStudyAssociatedPartyPartyUnion `json:"party"` + Role *CodeableConcept `json:"role,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Period []*Period `json:"period,omitempty"` + Name *string `json:"name,omitempty"` + Classifier []*CodeableConcept `json:"classifier,omitempty"` } type ResearchStudyComparisonGroup struct { - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ObservedGroup []*GroupType `json:"observedGroup,omitempty"` - Name *string `json:"name,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - ID *string `json:"id,omitempty"` - Description *string `json:"description,omitempty"` + Extension []*Extension `json:"extension,omitempty"` LinkID *string `json:"linkId,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ID *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + ObservedGroup *GroupType `json:"observedGroup"` Type *CodeableConcept `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + Description *string `json:"description,omitempty"` } type ResearchStudyLabel struct { + Type *CodeableConcept `json:"type,omitempty"` Value *string `json:"value,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` } type ResearchStudyObjective struct { - Description *string `json:"description,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Name *string `json:"name,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Type *CodeableConcept `json:"type,omitempty"` + Description *string `json:"description,omitempty"` } type ResearchStudyOutcomeMeasure struct { - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Name *string `json:"name,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Type []*CodeableConcept `json:"type,omitempty"` Description *string `json:"description,omitempty"` Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type ResearchStudyProgressStatus struct { - ResourceType *string `json:"resourceType,omitempty"` - State *CodeableConcept `json:"state,omitempty"` - Actual *string `json:"actual,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Period *Period `json:"period,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + State *CodeableConcept `json:"state,omitempty"` + Actual *string `json:"actual,omitempty"` } type ResearchStudyRecruitment struct { - TargetNumber *string `json:"targetNumber,omitempty"` - ActualGroup []*GroupType `json:"actualGroup,omitempty"` - ActualNumber *string `json:"actualNumber,omitempty"` - Eligibility []ResearchStudyRecruitmentEligibilityUnion `json:"eligibility,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + ActualNumber *string `json:"actualNumber,omitempty"` + Eligibility ResearchStudyRecruitmentEligibilityUnion `json:"eligibility"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + TargetNumber *string `json:"targetNumber,omitempty"` + ActualGroup *GroupType `json:"actualGroup"` } type ResearchStudyType struct { - Region []*CodeableConcept `json:"region,omitempty"` - Title *string `json:"title,omitempty"` - Condition []*CodeableConcept `json:"condition,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Period *Period `json:"period,omitempty"` - DescriptionSummary *string `json:"descriptionSummary,omitempty"` - PrimaryPurposeType *CodeableConcept `json:"primaryPurposeType,omitempty"` - ComparisonGroup []*ResearchStudyComparisonGroup `json:"comparisonGroup,omitempty"` - WhyStopped *CodeableConcept `json:"whyStopped,omitempty"` - Date *string `json:"date,omitempty"` - Recruitment []ResearchStudyRecruitmentUnion `json:"recruitment,omitempty"` - Classifier []*CodeableConcept `json:"classifier,omitempty"` - Phase *CodeableConcept `json:"phase,omitempty"` - Language *string `json:"language,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Name *string `json:"name,omitempty"` - Text *Narrative `json:"text,omitempty"` - Result []ResearchStudyResultUnion `json:"result,omitempty"` - ProgressStatus []*ResearchStudyProgressStatus `json:"progressStatus,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - AssociatedParty []ResearchStudyAssociatedPartyUnion `json:"associatedParty,omitempty"` - Description *string `json:"description,omitempty"` - Site []ResearchStudySiteUnion `json:"site,omitempty"` - URL *string `json:"url,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Version *string `json:"version,omitempty"` - OutcomeMeasure []*ResearchStudyOutcomeMeasure `json:"outcomeMeasure,omitempty"` - ID *string `json:"id,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Objective []*ResearchStudyObjective `json:"objective,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Keyword []*CodeableConcept `json:"keyword,omitempty"` - Note []ResearchStudyNoteUnion `json:"note,omitempty"` - Status *string `json:"status,omitempty"` - Label []*ResearchStudyLabel `json:"label,omitempty"` - RelatedArtifact []*RelatedArtifact `json:"relatedArtifact,omitempty"` - StudyDesign []*CodeableConcept `json:"studyDesign,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Focus []*CodeableReference `json:"focus,omitempty"` - PartOf []*ResearchStudyType `json:"partOf,omitempty"` + Language *string `json:"language,omitempty"` + Region []*CodeableConcept `json:"region,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Note ResearchStudyNoteUnion `json:"note"` + Focus []*CodeableReference `json:"focus,omitempty"` + PrimaryPurposeType *CodeableConcept `json:"primaryPurposeType,omitempty"` + ProgressStatus []*ResearchStudyProgressStatus `json:"progressStatus,omitempty"` + WhyStopped *CodeableConcept `json:"whyStopped,omitempty"` + Result ResearchStudyResultUnion `json:"result"` + Version *string `json:"version,omitempty"` + URL *string `json:"url,omitempty"` + RelatedArtifact []*RelatedArtifact `json:"relatedArtifact,omitempty"` + Name *string `json:"name,omitempty"` + StudyDesign []*CodeableConcept `json:"studyDesign,omitempty"` + Objective []*ResearchStudyObjective `json:"objective,omitempty"` + Recruitment ResearchStudyRecruitmentUnion `json:"recruitment"` + Title *string `json:"title,omitempty"` + AssociatedParty ResearchStudyAssociatedPartyUnion `json:"associatedParty"` + ID *string `json:"id,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Description *string `json:"description,omitempty"` + ComparisonGroup []*ResearchStudyComparisonGroup `json:"comparisonGroup,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + PartOf *ResearchStudyType `json:"partOf"` + Classifier []*CodeableConcept `json:"classifier,omitempty"` + Label []*ResearchStudyLabel `json:"label,omitempty"` + Keyword []*CodeableConcept `json:"keyword,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Period *Period `json:"period,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Date *string `json:"date,omitempty"` + DescriptionSummary *string `json:"descriptionSummary,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Text *Narrative `json:"text,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Phase *CodeableConcept `json:"phase,omitempty"` + Condition []*CodeableConcept `json:"condition,omitempty"` + Status *string `json:"status,omitempty"` + OutcomeMeasure []*ResearchStudyOutcomeMeasure `json:"outcomeMeasure,omitempty"` + Site ResearchStudySiteUnion `json:"site"` } -func (ResearchStudyType) IsUsageContextValueReferenceUnion() {} +func (ResearchStudyType) IsResearchStudySiteUnion() {} func (ResearchStudyType) IsTaskInputValueUsageContextUnion() {} -func (ResearchStudyType) IsResearchStudySiteUnion() {} +func (ResearchStudyType) IsTaskOutputValueUsageContextUnion() {} func (ResearchStudyType) IsExtensionValueUsageContextUnion() {} -func (ResearchStudyType) IsTaskOutputValueUsageContextUnion() {} +func (ResearchStudyType) IsUsageContextValueReferenceUnion() {} func (ResearchStudyType) IsResourceUnion() {} type ResearchSubjectProgress struct { - EndDate *string `json:"endDate,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + SubjectState *CodeableConcept `json:"subjectState,omitempty"` + ID *string `json:"id,omitempty"` + Milestone *CodeableConcept `json:"milestone,omitempty"` + Reason *CodeableConcept `json:"reason,omitempty"` + StartDate *string `json:"startDate,omitempty"` Type *CodeableConcept `json:"type,omitempty"` Extension []*Extension `json:"extension,omitempty"` - Milestone *CodeableConcept `json:"milestone,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - Reason *CodeableConcept `json:"reason,omitempty"` - StartDate *string `json:"startDate,omitempty"` - SubjectState *CodeableConcept `json:"subjectState,omitempty"` - ID *string `json:"id,omitempty"` + EndDate *string `json:"endDate,omitempty"` } type ResearchSubjectType struct { - Subject []ResearchSubjectSubjectUnion `json:"subject,omitempty"` - Text *Narrative `json:"text,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Status *string `json:"status,omitempty"` - ID *string `json:"id,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Progress []*ResearchSubjectProgress `json:"progress,omitempty"` - ActualComparisonGroup *string `json:"actualComparisonGroup,omitempty"` - Language *string `json:"language,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Study []*ResearchStudyType `json:"study,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Period *Period `json:"period,omitempty"` - AssignedComparisonGroup *string `json:"assignedComparisonGroup,omitempty"` + Study *ResearchStudyType `json:"study"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Status *string `json:"status,omitempty"` + Meta *Meta `json:"meta,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Language *string `json:"language,omitempty"` + Text *Narrative `json:"text,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ActualComparisonGroup *string `json:"actualComparisonGroup,omitempty"` + AssignedComparisonGroup *string `json:"assignedComparisonGroup,omitempty"` + Progress []*ResearchSubjectProgress `json:"progress,omitempty"` + Period *Period `json:"period,omitempty"` + Subject ResearchSubjectSubjectUnion `json:"subject"` + ID *string `json:"id,omitempty"` } func (ResearchSubjectType) IsResourceUnion() {} type SampledData struct { - ResourceType *string `json:"resourceType,omitempty"` - Origin *Quantity `json:"origin,omitempty"` - CodeMap *string `json:"codeMap,omitempty"` IntervalUnit *string `json:"intervalUnit,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` LowerLimit *string `json:"lowerLimit,omitempty"` - UpperLimit *string `json:"upperLimit,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + Factor *string `json:"factor,omitempty"` ID *string `json:"id,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + UpperLimit *string `json:"upperLimit,omitempty"` Dimensions *string `json:"dimensions,omitempty"` - Factor *string `json:"factor,omitempty"` Interval *string `json:"interval,omitempty"` Offsets *string `json:"offsets,omitempty"` + Origin *Quantity `json:"origin,omitempty"` + CodeMap *string `json:"codeMap,omitempty"` Data *string `json:"data,omitempty"` } type Signature struct { - Who []SignatureWhoUnion `json:"who,omitempty"` - Data *string `json:"data,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - SigFormat *string `json:"sigFormat,omitempty"` - ID *string `json:"id,omitempty"` - When *string `json:"when,omitempty"` - OnBehalfOf []SignatureOnBehalfOfUnion `json:"onBehalfOf,omitempty"` - Type []*Coding `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - TargetFormat *string `json:"targetFormat,omitempty"` + TargetFormat *string `json:"targetFormat,omitempty"` + When *string `json:"when,omitempty"` + OnBehalfOf SignatureOnBehalfOfUnion `json:"onBehalfOf"` + Type []*Coding `json:"type,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + SigFormat *string `json:"sigFormat,omitempty"` + Data *string `json:"data,omitempty"` + ID *string `json:"id,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Who SignatureWhoUnion `json:"who"` } type SpecimenCollection struct { - Extension []*Extension `json:"extension,omitempty"` - Method *CodeableConcept `json:"method,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Quantity *Quantity `json:"quantity,omitempty"` - BodySite *CodeableReference `json:"bodySite,omitempty"` - Collector []SpecimenCollectionCollectorUnion `json:"collector,omitempty"` - FastingStatusCodeableConcept *CodeableConcept `json:"fastingStatusCodeableConcept,omitempty"` - CollectedPeriod *Period `json:"collectedPeriod,omitempty"` - FastingStatusDuration *Duration `json:"fastingStatusDuration,omitempty"` - Procedure []*ProcedureType `json:"procedure,omitempty"` - Device *CodeableReference `json:"device,omitempty"` - CollectedDateTime *string `json:"collectedDateTime,omitempty"` - Duration *Duration `json:"duration,omitempty"` - ID *string `json:"id,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + FastingStatusDuration *Duration `json:"fastingStatusDuration,omitempty"` + Collector SpecimenCollectionCollectorUnion `json:"collector"` + FastingStatusCodeableConcept *CodeableConcept `json:"fastingStatusCodeableConcept,omitempty"` + Procedure *ProcedureType `json:"procedure"` + ResourceType *string `json:"resourceType,omitempty"` + ID *string `json:"id,omitempty"` + Quantity *Quantity `json:"quantity,omitempty"` + BodySite *CodeableReference `json:"bodySite,omitempty"` + CollectedDateTime *string `json:"collectedDateTime,omitempty"` + CollectedPeriod *Period `json:"collectedPeriod,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Method *CodeableConcept `json:"method,omitempty"` + Device *CodeableReference `json:"device,omitempty"` + Duration *Duration `json:"duration,omitempty"` } type SpecimenContainer struct { + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` SpecimenQuantity *Quantity `json:"specimenQuantity,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` } type SpecimenFeature struct { + Description *string `json:"description,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Type *CodeableConcept `json:"type,omitempty"` - Description *string `json:"description,omitempty"` } type SpecimenProcessing struct { - TimePeriod *Period `json:"timePeriod,omitempty"` - Additive []*SubstanceType `json:"additive,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Extension []*Extension `json:"extension,omitempty"` Description *string `json:"description,omitempty"` - ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Additive *SubstanceType `json:"additive"` Method *CodeableConcept `json:"method,omitempty"` TimeDateTime *string `json:"timeDateTime,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + TimePeriod *Period `json:"timePeriod,omitempty"` } type SpecimenType struct { - Identifier []*Identifier `json:"identifier,omitempty"` - Text *Narrative `json:"text,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Combined *string `json:"combined,omitempty"` - Role []*CodeableConcept `json:"role,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ID *string `json:"id,omitempty"` - Parent []*SpecimenType `json:"parent,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Status *string `json:"status,omitempty"` - Condition []*CodeableConcept `json:"condition,omitempty"` - Meta *Meta `json:"meta,omitempty"` - ReceivedTime *string `json:"receivedTime,omitempty"` - Feature []*SpecimenFeature `json:"feature,omitempty"` - Collection []SpecimenCollectionUnion `json:"collection,omitempty"` - Subject []SpecimenSubjectUnion `json:"subject,omitempty"` - AccessionIdentifier *Identifier `json:"accessionIdentifier,omitempty"` - Container []*SpecimenContainer `json:"container,omitempty"` - Language *string `json:"language,omitempty"` - Processing []*SpecimenProcessing `json:"processing,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Note []SpecimenNoteUnion `json:"note,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Subject SpecimenSubjectUnion `json:"subject"` + Combined *string `json:"combined,omitempty"` + AccessionIdentifier *Identifier `json:"accessionIdentifier,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + Text *Narrative `json:"text,omitempty"` + Container []*SpecimenContainer `json:"container,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Parent *SpecimenType `json:"parent"` + Meta *Meta `json:"meta,omitempty"` + Condition []*CodeableConcept `json:"condition,omitempty"` + Feature []*SpecimenFeature `json:"feature,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + ID *string `json:"id,omitempty"` + Processing []*SpecimenProcessing `json:"processing,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Collection SpecimenCollectionUnion `json:"collection"` + ReceivedTime *string `json:"receivedTime,omitempty"` + Role []*CodeableConcept `json:"role,omitempty"` + Language *string `json:"language,omitempty"` + Note SpecimenNoteUnion `json:"note"` + Status *string `json:"status,omitempty"` } +func (SpecimenType) IsResearchSubjectSubjectUnion() {} + func (SpecimenType) IsGroupMemberUnion() {} func (SpecimenType) IsGroupMemberEntityUnion() {} -func (SpecimenType) IsObservationSpecimenUnion() {} - func (SpecimenType) IsProcedureFocusUnion() {} -func (SpecimenType) IsResearchSubjectSubjectUnion() {} +func (SpecimenType) IsObservationSpecimenUnion() {} func (SpecimenType) IsResourceUnion() {} @@ -3011,392 +3011,392 @@ type SubstanceDefinitionCharacterization struct { } type SubstanceDefinitionCode struct { - Source []*DocumentReferenceType `json:"source,omitempty"` - Status *CodeableConcept `json:"status,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - StatusDate *string `json:"statusDate,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Note []SubstanceDefinitionCodeNoteUnion `json:"note,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - ID *string `json:"id,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + Note SubstanceDefinitionCodeNoteUnion `json:"note"` + StatusDate *string `json:"statusDate,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Source *DocumentReferenceType `json:"source"` + Status *CodeableConcept `json:"status,omitempty"` } type SubstanceDefinitionMoiety struct { - MeasurementType *CodeableConcept `json:"measurementType,omitempty"` - Name *string `json:"name,omitempty"` AmountString *string `json:"amountString,omitempty"` + Stereochemistry *CodeableConcept `json:"stereochemistry,omitempty"` Extension []*Extension `json:"extension,omitempty"` Identifier *Identifier `json:"identifier,omitempty"` - MolecularFormula *string `json:"molecularFormula,omitempty"` - OpticalActivity *CodeableConcept `json:"opticalActivity,omitempty"` - Stereochemistry *CodeableConcept `json:"stereochemistry,omitempty"` + Name *string `json:"name,omitempty"` Role *CodeableConcept `json:"role,omitempty"` ID *string `json:"id,omitempty"` + MeasurementType *CodeableConcept `json:"measurementType,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` + MolecularFormula *string `json:"molecularFormula,omitempty"` AmountQuantity *Quantity `json:"amountQuantity,omitempty"` + OpticalActivity *CodeableConcept `json:"opticalActivity,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` } type SubstanceDefinitionMolecularWeight struct { - ID *string `json:"id,omitempty"` - Method *CodeableConcept `json:"method,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Type *CodeableConcept `json:"type,omitempty"` Amount *Quantity `json:"amount,omitempty"` Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Method *CodeableConcept `json:"method,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type SubstanceDefinitionName struct { - Status *CodeableConcept `json:"status,omitempty"` - Synonym []*SubstanceDefinitionName `json:"synonym,omitempty"` + ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Translation []*SubstanceDefinitionName `json:"translation,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` - Official []*SubstanceDefinitionNameOfficial `json:"official,omitempty"` Name *string `json:"name,omitempty"` - ID *string `json:"id,omitempty"` - Language []*CodeableConcept `json:"language,omitempty"` - Domain []*CodeableConcept `json:"domain,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Jurisdiction []*CodeableConcept `json:"jurisdiction,omitempty"` + Source *DocumentReferenceType `json:"source"` Preferred *string `json:"preferred,omitempty"` - Source []*DocumentReferenceType `json:"source,omitempty"` + Translation []*SubstanceDefinitionName `json:"translation,omitempty"` + Jurisdiction []*CodeableConcept `json:"jurisdiction,omitempty"` ResourceType *string `json:"resourceType,omitempty"` + Domain []*CodeableConcept `json:"domain,omitempty"` + Official []*SubstanceDefinitionNameOfficial `json:"official,omitempty"` + Synonym []*SubstanceDefinitionName `json:"synonym,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + Language []*CodeableConcept `json:"language,omitempty"` + Status *CodeableConcept `json:"status,omitempty"` } type SubstanceDefinitionNameOfficial struct { + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Status *CodeableConcept `json:"status,omitempty"` Authority *CodeableConcept `json:"authority,omitempty"` Date *string `json:"date,omitempty"` Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` } type SubstanceDefinitionProperty struct { Extension []*Extension `json:"extension,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ValueAttachment *Attachment `json:"valueAttachment,omitempty"` - ValueQuantity *Quantity `json:"valueQuantity,omitempty"` - ID *string `json:"id,omitempty"` + ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + ValueDate *string `json:"valueDate,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Type *CodeableConcept `json:"type,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + ID *string `json:"id,omitempty"` ValueBoolean *string `json:"valueBoolean,omitempty"` - ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` - ValueDate *string `json:"valueDate,omitempty"` } type SubstanceDefinitionRelationship struct { - SubstanceDefinitionReference []*SubstanceDefinitionType `json:"substanceDefinitionReference,omitempty"` - AmountQuantity *Quantity `json:"amountQuantity,omitempty"` - AmountRatio *Ratio `json:"amountRatio,omitempty"` - ID *string `json:"id,omitempty"` - RatioHighLimitAmount *Ratio `json:"ratioHighLimitAmount,omitempty"` - Source []*DocumentReferenceType `json:"source,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - AmountString *string `json:"amountString,omitempty"` - IsDefining *string `json:"isDefining,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Comparator *CodeableConcept `json:"comparator,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - SubstanceDefinitionCodeableConcept *CodeableConcept `json:"substanceDefinitionCodeableConcept,omitempty"` + IsDefining *string `json:"isDefining,omitempty"` + SubstanceDefinitionCodeableConcept *CodeableConcept `json:"substanceDefinitionCodeableConcept,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + AmountQuantity *Quantity `json:"amountQuantity,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + AmountString *string `json:"amountString,omitempty"` + Source *DocumentReferenceType `json:"source"` + Comparator *CodeableConcept `json:"comparator,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + RatioHighLimitAmount *Ratio `json:"ratioHighLimitAmount,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + SubstanceDefinitionReference *SubstanceDefinitionType `json:"substanceDefinitionReference"` + AmountRatio *Ratio `json:"amountRatio,omitempty"` } type SubstanceDefinitionSourceMaterial struct { - Genus *CodeableConcept `json:"genus,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - CountryOfOrigin []*CodeableConcept `json:"countryOfOrigin,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Genus *CodeableConcept `json:"genus,omitempty"` ID *string `json:"id,omitempty"` Species *CodeableConcept `json:"species,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + CountryOfOrigin []*CodeableConcept `json:"countryOfOrigin,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Part *CodeableConcept `json:"part,omitempty"` } type SubstanceDefinitionStructure struct { - SourceDocument []*DocumentReferenceType `json:"sourceDocument,omitempty"` + Stereochemistry *CodeableConcept `json:"stereochemistry,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - MolecularFormula *string `json:"molecularFormula,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - ID *string `json:"id,omitempty"` - Stereochemistry *CodeableConcept `json:"stereochemistry,omitempty"` Technique []*CodeableConcept `json:"technique,omitempty"` - OpticalActivity *CodeableConcept `json:"opticalActivity,omitempty"` - MolecularFormulaByMoiety *string `json:"molecularFormulaByMoiety,omitempty"` MolecularWeight *SubstanceDefinitionMolecularWeight `json:"molecularWeight,omitempty"` - Representation []*SubstanceDefinitionStructureRepresentation `json:"representation,omitempty"` + OpticalActivity *CodeableConcept `json:"opticalActivity,omitempty"` + SourceDocument *DocumentReferenceType `json:"sourceDocument"` Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + MolecularFormula *string `json:"molecularFormula,omitempty"` + Representation []*SubstanceDefinitionStructureRepresentation `json:"representation,omitempty"` + MolecularFormulaByMoiety *string `json:"molecularFormulaByMoiety,omitempty"` } type SubstanceDefinitionStructureRepresentation struct { - Document []*DocumentReferenceType `json:"document,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Format *CodeableConcept `json:"format,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Representation *string `json:"representation,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` + Document *DocumentReferenceType `json:"document"` + Extension []*Extension `json:"extension,omitempty"` + Format *CodeableConcept `json:"format,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Representation *string `json:"representation,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` } type SubstanceDefinitionType struct { - Text *Narrative `json:"text,omitempty"` - Moiety []*SubstanceDefinitionMoiety `json:"moiety,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Characterization []*SubstanceDefinitionCharacterization `json:"characterization,omitempty"` - Supplier []*OrganizationType `json:"supplier,omitempty"` - Note []SubstanceDefinitionNoteUnion `json:"note,omitempty"` - Description *string `json:"description,omitempty"` - Structure *SubstanceDefinitionStructure `json:"structure,omitempty"` - ID *string `json:"id,omitempty"` - Language *string `json:"language,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - Domain *CodeableConcept `json:"domain,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` Version *string `json:"version,omitempty"` - Relationship []*SubstanceDefinitionRelationship `json:"relationship,omitempty"` - Manufacturer []*OrganizationType `json:"manufacturer,omitempty"` - Grade []*CodeableConcept `json:"grade,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Name []*SubstanceDefinitionName `json:"name,omitempty"` - Status *CodeableConcept `json:"status,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Manufacturer *OrganizationType `json:"manufacturer"` + ID *string `json:"id,omitempty"` Meta *Meta `json:"meta,omitempty"` - MolecularWeight []*SubstanceDefinitionMolecularWeight `json:"molecularWeight,omitempty"` - SourceMaterial *SubstanceDefinitionSourceMaterial `json:"sourceMaterial,omitempty"` Classification []*CodeableConcept `json:"classification,omitempty"` Code []*SubstanceDefinitionCode `json:"code,omitempty"` + Characterization []*SubstanceDefinitionCharacterization `json:"characterization,omitempty"` + Supplier *OrganizationType `json:"supplier"` + ResourceType *string `json:"resourceType,omitempty"` + SourceMaterial *SubstanceDefinitionSourceMaterial `json:"sourceMaterial,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Status *CodeableConcept `json:"status,omitempty"` Property []*SubstanceDefinitionProperty `json:"property,omitempty"` + Language *string `json:"language,omitempty"` + Name []*SubstanceDefinitionName `json:"name,omitempty"` + Structure *SubstanceDefinitionStructure `json:"structure,omitempty"` + Description *string `json:"description,omitempty"` + Text *Narrative `json:"text,omitempty"` + MolecularWeight []*SubstanceDefinitionMolecularWeight `json:"molecularWeight,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Relationship []*SubstanceDefinitionRelationship `json:"relationship,omitempty"` + Domain *CodeableConcept `json:"domain,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Moiety []*SubstanceDefinitionMoiety `json:"moiety,omitempty"` + Note SubstanceDefinitionNoteUnion `json:"note"` + Grade []*CodeableConcept `json:"grade,omitempty"` } func (SubstanceDefinitionType) IsResourceUnion() {} type SubstanceIngredient struct { - SubstanceReference []*SubstanceType `json:"substanceReference,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + SubstanceCodeableConcept *CodeableConcept `json:"substanceCodeableConcept,omitempty"` + SubstanceReference *SubstanceType `json:"substanceReference"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` Quantity *Ratio `json:"quantity,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - SubstanceCodeableConcept *CodeableConcept `json:"substanceCodeableConcept,omitempty"` } type SubstanceType struct { - ID *string `json:"id,omitempty"` - Language *string `json:"language,omitempty"` - Ingredient []*SubstanceIngredient `json:"ingredient,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` + Status *string `json:"status,omitempty"` + Quantity *Quantity `json:"quantity,omitempty"` + Text *Narrative `json:"text,omitempty"` Identifier []*Identifier `json:"identifier,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` + Language *string `json:"language,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Instance *string `json:"instance,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` Expiry *string `json:"expiry,omitempty"` - Description *string `json:"description,omitempty"` - Status *string `json:"status,omitempty"` + Ingredient []*SubstanceIngredient `json:"ingredient,omitempty"` Meta *Meta `json:"meta,omitempty"` Code *CodeableReference `json:"code,omitempty"` + Description *string `json:"description,omitempty"` Extension []*Extension `json:"extension,omitempty"` - Quantity *Quantity `json:"quantity,omitempty"` - Text *Narrative `json:"text,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + ID *string `json:"id,omitempty"` } -func (SubstanceType) IsSpecimenSubjectUnion() {} - -func (SubstanceType) IsObservationSubjectUnion() {} - func (SubstanceType) IsResearchSubjectSubjectUnion() {} +func (SubstanceType) IsSpecimenSubjectUnion() {} + func (SubstanceType) IsDiagnosticReportSubjectUnion() {} +func (SubstanceType) IsObservationSubjectUnion() {} + func (SubstanceType) IsResourceUnion() {} type TaskInput struct { - ValueAddress *Address `json:"valueAddress,omitempty"` - ValueURL *string `json:"valueUrl,omitempty"` - ValueDosage *Dosage `json:"valueDosage,omitempty"` - ValueRelatedArtifact *RelatedArtifact `json:"valueRelatedArtifact,omitempty"` - ValueDateTime *string `json:"valueDateTime,omitempty"` - ValueExpression *Expression `json:"valueExpression,omitempty"` - ValueCanonical *string `json:"valueCanonical,omitempty"` - ValueContactPoint *ContactPoint `json:"valueContactPoint,omitempty"` - ValueUnsignedInt *string `json:"valueUnsignedInt,omitempty"` - ValueInstant *string `json:"valueInstant,omitempty"` - ValueMoney *Money `json:"valueMoney,omitempty"` - ValueParameterDefinition *ParameterDefinition `json:"valueParameterDefinition,omitempty"` - ValueUUID *string `json:"valueUuid,omitempty"` - ValueAttachment *Attachment `json:"valueAttachment,omitempty"` - ValueUsageContext []TaskInputValueUsageContextUnion `json:"valueUsageContext,omitempty"` - ValueTime *string `json:"valueTime,omitempty"` - ValueURI *string `json:"valueUri,omitempty"` - ValueSignature []TaskInputValueSignatureUnion `json:"valueSignature,omitempty"` - ValueQuantity *Quantity `json:"valueQuantity,omitempty"` - ValueContactDetail *ContactDetail `json:"valueContactDetail,omitempty"` - ValueMeta *Meta `json:"valueMeta,omitempty"` - ValueCode *string `json:"valueCode,omitempty"` - ValueTriggerDefinition *TriggerDefinition `json:"valueTriggerDefinition,omitempty"` - ValueOid *string `json:"valueOid,omitempty"` - ValueInteger64 *string `json:"valueInteger64,omitempty"` - ValueDataRequirement *DataRequirement `json:"valueDataRequirement,omitempty"` - ValueBoolean *string `json:"valueBoolean,omitempty"` - ValueCoding *Coding `json:"valueCoding,omitempty"` - ValueDecimal *string `json:"valueDecimal,omitempty"` - ValueAnnotation []TaskInputValueAnnotationUnion `json:"valueAnnotation,omitempty"` - ValueCount *Count `json:"valueCount,omitempty"` - ValueBase64Binary *string `json:"valueBase64Binary,omitempty"` - ValueCodeableReference *CodeableReference `json:"valueCodeableReference,omitempty"` - ValueDistance *Distance `json:"valueDistance,omitempty"` - ValueHumanName *HumanName `json:"valueHumanName,omitempty"` - ValueID *string `json:"valueId,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ValueRatio *Ratio `json:"valueRatio,omitempty"` - ValueExtendedContactDetail *ExtendedContactDetail `json:"valueExtendedContactDetail,omitempty"` - ValueRatioRange *RatioRange `json:"valueRatioRange,omitempty"` - ValueMarkdown *string `json:"valueMarkdown,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` - ID *string `json:"id,omitempty"` - ValueSampledData *SampledData `json:"valueSampledData,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ValueTiming *Timing `json:"valueTiming,omitempty"` - ValueIdentifier *Identifier `json:"valueIdentifier,omitempty"` - ValuePositiveInt *string `json:"valuePositiveInt,omitempty"` - ValueAvailability *Availability `json:"valueAvailability,omitempty"` - ValueDuration *Duration `json:"valueDuration,omitempty"` - ValueString *string `json:"valueString,omitempty"` - ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` - ValueAge *Age `json:"valueAge,omitempty"` - ValueDate *string `json:"valueDate,omitempty"` - ValuePeriod *Period `json:"valuePeriod,omitempty"` - ValueInteger *string `json:"valueInteger,omitempty"` - ValueRange *Range `json:"valueRange,omitempty"` + ValueBase64Binary *string `json:"valueBase64Binary,omitempty"` + ValueCode *string `json:"valueCode,omitempty"` + ValueTriggerDefinition *TriggerDefinition `json:"valueTriggerDefinition,omitempty"` + ValueUsageContext TaskInputValueUsageContextUnion `json:"valueUsageContext"` + ValueDataRequirement *DataRequirement `json:"valueDataRequirement,omitempty"` + ValueUUID *string `json:"valueUuid,omitempty"` + ValueOid *string `json:"valueOid,omitempty"` + ValueRatio *Ratio `json:"valueRatio,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + ValueCodeableReference *CodeableReference `json:"valueCodeableReference,omitempty"` + ValueID *string `json:"valueId,omitempty"` + ValueInstant *string `json:"valueInstant,omitempty"` + ValueHumanName *HumanName `json:"valueHumanName,omitempty"` + ValueMoney *Money `json:"valueMoney,omitempty"` + ValueSignature TaskInputValueSignatureUnion `json:"valueSignature"` + ValueAvailability *Availability `json:"valueAvailability,omitempty"` + ValueUnsignedInt *string `json:"valueUnsignedInt,omitempty"` + ValueMarkdown *string `json:"valueMarkdown,omitempty"` + ValueString *string `json:"valueString,omitempty"` + ValueSampledData *SampledData `json:"valueSampledData,omitempty"` + ValueDistance *Distance `json:"valueDistance,omitempty"` + ValueAge *Age `json:"valueAge,omitempty"` + ValueTime *string `json:"valueTime,omitempty"` + ValueRange *Range `json:"valueRange,omitempty"` + ValueAnnotation TaskInputValueAnnotationUnion `json:"valueAnnotation"` + ValueURL *string `json:"valueUrl,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ValueInteger64 *string `json:"valueInteger64,omitempty"` + ValueAttachment *Attachment `json:"valueAttachment,omitempty"` + ValueInteger *string `json:"valueInteger,omitempty"` + ValueDosage *Dosage `json:"valueDosage,omitempty"` + ValueExpression *Expression `json:"valueExpression,omitempty"` + ValueContactPoint *ContactPoint `json:"valueContactPoint,omitempty"` + ValueMeta *Meta `json:"valueMeta,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ValueDate *string `json:"valueDate,omitempty"` + ValueDateTime *string `json:"valueDateTime,omitempty"` + ValueExtendedContactDetail *ExtendedContactDetail `json:"valueExtendedContactDetail,omitempty"` + ValueRatioRange *RatioRange `json:"valueRatioRange,omitempty"` + ValueAddress *Address `json:"valueAddress,omitempty"` + ID *string `json:"id,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + ValueTiming *Timing `json:"valueTiming,omitempty"` + ValuePositiveInt *string `json:"valuePositiveInt,omitempty"` + ValuePeriod *Period `json:"valuePeriod,omitempty"` + ValueCount *Count `json:"valueCount,omitempty"` + ValueDuration *Duration `json:"valueDuration,omitempty"` + ValueCanonical *string `json:"valueCanonical,omitempty"` + ValueParameterDefinition *ParameterDefinition `json:"valueParameterDefinition,omitempty"` + ValueRelatedArtifact *RelatedArtifact `json:"valueRelatedArtifact,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ValueContactDetail *ContactDetail `json:"valueContactDetail,omitempty"` + ValueURI *string `json:"valueUri,omitempty"` + ValueDecimal *string `json:"valueDecimal,omitempty"` + ValueBoolean *string `json:"valueBoolean,omitempty"` + ValueIdentifier *Identifier `json:"valueIdentifier,omitempty"` + ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + ValueCoding *Coding `json:"valueCoding,omitempty"` } type TaskOutput struct { - ValuePeriod *Period `json:"valuePeriod,omitempty"` - ID *string `json:"id,omitempty"` - ValueString *string `json:"valueString,omitempty"` - ValueOid *string `json:"valueOid,omitempty"` - ValueRatio *Ratio `json:"valueRatio,omitempty"` - ValueAge *Age `json:"valueAge,omitempty"` - ValueSampledData *SampledData `json:"valueSampledData,omitempty"` - ValueBase64Binary *string `json:"valueBase64Binary,omitempty"` - ValueMeta *Meta `json:"valueMeta,omitempty"` - ValueSignature []TaskOutputValueSignatureUnion `json:"valueSignature,omitempty"` - ValueTime *string `json:"valueTime,omitempty"` - ValueDistance *Distance `json:"valueDistance,omitempty"` - ValueDate *string `json:"valueDate,omitempty"` - ValueTiming *Timing `json:"valueTiming,omitempty"` - ValueAnnotation []TaskOutputValueAnnotationUnion `json:"valueAnnotation,omitempty"` - ValueCanonical *string `json:"valueCanonical,omitempty"` - ValueMarkdown *string `json:"valueMarkdown,omitempty"` - ValueURL *string `json:"valueUrl,omitempty"` - ValueContactDetail *ContactDetail `json:"valueContactDetail,omitempty"` - ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` - ValueUUID *string `json:"valueUuid,omitempty"` - ValueInstant *string `json:"valueInstant,omitempty"` - ValueExpression *Expression `json:"valueExpression,omitempty"` - ValueUnsignedInt *string `json:"valueUnsignedInt,omitempty"` - Type *CodeableConcept `json:"type,omitempty"` - ValueParameterDefinition *ParameterDefinition `json:"valueParameterDefinition,omitempty"` - ValueMoney *Money `json:"valueMoney,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ValueExtendedContactDetail *ExtendedContactDetail `json:"valueExtendedContactDetail,omitempty"` - ValueCode *string `json:"valueCode,omitempty"` - ValueIdentifier *Identifier `json:"valueIdentifier,omitempty"` - ValueHumanName *HumanName `json:"valueHumanName,omitempty"` - ValueDuration *Duration `json:"valueDuration,omitempty"` - ValueInteger64 *string `json:"valueInteger64,omitempty"` - ValueURI *string `json:"valueUri,omitempty"` - ValueContactPoint *ContactPoint `json:"valueContactPoint,omitempty"` - ValueCount *Count `json:"valueCount,omitempty"` - ValueCodeableReference *CodeableReference `json:"valueCodeableReference,omitempty"` - ValueRelatedArtifact *RelatedArtifact `json:"valueRelatedArtifact,omitempty"` - ValueID *string `json:"valueId,omitempty"` - ValueDosage *Dosage `json:"valueDosage,omitempty"` - ValueBoolean *string `json:"valueBoolean,omitempty"` - ValueAttachment *Attachment `json:"valueAttachment,omitempty"` - ValueTriggerDefinition *TriggerDefinition `json:"valueTriggerDefinition,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ValuePositiveInt *string `json:"valuePositiveInt,omitempty"` - ValueRange *Range `json:"valueRange,omitempty"` - ValueAddress *Address `json:"valueAddress,omitempty"` - ValueInteger *string `json:"valueInteger,omitempty"` - ValueAvailability *Availability `json:"valueAvailability,omitempty"` - ValueUsageContext []TaskOutputValueUsageContextUnion `json:"valueUsageContext,omitempty"` - ValueDateTime *string `json:"valueDateTime,omitempty"` - ValueDataRequirement *DataRequirement `json:"valueDataRequirement,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ValueCoding *Coding `json:"valueCoding,omitempty"` - ValueRatioRange *RatioRange `json:"valueRatioRange,omitempty"` - ValueDecimal *string `json:"valueDecimal,omitempty"` - ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + ValueIdentifier *Identifier `json:"valueIdentifier,omitempty"` + ValueRange *Range `json:"valueRange,omitempty"` + ValueURI *string `json:"valueUri,omitempty"` + ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + ValueContactDetail *ContactDetail `json:"valueContactDetail,omitempty"` + ValueInstant *string `json:"valueInstant,omitempty"` + ValueDuration *Duration `json:"valueDuration,omitempty"` + ID *string `json:"id,omitempty"` + ValueTime *string `json:"valueTime,omitempty"` + ValueMoney *Money `json:"valueMoney,omitempty"` + ValueRatioRange *RatioRange `json:"valueRatioRange,omitempty"` + ValueInteger *string `json:"valueInteger,omitempty"` + ValueDate *string `json:"valueDate,omitempty"` + ValueCount *Count `json:"valueCount,omitempty"` + ValueCodeableReference *CodeableReference `json:"valueCodeableReference,omitempty"` + ValueBoolean *string `json:"valueBoolean,omitempty"` + ValuePositiveInt *string `json:"valuePositiveInt,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ValueDateTime *string `json:"valueDateTime,omitempty"` + ValueUnsignedInt *string `json:"valueUnsignedInt,omitempty"` + ValueAddress *Address `json:"valueAddress,omitempty"` + ValueTriggerDefinition *TriggerDefinition `json:"valueTriggerDefinition,omitempty"` + ValueDataRequirement *DataRequirement `json:"valueDataRequirement,omitempty"` + ValueParameterDefinition *ParameterDefinition `json:"valueParameterDefinition,omitempty"` + ValueMeta *Meta `json:"valueMeta,omitempty"` + ValueCode *string `json:"valueCode,omitempty"` + ValueExpression *Expression `json:"valueExpression,omitempty"` + ValueSampledData *SampledData `json:"valueSampledData,omitempty"` + ValueMarkdown *string `json:"valueMarkdown,omitempty"` + ValueDecimal *string `json:"valueDecimal,omitempty"` + ValueURL *string `json:"valueUrl,omitempty"` + ValueHumanName *HumanName `json:"valueHumanName,omitempty"` + ValueRelatedArtifact *RelatedArtifact `json:"valueRelatedArtifact,omitempty"` + ValueInteger64 *string `json:"valueInteger64,omitempty"` + ValueAnnotation TaskOutputValueAnnotationUnion `json:"valueAnnotation"` + ValueUsageContext TaskOutputValueUsageContextUnion `json:"valueUsageContext"` + ValueDosage *Dosage `json:"valueDosage,omitempty"` + ValueDistance *Distance `json:"valueDistance,omitempty"` + ValueAge *Age `json:"valueAge,omitempty"` + ValueRatio *Ratio `json:"valueRatio,omitempty"` + ValueOid *string `json:"valueOid,omitempty"` + ValueExtendedContactDetail *ExtendedContactDetail `json:"valueExtendedContactDetail,omitempty"` + ValueBase64Binary *string `json:"valueBase64Binary,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ValueContactPoint *ContactPoint `json:"valueContactPoint,omitempty"` + ValueSignature TaskOutputValueSignatureUnion `json:"valueSignature"` + ValueAvailability *Availability `json:"valueAvailability,omitempty"` + ValuePeriod *Period `json:"valuePeriod,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + ValueCoding *Coding `json:"valueCoding,omitempty"` + ValueTiming *Timing `json:"valueTiming,omitempty"` + ValueCanonical *string `json:"valueCanonical,omitempty"` + ValueAttachment *Attachment `json:"valueAttachment,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ValueString *string `json:"valueString,omitempty"` + ValueUUID *string `json:"valueUuid,omitempty"` + ValueID *string `json:"valueId,omitempty"` } type TaskPerformer struct { - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Actor []TaskPerformerActorUnion `json:"actor,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Function *CodeableConcept `json:"function,omitempty"` + Actor TaskPerformerActorUnion `json:"actor"` + Extension []*Extension `json:"extension,omitempty"` + Function *CodeableConcept `json:"function,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` } type TaskRestriction struct { - ResourceType *string `json:"resourceType,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Period *Period `json:"period,omitempty"` - Recipient []TaskRestrictionRecipientUnion `json:"recipient,omitempty"` - Repetitions *string `json:"repetitions,omitempty"` + Repetitions *string `json:"repetitions,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Period *Period `json:"period,omitempty"` + Recipient TaskRestrictionRecipientUnion `json:"recipient"` } type TaskType struct { - Input []*TaskInput `json:"input,omitempty"` - BasedOn []ResourceUnion `json:"basedOn,omitempty"` - Output []*TaskOutput `json:"output,omitempty"` - LastModified *string `json:"lastModified,omitempty"` - AuthoredOn *string `json:"authoredOn,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - Requester []TaskRequesterUnion `json:"requester,omitempty"` - Intent *string `json:"intent,omitempty"` - PartOf []*TaskType `json:"partOf,omitempty"` - BusinessStatus *CodeableConcept `json:"businessStatus,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - InstantiatesURI *string `json:"instantiatesUri,omitempty"` - InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` - Reason []*CodeableReference `json:"reason,omitempty"` - Contained []ResourceUnion `json:"contained,omitempty"` - RequestedPeriod *Period `json:"requestedPeriod,omitempty"` - GroupIdentifier *Identifier `json:"groupIdentifier,omitempty"` - Priority *string `json:"priority,omitempty"` - Text *Narrative `json:"text,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - Description *string `json:"description,omitempty"` - Performer []TaskPerformerUnion `json:"performer,omitempty"` - ID *string `json:"id,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Restriction []TaskRestrictionUnion `json:"restriction,omitempty"` - Note []TaskNoteUnion `json:"note,omitempty"` - ExecutionPeriod *Period `json:"executionPeriod,omitempty"` - Language *string `json:"language,omitempty"` - RequestedPerformer []*CodeableReference `json:"requestedPerformer,omitempty"` - Status *string `json:"status,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - Focus ResourceUnion `json:"focus,omitempty"` - Owner []TaskOwnerUnion `json:"owner,omitempty"` - StatusReason *CodeableReference `json:"statusReason,omitempty"` - DoNotPerform *string `json:"doNotPerform,omitempty"` + InstantiatesURI *string `json:"instantiatesUri,omitempty"` + Owner TaskOwnerUnion `json:"owner"` + ID *string `json:"id,omitempty"` + Intent *string `json:"intent,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + RequestedPeriod *Period `json:"requestedPeriod,omitempty"` + Restriction TaskRestrictionUnion `json:"restriction"` + AuthoredOn *string `json:"authoredOn,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Note TaskNoteUnion `json:"note"` + DoNotPerform *string `json:"doNotPerform,omitempty"` + Text *Narrative `json:"text,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Language *string `json:"language,omitempty"` + Output []*TaskOutput `json:"output,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` + Status *string `json:"status,omitempty"` + BusinessStatus *CodeableConcept `json:"businessStatus,omitempty"` + ExecutionPeriod *Period `json:"executionPeriod,omitempty"` + Meta *Meta `json:"meta,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + BasedOn ResourceUnion `json:"basedOn"` + PartOf *TaskType `json:"partOf"` + StatusReason *CodeableReference `json:"statusReason,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Performer TaskPerformerUnion `json:"performer"` + Input []*TaskInput `json:"input,omitempty"` + Requester TaskRequesterUnion `json:"requester"` + Description *string `json:"description,omitempty"` + GroupIdentifier *Identifier `json:"groupIdentifier,omitempty"` + Focus ResourceUnion `json:"focus"` + Priority *string `json:"priority,omitempty"` + LastModified *string `json:"lastModified,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + RequestedPerformer []*CodeableReference `json:"requestedPerformer,omitempty"` + Reason []*CodeableReference `json:"reason,omitempty"` } func (TaskType) IsImagingStudyBasedOnUnion() {} @@ -3404,76 +3404,76 @@ func (TaskType) IsImagingStudyBasedOnUnion() {} func (TaskType) IsResourceUnion() {} type Timing struct { - Repeat *TimingRepeat `json:"repeat,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` Code *CodeableConcept `json:"code,omitempty"` Event *string `json:"event,omitempty"` Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Repeat *TimingRepeat `json:"repeat,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` } type TimingRepeat struct { + ResourceType *string `json:"resourceType,omitempty"` BoundsRange *Range `json:"boundsRange,omitempty"` CountMax *string `json:"countMax,omitempty"` + BoundsDuration *Duration `json:"boundsDuration,omitempty"` DurationUnit *string `json:"durationUnit,omitempty"` - Duration *string `json:"duration,omitempty"` - PeriodUnit *string `json:"periodUnit,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` Count *string `json:"count,omitempty"` - Extension []*Extension `json:"extension,omitempty"` + FrequencyMax *string `json:"frequencyMax,omitempty"` + PeriodMax *string `json:"periodMax,omitempty"` When *string `json:"when,omitempty"` - ID *string `json:"id,omitempty"` DurationMax *string `json:"durationMax,omitempty"` + ID *string `json:"id,omitempty"` + TimeOfDay *string `json:"timeOfDay,omitempty"` Period *string `json:"period,omitempty"` - BoundsDuration *Duration `json:"boundsDuration,omitempty"` - FrequencyMax *string `json:"frequencyMax,omitempty"` - Frequency *string `json:"frequency,omitempty"` - PeriodMax *string `json:"periodMax,omitempty"` - BoundsPeriod *Period `json:"boundsPeriod,omitempty"` DayOfWeek *string `json:"dayOfWeek,omitempty"` - TimeOfDay *string `json:"timeOfDay,omitempty"` Offset *string `json:"offset,omitempty"` + Frequency *string `json:"frequency,omitempty"` + Duration *string `json:"duration,omitempty"` + BoundsPeriod *Period `json:"boundsPeriod,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PeriodUnit *string `json:"periodUnit,omitempty"` } type TriggerDefinition struct { - Condition *Expression `json:"condition,omitempty"` - Name *string `json:"name,omitempty"` Data []*DataRequirement `json:"data,omitempty"` - Extension []*Extension `json:"extension,omitempty"` ID *string `json:"id,omitempty"` - TimingTiming *Timing `json:"timingTiming,omitempty"` + Name *string `json:"name,omitempty"` Code *CodeableConcept `json:"code,omitempty"` + Condition *Expression `json:"condition,omitempty"` + TimingTiming *Timing `json:"timingTiming,omitempty"` + SubscriptionTopic *string `json:"subscriptionTopic,omitempty"` + TimingDate *string `json:"timingDate,omitempty"` TimingDateTime *string `json:"timingDateTime,omitempty"` - Type *string `json:"type,omitempty"` + Extension []*Extension `json:"extension,omitempty"` ResourceType *string `json:"resourceType,omitempty"` - TimingDate *string `json:"timingDate,omitempty"` - SubscriptionTopic *string `json:"subscriptionTopic,omitempty"` + Type *string `json:"type,omitempty"` } type UsageContext struct { - Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` - ValueQuantity *Quantity `json:"valueQuantity,omitempty"` - ValueRange *Range `json:"valueRange,omitempty"` - ValueReference []UsageContextValueReferenceUnion `json:"valueReference,omitempty"` - Code *Coding `json:"code,omitempty"` + ID *string `json:"id,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + ValueRange *Range `json:"valueRange,omitempty"` + ValueReference UsageContextValueReferenceUnion `json:"valueReference"` + Code *Coding `json:"code,omitempty"` + Extension []*Extension `json:"extension,omitempty"` } type VirtualServiceDetail struct { + MaxParticipants *string `json:"maxParticipants,omitempty"` ResourceType *string `json:"resourceType,omitempty"` AdditionalInfo *string `json:"additionalInfo,omitempty"` - AddressContactPoint *ContactPoint `json:"addressContactPoint,omitempty"` - AddressExtendedContactDetail *ExtendedContactDetail `json:"addressExtendedContactDetail,omitempty"` - SessionKey *string `json:"sessionKey,omitempty"` Extension []*Extension `json:"extension,omitempty"` - ID *string `json:"id,omitempty"` + SessionKey *string `json:"sessionKey,omitempty"` + AddressContactPoint *ContactPoint `json:"addressContactPoint,omitempty"` AddressString *string `json:"addressString,omitempty"` + AddressExtendedContactDetail *ExtendedContactDetail `json:"addressExtendedContactDetail,omitempty"` AddressURL *string `json:"addressUrl,omitempty"` + ID *string `json:"id,omitempty"` ChannelType *Coding `json:"channelType,omitempty"` - MaxParticipants *string `json:"maxParticipants,omitempty"` } type Accessibility string diff --git a/gql-gen/model/grouptype.go b/gql-gen/model/grouptype.go new file mode 100644 index 0000000..d7b9b28 --- /dev/null +++ b/gql-gen/model/grouptype.go @@ -0,0 +1,68 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeGroupType struct { + Language *string `json:"language,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Member TypedObject `json:"member"` + ID *string `json:"id,omitempty"` + Quantity *string `json:"quantity,omitempty"` + Name *string `json:"name,omitempty"` + Text *Narrative `json:"text,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + Description *string `json:"description,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Active *string `json:"active,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Membership *string `json:"membership,omitempty"` + Type *string `json:"type,omitempty"` + Characteristic []*GroupCharacteristic `json:"characteristic,omitempty"` + ManagingEntity TypedObject `json:"managingEntity"` + Meta *Meta `json:"meta,omitempty"` +} + +func (o *GroupType) UnmarshalJSON(b []byte) error { + var safe SafeGroupType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = GroupType{ + Language: safe.Language, + Extension: safe.Extension, + ImplicitRules: safe.ImplicitRules, + Identifier: safe.Identifier, + ID: safe.ID, + Quantity: safe.Quantity, + Name: safe.Name, + Text: safe.Text, + Code: safe.Code, + Description: safe.Description, + ModifierExtension: safe.ModifierExtension, + Active: safe.Active, + ResourceType: safe.ResourceType, + Membership: safe.Membership, + Type: safe.Type, + Characteristic: safe.Characteristic, + Meta: safe.Meta, + } + if err := unmarshalUnion(b, "member", safe.Member.Typename, &o.Member); err != nil { + return fmt.Errorf("failed to unmarshal Member: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "managingEntity", safe.ManagingEntity.Typename, &o.ManagingEntity); err != nil { + return fmt.Errorf("failed to unmarshal ManagingEntity: %w", err) + } + + return nil +} diff --git a/gql-gen/model/imagingstudytype.go b/gql-gen/model/imagingstudytype.go new file mode 100644 index 0000000..224d860 --- /dev/null +++ b/gql-gen/model/imagingstudytype.go @@ -0,0 +1,80 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeImagingStudyType struct { + Description *string `json:"description,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + ID *string `json:"id,omitempty"` + Subject TypedObject `json:"subject"` + Status *string `json:"status,omitempty"` + Text *Narrative `json:"text,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Series []*ImagingStudySeries `json:"series,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Reason []*CodeableReference `json:"reason,omitempty"` + Modality []*CodeableConcept `json:"modality,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + PartOf *ProcedureType `json:"partOf"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Referrer TypedObject `json:"referrer"` + Procedure []*CodeableReference `json:"procedure,omitempty"` + Started *string `json:"started,omitempty"` + NumberOfSeries *string `json:"numberOfSeries,omitempty"` + Note TypedObject `json:"note"` + BasedOn TypedObject `json:"basedOn"` + Language *string `json:"language,omitempty"` + NumberOfInstances *string `json:"numberOfInstances,omitempty"` +} + +func (o *ImagingStudyType) UnmarshalJSON(b []byte) error { + var safe SafeImagingStudyType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = ImagingStudyType{ + Description: safe.Description, + Identifier: safe.Identifier, + ID: safe.ID, + Status: safe.Status, + Text: safe.Text, + Meta: safe.Meta, + Series: safe.Series, + Extension: safe.Extension, + ImplicitRules: safe.ImplicitRules, + Reason: safe.Reason, + Modality: safe.Modality, + ResourceType: safe.ResourceType, + PartOf: safe.PartOf, + ModifierExtension: safe.ModifierExtension, + Procedure: safe.Procedure, + Started: safe.Started, + NumberOfSeries: safe.NumberOfSeries, + Language: safe.Language, + NumberOfInstances: safe.NumberOfInstances, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "referrer", safe.Referrer.Typename, &o.Referrer); err != nil { + return fmt.Errorf("failed to unmarshal Referrer: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "basedOn", safe.BasedOn.Typename, &o.BasedOn); err != nil { + return fmt.Errorf("failed to unmarshal BasedOn: %w", err) + } + + return nil +} diff --git a/gql-gen/model/medicationadministrationtype.go b/gql-gen/model/medicationadministrationtype.go new file mode 100644 index 0000000..b3847a5 --- /dev/null +++ b/gql-gen/model/medicationadministrationtype.go @@ -0,0 +1,90 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeMedicationAdministrationType struct { + Note TypedObject `json:"note"` + Dosage *MedicationAdministrationDosage `json:"dosage,omitempty"` + Language *string `json:"language,omitempty"` + Request *MedicationRequestType `json:"request"` + Reason []*CodeableReference `json:"reason,omitempty"` + OccurencePeriod *Period `json:"occurencePeriod,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Text *Narrative `json:"text,omitempty"` + Medication *CodeableReference `json:"medication,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + Meta *Meta `json:"meta,omitempty"` + IsSubPotent *string `json:"isSubPotent,omitempty"` + Recorded *string `json:"recorded,omitempty"` + Performer []*MedicationAdministrationPerformer `json:"performer,omitempty"` + StatusReason []*CodeableConcept `json:"statusReason,omitempty"` + Subject TypedObject `json:"subject"` + Contained TypedObject `json:"contained,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PartOf TypedObject `json:"partOf"` + OccurenceTiming *Timing `json:"occurenceTiming,omitempty"` + SubPotentReason []*CodeableConcept `json:"subPotentReason,omitempty"` + SupportingInformation TypedObject `json:"supportingInformation"` + Status *string `json:"status,omitempty"` + ID *string `json:"id,omitempty"` + OccurenceDateTime *string `json:"occurenceDateTime,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Device []*CodeableReference `json:"device,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` +} + +func (o *MedicationAdministrationType) UnmarshalJSON(b []byte) error { + var safe SafeMedicationAdministrationType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = MedicationAdministrationType{ + Dosage: safe.Dosage, + Language: safe.Language, + Request: safe.Request, + Reason: safe.Reason, + OccurencePeriod: safe.OccurencePeriod, + ResourceType: safe.ResourceType, + Text: safe.Text, + Medication: safe.Medication, + ImplicitRules: safe.ImplicitRules, + Category: safe.Category, + Meta: safe.Meta, + IsSubPotent: safe.IsSubPotent, + Recorded: safe.Recorded, + Performer: safe.Performer, + StatusReason: safe.StatusReason, + Extension: safe.Extension, + OccurenceTiming: safe.OccurenceTiming, + SubPotentReason: safe.SubPotentReason, + Status: safe.Status, + ID: safe.ID, + OccurenceDateTime: safe.OccurenceDateTime, + ModifierExtension: safe.ModifierExtension, + Device: safe.Device, + Identifier: safe.Identifier, + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "partOf", safe.PartOf.Typename, &o.PartOf); err != nil { + return fmt.Errorf("failed to unmarshal PartOf: %w", err) + } + if err := unmarshalUnion(b, "supportingInformation", safe.SupportingInformation.Typename, &o.SupportingInformation); err != nil { + return fmt.Errorf("failed to unmarshal SupportingInformation: %w", err) + } + + return nil +} diff --git a/gql-gen/model/medicationrequesttype.go b/gql-gen/model/medicationrequesttype.go new file mode 100644 index 0000000..35cd372 --- /dev/null +++ b/gql-gen/model/medicationrequesttype.go @@ -0,0 +1,118 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeMedicationRequestType struct { + Subject TypedObject `json:"subject"` + DosageInstruction []*Dosage `json:"dosageInstruction,omitempty"` + Note TypedObject `json:"note"` + Category []*CodeableConcept `json:"category,omitempty"` + Medication *CodeableReference `json:"medication,omitempty"` + Priority *string `json:"priority,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + CourseOfTherapyType *CodeableConcept `json:"courseOfTherapyType,omitempty"` + DispenseRequest *MedicationRequestDispenseRequest `json:"dispenseRequest,omitempty"` + Text *Narrative `json:"text,omitempty"` + EffectiveDosePeriod *Period `json:"effectiveDosePeriod,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PerformerType *CodeableConcept `json:"performerType,omitempty"` + GroupIdentifier *Identifier `json:"groupIdentifier,omitempty"` + Substitution *MedicationRequestSubstitution `json:"substitution,omitempty"` + Status *string `json:"status,omitempty"` + SupportingInformation TypedObject `json:"supportingInformation"` + InformationSource TypedObject `json:"informationSource"` + DoNotPerform *string `json:"doNotPerform,omitempty"` + Reported *string `json:"reported,omitempty"` + Performer TypedObject `json:"performer"` + BasedOn TypedObject `json:"basedOn"` + Identifier []*Identifier `json:"identifier,omitempty"` + StatusReason *CodeableConcept `json:"statusReason,omitempty"` + RenderedDosageInstruction *string `json:"renderedDosageInstruction,omitempty"` + Recorder TypedObject `json:"recorder"` + AuthoredOn *string `json:"authoredOn,omitempty"` + Intent *string `json:"intent,omitempty"` + Language *string `json:"language,omitempty"` + Reason []*CodeableReference `json:"reason,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Requester TypedObject `json:"requester"` + PriorPrescription *MedicationRequestType `json:"priorPrescription"` + Device []*CodeableReference `json:"device,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + StatusChanged *string `json:"statusChanged,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + ID *string `json:"id,omitempty"` +} + +func (o *MedicationRequestType) UnmarshalJSON(b []byte) error { + var safe SafeMedicationRequestType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = MedicationRequestType{ + DosageInstruction: safe.DosageInstruction, + Category: safe.Category, + Medication: safe.Medication, + Priority: safe.Priority, + ModifierExtension: safe.ModifierExtension, + CourseOfTherapyType: safe.CourseOfTherapyType, + DispenseRequest: safe.DispenseRequest, + Text: safe.Text, + EffectiveDosePeriod: safe.EffectiveDosePeriod, + Extension: safe.Extension, + PerformerType: safe.PerformerType, + GroupIdentifier: safe.GroupIdentifier, + Substitution: safe.Substitution, + Status: safe.Status, + DoNotPerform: safe.DoNotPerform, + Reported: safe.Reported, + Identifier: safe.Identifier, + StatusReason: safe.StatusReason, + RenderedDosageInstruction: safe.RenderedDosageInstruction, + AuthoredOn: safe.AuthoredOn, + Intent: safe.Intent, + Language: safe.Language, + Reason: safe.Reason, + Meta: safe.Meta, + PriorPrescription: safe.PriorPrescription, + Device: safe.Device, + ResourceType: safe.ResourceType, + StatusChanged: safe.StatusChanged, + ImplicitRules: safe.ImplicitRules, + ID: safe.ID, + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "supportingInformation", safe.SupportingInformation.Typename, &o.SupportingInformation); err != nil { + return fmt.Errorf("failed to unmarshal SupportingInformation: %w", err) + } + if err := unmarshalUnion(b, "informationSource", safe.InformationSource.Typename, &o.InformationSource); err != nil { + return fmt.Errorf("failed to unmarshal InformationSource: %w", err) + } + if err := unmarshalUnion(b, "performer", safe.Performer.Typename, &o.Performer); err != nil { + return fmt.Errorf("failed to unmarshal Performer: %w", err) + } + if err := unmarshalUnion(b, "basedOn", safe.BasedOn.Typename, &o.BasedOn); err != nil { + return fmt.Errorf("failed to unmarshal BasedOn: %w", err) + } + if err := unmarshalUnion(b, "recorder", safe.Recorder.Typename, &o.Recorder); err != nil { + return fmt.Errorf("failed to unmarshal Recorder: %w", err) + } + if err := unmarshalUnion(b, "requester", safe.Requester.Typename, &o.Requester); err != nil { + return fmt.Errorf("failed to unmarshal Requester: %w", err) + } + + return nil +} diff --git a/gql-gen/model/medicationstatementtype.go b/gql-gen/model/medicationstatementtype.go new file mode 100644 index 0000000..d1e2b72 --- /dev/null +++ b/gql-gen/model/medicationstatementtype.go @@ -0,0 +1,90 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeMedicationStatementType struct { + Text *Narrative `json:"text,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Reason []*CodeableReference `json:"reason,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Medication *CodeableReference `json:"medication,omitempty"` + Note TypedObject `json:"note"` + Category []*CodeableConcept `json:"category,omitempty"` + ID *string `json:"id,omitempty"` + InformationSource TypedObject `json:"informationSource"` + RelatedClinicalInformation TypedObject `json:"relatedClinicalInformation"` + EffectiveTiming *Timing `json:"effectiveTiming,omitempty"` + EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` + Subject TypedObject `json:"subject"` + EffectivePeriod *Period `json:"effectivePeriod,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + DerivedFrom TypedObject `json:"derivedFrom"` + Adherence *MedicationStatementAdherence `json:"adherence,omitempty"` + Language *string `json:"language,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + RenderedDosageInstruction *string `json:"renderedDosageInstruction,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Dosage []*Dosage `json:"dosage,omitempty"` + Status *string `json:"status,omitempty"` + DateAsserted *string `json:"dateAsserted,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + PartOf TypedObject `json:"partOf"` +} + +func (o *MedicationStatementType) UnmarshalJSON(b []byte) error { + var safe SafeMedicationStatementType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = MedicationStatementType{ + Text: safe.Text, + Identifier: safe.Identifier, + Reason: safe.Reason, + ImplicitRules: safe.ImplicitRules, + Medication: safe.Medication, + Category: safe.Category, + ID: safe.ID, + EffectiveTiming: safe.EffectiveTiming, + EffectiveDateTime: safe.EffectiveDateTime, + EffectivePeriod: safe.EffectivePeriod, + ModifierExtension: safe.ModifierExtension, + Adherence: safe.Adherence, + Language: safe.Language, + ResourceType: safe.ResourceType, + RenderedDosageInstruction: safe.RenderedDosageInstruction, + Meta: safe.Meta, + Dosage: safe.Dosage, + Status: safe.Status, + DateAsserted: safe.DateAsserted, + Extension: safe.Extension, + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "informationSource", safe.InformationSource.Typename, &o.InformationSource); err != nil { + return fmt.Errorf("failed to unmarshal InformationSource: %w", err) + } + if err := unmarshalUnion(b, "relatedClinicalInformation", safe.RelatedClinicalInformation.Typename, &o.RelatedClinicalInformation); err != nil { + return fmt.Errorf("failed to unmarshal RelatedClinicalInformation: %w", err) + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "derivedFrom", safe.DerivedFrom.Typename, &o.DerivedFrom); err != nil { + return fmt.Errorf("failed to unmarshal DerivedFrom: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "partOf", safe.PartOf.Typename, &o.PartOf); err != nil { + return fmt.Errorf("failed to unmarshal PartOf: %w", err) + } + + return nil +} diff --git a/gql-gen/model/medicationtype.go b/gql-gen/model/medicationtype.go new file mode 100644 index 0000000..f2fd5d0 --- /dev/null +++ b/gql-gen/model/medicationtype.go @@ -0,0 +1,58 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeMedicationType struct { + Meta *Meta `json:"meta,omitempty"` + Text *Narrative `json:"text,omitempty"` + MarketingAuthorizationHolder *OrganizationType `json:"marketingAuthorizationHolder"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + TotalVolume *Quantity `json:"totalVolume,omitempty"` + Language *string `json:"language,omitempty"` + DoseForm *CodeableConcept `json:"doseForm,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Ingredient []*MedicationIngredient `json:"ingredient,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + ID *string `json:"id,omitempty"` + Status *string `json:"status,omitempty"` + Batch *MedicationBatch `json:"batch,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` +} + +func (o *MedicationType) UnmarshalJSON(b []byte) error { + var safe SafeMedicationType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = MedicationType{ + Meta: safe.Meta, + Text: safe.Text, + MarketingAuthorizationHolder: safe.MarketingAuthorizationHolder, + ModifierExtension: safe.ModifierExtension, + TotalVolume: safe.TotalVolume, + Language: safe.Language, + DoseForm: safe.DoseForm, + ResourceType: safe.ResourceType, + ImplicitRules: safe.ImplicitRules, + Ingredient: safe.Ingredient, + Extension: safe.Extension, + Identifier: safe.Identifier, + ID: safe.ID, + Status: safe.Status, + Batch: safe.Batch, + Code: safe.Code, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + + return nil +} diff --git a/gql-gen/model/observationtype.go b/gql-gen/model/observationtype.go new file mode 100644 index 0000000..87fad4e --- /dev/null +++ b/gql-gen/model/observationtype.go @@ -0,0 +1,138 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeObservationType struct { + BodyStructure *BodyStructureType `json:"bodyStructure"` + DataAbsentReason *CodeableConcept `json:"dataAbsentReason,omitempty"` + EffectiveInstant *string `json:"effectiveInstant,omitempty"` + EffectivePeriod *Period `json:"effectivePeriod,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Issued *string `json:"issued,omitempty"` + Method *CodeableConcept `json:"method,omitempty"` + ValueTime *string `json:"valueTime,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + ValueInteger *string `json:"valueInteger,omitempty"` + ReferenceRange []*ObservationReferenceRange `json:"referenceRange,omitempty"` + Note TypedObject `json:"note"` + Text *Narrative `json:"text,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ValueDateTime *string `json:"valueDateTime,omitempty"` + ValueString *string `json:"valueString,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` + HasMember TypedObject `json:"hasMember"` + InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` + Focus TypedObject `json:"focus"` + Performer TypedObject `json:"performer"` + ValueSampledData *SampledData `json:"valueSampledData,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Language *string `json:"language,omitempty"` + ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + PartOf TypedObject `json:"partOf"` + Status *string `json:"status,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + TriggeredBy []*ObservationTriggeredBy `json:"triggeredBy,omitempty"` + Subject TypedObject `json:"subject"` + DerivedFrom TypedObject `json:"derivedFrom"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + BodySite *CodeableConcept `json:"bodySite,omitempty"` + ValueRatio *Ratio `json:"valueRatio,omitempty"` + BasedOn TypedObject `json:"basedOn"` + Component []*ObservationComponent `json:"component,omitempty"` + ValueAttachment *Attachment `json:"valueAttachment,omitempty"` + ValueRange *Range `json:"valueRange,omitempty"` + ValuePeriod *Period `json:"valuePeriod,omitempty"` + Specimen TypedObject `json:"specimen"` + EffectiveTiming *Timing `json:"effectiveTiming,omitempty"` + ID *string `json:"id,omitempty"` + Interpretation []*CodeableConcept `json:"interpretation,omitempty"` + ValueBoolean *string `json:"valueBoolean,omitempty"` + Extension []*Extension `json:"extension,omitempty"` +} + +func (o *ObservationType) UnmarshalJSON(b []byte) error { + var safe SafeObservationType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = ObservationType{ + BodyStructure: safe.BodyStructure, + DataAbsentReason: safe.DataAbsentReason, + EffectiveInstant: safe.EffectiveInstant, + EffectivePeriod: safe.EffectivePeriod, + Identifier: safe.Identifier, + Meta: safe.Meta, + Issued: safe.Issued, + Method: safe.Method, + ValueTime: safe.ValueTime, + ValueInteger: safe.ValueInteger, + ReferenceRange: safe.ReferenceRange, + Text: safe.Text, + ResourceType: safe.ResourceType, + ValueDateTime: safe.ValueDateTime, + ValueString: safe.ValueString, + ValueQuantity: safe.ValueQuantity, + EffectiveDateTime: safe.EffectiveDateTime, + InstantiatesCanonical: safe.InstantiatesCanonical, + ValueSampledData: safe.ValueSampledData, + ImplicitRules: safe.ImplicitRules, + Language: safe.Language, + ValueCodeableConcept: safe.ValueCodeableConcept, + Code: safe.Code, + Status: safe.Status, + Category: safe.Category, + TriggeredBy: safe.TriggeredBy, + ModifierExtension: safe.ModifierExtension, + BodySite: safe.BodySite, + ValueRatio: safe.ValueRatio, + Component: safe.Component, + ValueAttachment: safe.ValueAttachment, + ValueRange: safe.ValueRange, + ValuePeriod: safe.ValuePeriod, + EffectiveTiming: safe.EffectiveTiming, + ID: safe.ID, + Interpretation: safe.Interpretation, + ValueBoolean: safe.ValueBoolean, + Extension: safe.Extension, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "hasMember", safe.HasMember.Typename, &o.HasMember); err != nil { + return fmt.Errorf("failed to unmarshal HasMember: %w", err) + } + if err := unmarshalUnion(b, "focus", safe.Focus.Typename, &o.Focus); err != nil { + return fmt.Errorf("failed to unmarshal Focus: %w", err) + } + if err := unmarshalUnion(b, "performer", safe.Performer.Typename, &o.Performer); err != nil { + return fmt.Errorf("failed to unmarshal Performer: %w", err) + } + if err := unmarshalUnion(b, "partOf", safe.PartOf.Typename, &o.PartOf); err != nil { + return fmt.Errorf("failed to unmarshal PartOf: %w", err) + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "derivedFrom", safe.DerivedFrom.Typename, &o.DerivedFrom); err != nil { + return fmt.Errorf("failed to unmarshal DerivedFrom: %w", err) + } + if err := unmarshalUnion(b, "basedOn", safe.BasedOn.Typename, &o.BasedOn); err != nil { + return fmt.Errorf("failed to unmarshal BasedOn: %w", err) + } + if err := unmarshalUnion(b, "specimen", safe.Specimen.Typename, &o.Specimen); err != nil { + return fmt.Errorf("failed to unmarshal Specimen: %w", err) + } + + return nil +} diff --git a/gql-gen/model/organizationtype.go b/gql-gen/model/organizationtype.go new file mode 100644 index 0000000..f54d765 --- /dev/null +++ b/gql-gen/model/organizationtype.go @@ -0,0 +1,60 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeOrganizationType struct { + Identifier []*Identifier `json:"identifier,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Active *string `json:"active,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + PartOf *OrganizationType `json:"partOf"` + ResourceType *string `json:"resourceType,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Description *string `json:"description,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Name *string `json:"name,omitempty"` + Type []*CodeableConcept `json:"type,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + ID *string `json:"id,omitempty"` + Qualification []*OrganizationQualification `json:"qualification,omitempty"` + Alias *string `json:"alias,omitempty"` + Contact []*ExtendedContactDetail `json:"contact,omitempty"` + Text *Narrative `json:"text,omitempty"` + Language *string `json:"language,omitempty"` +} + +func (o *OrganizationType) UnmarshalJSON(b []byte) error { + var safe SafeOrganizationType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = OrganizationType{ + Identifier: safe.Identifier, + Active: safe.Active, + ModifierExtension: safe.ModifierExtension, + PartOf: safe.PartOf, + ResourceType: safe.ResourceType, + Extension: safe.Extension, + Description: safe.Description, + Meta: safe.Meta, + Name: safe.Name, + Type: safe.Type, + ImplicitRules: safe.ImplicitRules, + ID: safe.ID, + Qualification: safe.Qualification, + Alias: safe.Alias, + Contact: safe.Contact, + Text: safe.Text, + Language: safe.Language, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + + return nil +} diff --git a/gql-gen/model/patienttype.go b/gql-gen/model/patienttype.go new file mode 100644 index 0000000..f6f8154 --- /dev/null +++ b/gql-gen/model/patienttype.go @@ -0,0 +1,82 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafePatientType struct { + ManagingOrganization *OrganizationType `json:"managingOrganization"` + Contact []*PatientContact `json:"contact,omitempty"` + Gender *string `json:"gender,omitempty"` + Link TypedObject `json:"link"` + ImplicitRules *string `json:"implicitRules,omitempty"` + MultipleBirthInteger *string `json:"multipleBirthInteger,omitempty"` + ID *string `json:"id,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Communication []*PatientCommunication `json:"communication,omitempty"` + BirthDate *string `json:"birthDate,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + GeneralPractitioner TypedObject `json:"generalPractitioner"` + Language *string `json:"language,omitempty"` + DeceasedDateTime *string `json:"deceasedDateTime,omitempty"` + Telecom []*ContactPoint `json:"telecom,omitempty"` + Photo []*Attachment `json:"photo,omitempty"` + Text *Narrative `json:"text,omitempty"` + MultipleBirthBoolean *string `json:"multipleBirthBoolean,omitempty"` + Address []*Address `json:"address,omitempty"` + MaritalStatus *CodeableConcept `json:"maritalStatus,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Name []*HumanName `json:"name,omitempty"` + Active *string `json:"active,omitempty"` + DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` +} + +func (o *PatientType) UnmarshalJSON(b []byte) error { + var safe SafePatientType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = PatientType{ + ManagingOrganization: safe.ManagingOrganization, + Contact: safe.Contact, + Gender: safe.Gender, + ImplicitRules: safe.ImplicitRules, + MultipleBirthInteger: safe.MultipleBirthInteger, + ID: safe.ID, + Meta: safe.Meta, + Communication: safe.Communication, + BirthDate: safe.BirthDate, + Identifier: safe.Identifier, + ResourceType: safe.ResourceType, + Language: safe.Language, + DeceasedDateTime: safe.DeceasedDateTime, + Telecom: safe.Telecom, + Photo: safe.Photo, + Text: safe.Text, + MultipleBirthBoolean: safe.MultipleBirthBoolean, + Address: safe.Address, + MaritalStatus: safe.MaritalStatus, + ModifierExtension: safe.ModifierExtension, + Extension: safe.Extension, + Name: safe.Name, + Active: safe.Active, + DeceasedBoolean: safe.DeceasedBoolean, + } + if err := unmarshalUnion(b, "link", safe.Link.Typename, &o.Link); err != nil { + return fmt.Errorf("failed to unmarshal Link: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "generalPractitioner", safe.GeneralPractitioner.Typename, &o.GeneralPractitioner); err != nil { + return fmt.Errorf("failed to unmarshal GeneralPractitioner: %w", err) + } + + return nil +} diff --git a/gql-gen/model/practitionerroletype.go b/gql-gen/model/practitionerroletype.go new file mode 100644 index 0000000..903c856 --- /dev/null +++ b/gql-gen/model/practitionerroletype.go @@ -0,0 +1,64 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafePractitionerRoleType struct { + Communication []*CodeableConcept `json:"communication,omitempty"` + Active *string `json:"active,omitempty"` + ID *string `json:"id,omitempty"` + Organization *OrganizationType `json:"organization"` + Contained TypedObject `json:"contained,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Period *Period `json:"period,omitempty"` + Code []*CodeableConcept `json:"code,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Specialty []*CodeableConcept `json:"specialty,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Language *string `json:"language,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Contact []*ExtendedContactDetail `json:"contact,omitempty"` + Text *Narrative `json:"text,omitempty"` + Practitioner *PractitionerType `json:"practitioner"` + Availability []*Availability `json:"availability,omitempty"` + Characteristic []*CodeableConcept `json:"characteristic,omitempty"` +} + +func (o *PractitionerRoleType) UnmarshalJSON(b []byte) error { + var safe SafePractitionerRoleType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = PractitionerRoleType{ + Communication: safe.Communication, + Active: safe.Active, + ID: safe.ID, + Organization: safe.Organization, + Extension: safe.Extension, + Period: safe.Period, + Code: safe.Code, + ModifierExtension: safe.ModifierExtension, + Specialty: safe.Specialty, + ResourceType: safe.ResourceType, + Identifier: safe.Identifier, + ImplicitRules: safe.ImplicitRules, + Language: safe.Language, + Meta: safe.Meta, + Contact: safe.Contact, + Text: safe.Text, + Practitioner: safe.Practitioner, + Availability: safe.Availability, + Characteristic: safe.Characteristic, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + + return nil +} diff --git a/gql-gen/model/practitionertype.go b/gql-gen/model/practitionertype.go new file mode 100644 index 0000000..9d3336b --- /dev/null +++ b/gql-gen/model/practitionertype.go @@ -0,0 +1,66 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafePractitionerType struct { + BirthDate *string `json:"birthDate,omitempty"` + ID *string `json:"id,omitempty"` + Language *string `json:"language,omitempty"` + Qualification []*PractitionerQualification `json:"qualification,omitempty"` + Address []*Address `json:"address,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Active *string `json:"active,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Gender *string `json:"gender,omitempty"` + Name []*HumanName `json:"name,omitempty"` + Text *Narrative `json:"text,omitempty"` + DeceasedDateTime *string `json:"deceasedDateTime,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Photo []*Attachment `json:"photo,omitempty"` + Telecom []*ContactPoint `json:"telecom,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Communication []*PractitionerCommunication `json:"communication,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` +} + +func (o *PractitionerType) UnmarshalJSON(b []byte) error { + var safe SafePractitionerType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = PractitionerType{ + BirthDate: safe.BirthDate, + ID: safe.ID, + Language: safe.Language, + Qualification: safe.Qualification, + Address: safe.Address, + ModifierExtension: safe.ModifierExtension, + Active: safe.Active, + Gender: safe.Gender, + Name: safe.Name, + Text: safe.Text, + DeceasedDateTime: safe.DeceasedDateTime, + Extension: safe.Extension, + Meta: safe.Meta, + Photo: safe.Photo, + Telecom: safe.Telecom, + ResourceType: safe.ResourceType, + Communication: safe.Communication, + Identifier: safe.Identifier, + DeceasedBoolean: safe.DeceasedBoolean, + ImplicitRules: safe.ImplicitRules, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + + return nil +} diff --git a/gql-gen/model/proceduretype.go b/gql-gen/model/proceduretype.go new file mode 100644 index 0000000..e52e079 --- /dev/null +++ b/gql-gen/model/proceduretype.go @@ -0,0 +1,122 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeProcedureType struct { + Recorder TypedObject `json:"recorder"` + Report TypedObject `json:"report"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Note TypedObject `json:"note"` + BodySite []*CodeableConcept `json:"bodySite,omitempty"` + InstantiatesURI *string `json:"instantiatesUri,omitempty"` + OccurrenceTiming *Timing `json:"occurrenceTiming,omitempty"` + OccurrenceAge *Age `json:"occurrenceAge,omitempty"` + OccurrenceDateTime *string `json:"occurrenceDateTime,omitempty"` + ReportedBoolean *string `json:"reportedBoolean,omitempty"` + Subject TypedObject `json:"subject"` + OccurrenceRange *Range `json:"occurrenceRange,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Text *Narrative `json:"text,omitempty"` + Status *string `json:"status,omitempty"` + ReportedReference TypedObject `json:"reportedReference"` + Reason []*CodeableReference `json:"reason,omitempty"` + Outcome *CodeableConcept `json:"outcome,omitempty"` + PartOf TypedObject `json:"partOf"` + Used []*CodeableReference `json:"used,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + SupportingInfo TypedObject `json:"supportingInfo"` + Language *string `json:"language,omitempty"` + FocalDevice []*ProcedureFocalDevice `json:"focalDevice,omitempty"` + ID *string `json:"id,omitempty"` + OccurrenceString *string `json:"occurrenceString,omitempty"` + Recorded *string `json:"recorded,omitempty"` + Performer TypedObject `json:"performer"` + StatusReason *CodeableConcept `json:"statusReason,omitempty"` + FollowUp []*CodeableConcept `json:"followUp,omitempty"` + Complication []*CodeableReference `json:"complication,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Focus TypedObject `json:"focus"` + OccurrencePeriod *Period `json:"occurrencePeriod,omitempty"` + InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` +} + +func (o *ProcedureType) UnmarshalJSON(b []byte) error { + var safe SafeProcedureType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = ProcedureType{ + ImplicitRules: safe.ImplicitRules, + Meta: safe.Meta, + BodySite: safe.BodySite, + InstantiatesURI: safe.InstantiatesURI, + OccurrenceTiming: safe.OccurrenceTiming, + OccurrenceAge: safe.OccurrenceAge, + OccurrenceDateTime: safe.OccurrenceDateTime, + ReportedBoolean: safe.ReportedBoolean, + OccurrenceRange: safe.OccurrenceRange, + ModifierExtension: safe.ModifierExtension, + ResourceType: safe.ResourceType, + Text: safe.Text, + Status: safe.Status, + Reason: safe.Reason, + Outcome: safe.Outcome, + Used: safe.Used, + Code: safe.Code, + Identifier: safe.Identifier, + Category: safe.Category, + Language: safe.Language, + FocalDevice: safe.FocalDevice, + ID: safe.ID, + OccurrenceString: safe.OccurrenceString, + Recorded: safe.Recorded, + StatusReason: safe.StatusReason, + FollowUp: safe.FollowUp, + Complication: safe.Complication, + Extension: safe.Extension, + OccurrencePeriod: safe.OccurrencePeriod, + InstantiatesCanonical: safe.InstantiatesCanonical, + } + if err := unmarshalUnion(b, "recorder", safe.Recorder.Typename, &o.Recorder); err != nil { + return fmt.Errorf("failed to unmarshal Recorder: %w", err) + } + if err := unmarshalUnion(b, "report", safe.Report.Typename, &o.Report); err != nil { + return fmt.Errorf("failed to unmarshal Report: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "reportedReference", safe.ReportedReference.Typename, &o.ReportedReference); err != nil { + return fmt.Errorf("failed to unmarshal ReportedReference: %w", err) + } + if err := unmarshalUnion(b, "partOf", safe.PartOf.Typename, &o.PartOf); err != nil { + return fmt.Errorf("failed to unmarshal PartOf: %w", err) + } + if err := unmarshalUnion(b, "supportingInfo", safe.SupportingInfo.Typename, &o.SupportingInfo); err != nil { + return fmt.Errorf("failed to unmarshal SupportingInfo: %w", err) + } + if err := unmarshalUnion(b, "performer", safe.Performer.Typename, &o.Performer); err != nil { + return fmt.Errorf("failed to unmarshal Performer: %w", err) + } + if err := unmarshalUnion(b, "focus", safe.Focus.Typename, &o.Focus); err != nil { + return fmt.Errorf("failed to unmarshal Focus: %w", err) + } + + return nil +} diff --git a/gql-gen/model/researchstudytype.go b/gql-gen/model/researchstudytype.go new file mode 100644 index 0000000..4421d61 --- /dev/null +++ b/gql-gen/model/researchstudytype.go @@ -0,0 +1,114 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeResearchStudyType struct { + Language *string `json:"language,omitempty"` + Region []*CodeableConcept `json:"region,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Note TypedObject `json:"note"` + Focus []*CodeableReference `json:"focus,omitempty"` + PrimaryPurposeType *CodeableConcept `json:"primaryPurposeType,omitempty"` + ProgressStatus []*ResearchStudyProgressStatus `json:"progressStatus,omitempty"` + WhyStopped *CodeableConcept `json:"whyStopped,omitempty"` + Result TypedObject `json:"result"` + Version *string `json:"version,omitempty"` + URL *string `json:"url,omitempty"` + RelatedArtifact []*RelatedArtifact `json:"relatedArtifact,omitempty"` + Name *string `json:"name,omitempty"` + StudyDesign []*CodeableConcept `json:"studyDesign,omitempty"` + Objective []*ResearchStudyObjective `json:"objective,omitempty"` + Recruitment TypedObject `json:"recruitment"` + Title *string `json:"title,omitempty"` + AssociatedParty TypedObject `json:"associatedParty"` + ID *string `json:"id,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Description *string `json:"description,omitempty"` + ComparisonGroup []*ResearchStudyComparisonGroup `json:"comparisonGroup,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + PartOf *ResearchStudyType `json:"partOf"` + Classifier []*CodeableConcept `json:"classifier,omitempty"` + Label []*ResearchStudyLabel `json:"label,omitempty"` + Keyword []*CodeableConcept `json:"keyword,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Period *Period `json:"period,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Date *string `json:"date,omitempty"` + DescriptionSummary *string `json:"descriptionSummary,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Text *Narrative `json:"text,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Phase *CodeableConcept `json:"phase,omitempty"` + Condition []*CodeableConcept `json:"condition,omitempty"` + Status *string `json:"status,omitempty"` + OutcomeMeasure []*ResearchStudyOutcomeMeasure `json:"outcomeMeasure,omitempty"` + Site TypedObject `json:"site"` +} + +func (o *ResearchStudyType) UnmarshalJSON(b []byte) error { + var safe SafeResearchStudyType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = ResearchStudyType{ + Language: safe.Language, + Region: safe.Region, + Identifier: safe.Identifier, + Focus: safe.Focus, + PrimaryPurposeType: safe.PrimaryPurposeType, + ProgressStatus: safe.ProgressStatus, + WhyStopped: safe.WhyStopped, + Version: safe.Version, + URL: safe.URL, + RelatedArtifact: safe.RelatedArtifact, + Name: safe.Name, + StudyDesign: safe.StudyDesign, + Objective: safe.Objective, + Title: safe.Title, + ID: safe.ID, + Description: safe.Description, + ComparisonGroup: safe.ComparisonGroup, + ImplicitRules: safe.ImplicitRules, + PartOf: safe.PartOf, + Classifier: safe.Classifier, + Label: safe.Label, + Keyword: safe.Keyword, + ModifierExtension: safe.ModifierExtension, + Period: safe.Period, + ResourceType: safe.ResourceType, + Date: safe.Date, + DescriptionSummary: safe.DescriptionSummary, + Extension: safe.Extension, + Text: safe.Text, + Meta: safe.Meta, + Phase: safe.Phase, + Condition: safe.Condition, + Status: safe.Status, + OutcomeMeasure: safe.OutcomeMeasure, + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "result", safe.Result.Typename, &o.Result); err != nil { + return fmt.Errorf("failed to unmarshal Result: %w", err) + } + if err := unmarshalUnion(b, "recruitment", safe.Recruitment.Typename, &o.Recruitment); err != nil { + return fmt.Errorf("failed to unmarshal Recruitment: %w", err) + } + if err := unmarshalUnion(b, "associatedParty", safe.AssociatedParty.Typename, &o.AssociatedParty); err != nil { + return fmt.Errorf("failed to unmarshal AssociatedParty: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "site", safe.Site.Typename, &o.Site); err != nil { + return fmt.Errorf("failed to unmarshal Site: %w", err) + } + + return nil +} diff --git a/gql-gen/model/researchsubjecttype.go b/gql-gen/model/researchsubjecttype.go new file mode 100644 index 0000000..3a12584 --- /dev/null +++ b/gql-gen/model/researchsubjecttype.go @@ -0,0 +1,60 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeResearchSubjectType struct { + Study *ResearchStudyType `json:"study"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Status *string `json:"status,omitempty"` + Meta *Meta `json:"meta,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Language *string `json:"language,omitempty"` + Text *Narrative `json:"text,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ActualComparisonGroup *string `json:"actualComparisonGroup,omitempty"` + AssignedComparisonGroup *string `json:"assignedComparisonGroup,omitempty"` + Progress []*ResearchSubjectProgress `json:"progress,omitempty"` + Period *Period `json:"period,omitempty"` + Subject TypedObject `json:"subject"` + ID *string `json:"id,omitempty"` +} + +func (o *ResearchSubjectType) UnmarshalJSON(b []byte) error { + var safe SafeResearchSubjectType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = ResearchSubjectType{ + Study: safe.Study, + ImplicitRules: safe.ImplicitRules, + Status: safe.Status, + Meta: safe.Meta, + ModifierExtension: safe.ModifierExtension, + ResourceType: safe.ResourceType, + Language: safe.Language, + Text: safe.Text, + Identifier: safe.Identifier, + Extension: safe.Extension, + ActualComparisonGroup: safe.ActualComparisonGroup, + AssignedComparisonGroup: safe.AssignedComparisonGroup, + Progress: safe.Progress, + Period: safe.Period, + ID: safe.ID, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + + return nil +} diff --git a/gql-gen/model/specimentype.go b/gql-gen/model/specimentype.go new file mode 100644 index 0000000..ed96f6d --- /dev/null +++ b/gql-gen/model/specimentype.go @@ -0,0 +1,78 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeSpecimenType struct { + ResourceType *string `json:"resourceType,omitempty"` + Subject TypedObject `json:"subject"` + Combined *string `json:"combined,omitempty"` + AccessionIdentifier *Identifier `json:"accessionIdentifier,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + Text *Narrative `json:"text,omitempty"` + Container []*SpecimenContainer `json:"container,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Parent *SpecimenType `json:"parent"` + Meta *Meta `json:"meta,omitempty"` + Condition []*CodeableConcept `json:"condition,omitempty"` + Feature []*SpecimenFeature `json:"feature,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + ID *string `json:"id,omitempty"` + Processing []*SpecimenProcessing `json:"processing,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Collection TypedObject `json:"collection"` + ReceivedTime *string `json:"receivedTime,omitempty"` + Role []*CodeableConcept `json:"role,omitempty"` + Language *string `json:"language,omitempty"` + Note TypedObject `json:"note"` + Status *string `json:"status,omitempty"` +} + +func (o *SpecimenType) UnmarshalJSON(b []byte) error { + var safe SafeSpecimenType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = SpecimenType{ + ResourceType: safe.ResourceType, + Combined: safe.Combined, + AccessionIdentifier: safe.AccessionIdentifier, + ModifierExtension: safe.ModifierExtension, + Type: safe.Type, + Text: safe.Text, + Container: safe.Container, + ImplicitRules: safe.ImplicitRules, + Parent: safe.Parent, + Meta: safe.Meta, + Condition: safe.Condition, + Feature: safe.Feature, + ID: safe.ID, + Processing: safe.Processing, + Extension: safe.Extension, + Identifier: safe.Identifier, + ReceivedTime: safe.ReceivedTime, + Role: safe.Role, + Language: safe.Language, + Status: safe.Status, + } + if err := unmarshalUnion(b, "subject", safe.Subject.Typename, &o.Subject); err != nil { + return fmt.Errorf("failed to unmarshal Subject: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "collection", safe.Collection.Typename, &o.Collection); err != nil { + return fmt.Errorf("failed to unmarshal Collection: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + + return nil +} diff --git a/gql-gen/model/substancedefinitiontype.go b/gql-gen/model/substancedefinitiontype.go new file mode 100644 index 0000000..e59a795 --- /dev/null +++ b/gql-gen/model/substancedefinitiontype.go @@ -0,0 +1,82 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeSubstanceDefinitionType struct { + Version *string `json:"version,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Manufacturer *OrganizationType `json:"manufacturer"` + ID *string `json:"id,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Classification []*CodeableConcept `json:"classification,omitempty"` + Code []*SubstanceDefinitionCode `json:"code,omitempty"` + Characterization []*SubstanceDefinitionCharacterization `json:"characterization,omitempty"` + Supplier *OrganizationType `json:"supplier"` + ResourceType *string `json:"resourceType,omitempty"` + SourceMaterial *SubstanceDefinitionSourceMaterial `json:"sourceMaterial,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Status *CodeableConcept `json:"status,omitempty"` + Property []*SubstanceDefinitionProperty `json:"property,omitempty"` + Language *string `json:"language,omitempty"` + Name []*SubstanceDefinitionName `json:"name,omitempty"` + Structure *SubstanceDefinitionStructure `json:"structure,omitempty"` + Description *string `json:"description,omitempty"` + Text *Narrative `json:"text,omitempty"` + MolecularWeight []*SubstanceDefinitionMolecularWeight `json:"molecularWeight,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Relationship []*SubstanceDefinitionRelationship `json:"relationship,omitempty"` + Domain *CodeableConcept `json:"domain,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Moiety []*SubstanceDefinitionMoiety `json:"moiety,omitempty"` + Note TypedObject `json:"note"` + Grade []*CodeableConcept `json:"grade,omitempty"` +} + +func (o *SubstanceDefinitionType) UnmarshalJSON(b []byte) error { + var safe SafeSubstanceDefinitionType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = SubstanceDefinitionType{ + Version: safe.Version, + Extension: safe.Extension, + Manufacturer: safe.Manufacturer, + ID: safe.ID, + Meta: safe.Meta, + Classification: safe.Classification, + Code: safe.Code, + Characterization: safe.Characterization, + Supplier: safe.Supplier, + ResourceType: safe.ResourceType, + SourceMaterial: safe.SourceMaterial, + Status: safe.Status, + Property: safe.Property, + Language: safe.Language, + Name: safe.Name, + Structure: safe.Structure, + Description: safe.Description, + Text: safe.Text, + MolecularWeight: safe.MolecularWeight, + ImplicitRules: safe.ImplicitRules, + Identifier: safe.Identifier, + Relationship: safe.Relationship, + Domain: safe.Domain, + ModifierExtension: safe.ModifierExtension, + Moiety: safe.Moiety, + Grade: safe.Grade, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + + return nil +} diff --git a/gql-gen/model/substancetype.go b/gql-gen/model/substancetype.go new file mode 100644 index 0000000..ad4f365 --- /dev/null +++ b/gql-gen/model/substancetype.go @@ -0,0 +1,60 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeSubstanceType struct { + Status *string `json:"status,omitempty"` + Quantity *Quantity `json:"quantity,omitempty"` + Text *Narrative `json:"text,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Language *string `json:"language,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Instance *string `json:"instance,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Category []*CodeableConcept `json:"category,omitempty"` + Expiry *string `json:"expiry,omitempty"` + Ingredient []*SubstanceIngredient `json:"ingredient,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Code *CodeableReference `json:"code,omitempty"` + Description *string `json:"description,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + ID *string `json:"id,omitempty"` +} + +func (o *SubstanceType) UnmarshalJSON(b []byte) error { + var safe SafeSubstanceType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = SubstanceType{ + Status: safe.Status, + Quantity: safe.Quantity, + Text: safe.Text, + Identifier: safe.Identifier, + Language: safe.Language, + ImplicitRules: safe.ImplicitRules, + ResourceType: safe.ResourceType, + Instance: safe.Instance, + ModifierExtension: safe.ModifierExtension, + Category: safe.Category, + Expiry: safe.Expiry, + Ingredient: safe.Ingredient, + Meta: safe.Meta, + Code: safe.Code, + Description: safe.Description, + Extension: safe.Extension, + ID: safe.ID, + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + + return nil +} diff --git a/gql-gen/model/tasktype.go b/gql-gen/model/tasktype.go new file mode 100644 index 0000000..8182367 --- /dev/null +++ b/gql-gen/model/tasktype.go @@ -0,0 +1,112 @@ + +package model + +import ( + "encoding/json" + "fmt" +) + +type SafeTaskType struct { + InstantiatesURI *string `json:"instantiatesUri,omitempty"` + Owner TypedObject `json:"owner"` + ID *string `json:"id,omitempty"` + Intent *string `json:"intent,omitempty"` + Code *CodeableConcept `json:"code,omitempty"` + RequestedPeriod *Period `json:"requestedPeriod,omitempty"` + Restriction TypedObject `json:"restriction"` + AuthoredOn *string `json:"authoredOn,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Note TypedObject `json:"note"` + DoNotPerform *string `json:"doNotPerform,omitempty"` + Text *Narrative `json:"text,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Language *string `json:"language,omitempty"` + Output []*TaskOutput `json:"output,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` + Status *string `json:"status,omitempty"` + BusinessStatus *CodeableConcept `json:"businessStatus,omitempty"` + ExecutionPeriod *Period `json:"executionPeriod,omitempty"` + Meta *Meta `json:"meta,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + BasedOn TypedObject `json:"basedOn"` + PartOf *TaskType `json:"partOf"` + StatusReason *CodeableReference `json:"statusReason,omitempty"` + Contained TypedObject `json:"contained,omitempty"` + Performer TypedObject `json:"performer"` + Input []*TaskInput `json:"input,omitempty"` + Requester TypedObject `json:"requester"` + Description *string `json:"description,omitempty"` + GroupIdentifier *Identifier `json:"groupIdentifier,omitempty"` + Focus TypedObject `json:"focus"` + Priority *string `json:"priority,omitempty"` + LastModified *string `json:"lastModified,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + RequestedPerformer []*CodeableReference `json:"requestedPerformer,omitempty"` + Reason []*CodeableReference `json:"reason,omitempty"` +} + +func (o *TaskType) UnmarshalJSON(b []byte) error { + var safe SafeTaskType + if err := json.Unmarshal(b, &safe); err != nil { + return err + } + + *o = TaskType{ + InstantiatesURI: safe.InstantiatesURI, + ID: safe.ID, + Intent: safe.Intent, + Code: safe.Code, + RequestedPeriod: safe.RequestedPeriod, + AuthoredOn: safe.AuthoredOn, + ModifierExtension: safe.ModifierExtension, + DoNotPerform: safe.DoNotPerform, + Text: safe.Text, + Identifier: safe.Identifier, + Language: safe.Language, + Output: safe.Output, + Extension: safe.Extension, + InstantiatesCanonical: safe.InstantiatesCanonical, + Status: safe.Status, + BusinessStatus: safe.BusinessStatus, + ExecutionPeriod: safe.ExecutionPeriod, + Meta: safe.Meta, + ImplicitRules: safe.ImplicitRules, + PartOf: safe.PartOf, + StatusReason: safe.StatusReason, + Input: safe.Input, + Description: safe.Description, + GroupIdentifier: safe.GroupIdentifier, + Priority: safe.Priority, + LastModified: safe.LastModified, + ResourceType: safe.ResourceType, + RequestedPerformer: safe.RequestedPerformer, + Reason: safe.Reason, + } + if err := unmarshalUnion(b, "owner", safe.Owner.Typename, &o.Owner); err != nil { + return fmt.Errorf("failed to unmarshal Owner: %w", err) + } + if err := unmarshalUnion(b, "restriction", safe.Restriction.Typename, &o.Restriction); err != nil { + return fmt.Errorf("failed to unmarshal Restriction: %w", err) + } + if err := unmarshalUnion(b, "note", safe.Note.Typename, &o.Note); err != nil { + return fmt.Errorf("failed to unmarshal Note: %w", err) + } + if err := unmarshalUnion(b, "basedOn", safe.BasedOn.Typename, &o.BasedOn); err != nil { + return fmt.Errorf("failed to unmarshal BasedOn: %w", err) + } + if err := unmarshalUnion(b, "contained", safe.Contained.Typename, &o.Contained); err != nil { + return fmt.Errorf("failed to unmarshal Contained: %w", err) + } + if err := unmarshalUnion(b, "performer", safe.Performer.Typename, &o.Performer); err != nil { + return fmt.Errorf("failed to unmarshal Performer: %w", err) + } + if err := unmarshalUnion(b, "requester", safe.Requester.Typename, &o.Requester); err != nil { + return fmt.Errorf("failed to unmarshal Requester: %w", err) + } + if err := unmarshalUnion(b, "focus", safe.Focus.Typename, &o.Focus); err != nil { + return fmt.Errorf("failed to unmarshal Focus: %w", err) + } + + return nil +} diff --git a/gql-gen/model/test.go b/gql-gen/model/test.go deleted file mode 100644 index 044c42f..0000000 --- a/gql-gen/model/test.go +++ /dev/null @@ -1,102 +0,0 @@ -package model - -import ( - "encoding/json" - "fmt" -) - -type TypedObject struct { - Typename string `json:"__typename"` -} - -type SafeObservationType struct { - EffectivePeriod *Period `json:"effectivePeriod,omitempty"` - EffectiveInstant *string `json:"effectiveInstant,omitempty"` - ValuePeriod *Period `json:"valuePeriod,omitempty"` - InstantiatesCanonical *string `json:"instantiatesCanonical,omitempty"` - ReferenceRange []*ObservationReferenceRange `json:"referenceRange,omitempty"` - Code *CodeableConcept `json:"code,omitempty"` - Category []*CodeableConcept `json:"category,omitempty"` - ValueBoolean *string `json:"valueBoolean,omitempty"` - BodySite *CodeableConcept `json:"bodySite,omitempty"` - Text *Narrative `json:"text,omitempty"` - ValueQuantity *Quantity `json:"valueQuantity,omitempty"` - ValueString *string `json:"valueString,omitempty"` - ID *string `json:"id,omitempty"` - ModifierExtension []*Extension `json:"modifierExtension,omitempty"` - ValueAttachment *Attachment `json:"valueAttachment,omitempty"` - Issued *string `json:"issued,omitempty"` - ImplicitRules *string `json:"implicitRules,omitempty"` - Meta *Meta `json:"meta,omitempty"` - Method *CodeableConcept `json:"method,omitempty"` - BodyStructure []*BodyStructureType `json:"bodyStructure,omitempty"` - EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` - ValueRatio *Ratio `json:"valueRatio,omitempty"` - Interpretation []*CodeableConcept `json:"interpretation,omitempty"` - ValueDateTime *string `json:"valueDateTime,omitempty"` - ValueTime *string `json:"valueTime,omitempty"` - DataAbsentReason *CodeableConcept `json:"dataAbsentReason,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` - ValueInteger *string `json:"valueInteger,omitempty"` - Language *string `json:"language,omitempty"` - Identifier []*Identifier `json:"identifier,omitempty"` - ValueSampledData *SampledData `json:"valueSampledData,omitempty"` - Extension []*Extension `json:"extension,omitempty"` - TriggeredBy []*ObservationTriggeredBy `json:"triggeredBy,omitempty"` - Component []*ObservationComponent `json:"component,omitempty"` - EffectiveTiming *Timing `json:"effectiveTiming,omitempty"` - ValueRange *Range `json:"valueRange,omitempty"` - Status *string `json:"status,omitempty"` - Focus TypedObject `json:"focus,omitempty"` - Subject TypedObject `json:"subject,omitempty"` -} - -func (o *ObservationType) UnmarshalJSON(b []byte) error { - var safe SafeObservationType - if err := json.Unmarshal(b, &safe); err != nil { - return err - } - o.ID = safe.ID - fmt.Printf("SAFE: %#v\n", safe.ID) - - switch safe.Focus.Typename { - case "PatientType": - var partial struct { - Focus PatientType `json:"focus"` - } - if err := json.Unmarshal(b, &partial); err != nil { - return err - } - o.Focus = partial.Focus - case "SpecimenType": - var partial struct { - Focus SpecimenType `json:"focus"` - } - if err := json.Unmarshal(b, &partial); err != nil { - return err - } - o.Focus = partial.Focus - } - - switch safe.Subject.Typename { - case "PatientType": - var partial struct { - Subject PatientType `json:"subject"` - } - if err := json.Unmarshal(b, &partial); err != nil { - return err - } - o.Subject = partial.Subject - case "MedicationType": - var partial struct { - Subject MedicationType `json:"subject"` - } - if err := json.Unmarshal(b, &partial); err != nil { - return err - } - o.Subject = partial.Subject - } - - return nil -} diff --git a/gql-gen/model/unmarshalSlice.go b/gql-gen/model/unmarshalSlice.go new file mode 100644 index 0000000..4309060 --- /dev/null +++ b/gql-gen/model/unmarshalSlice.go @@ -0,0 +1,374 @@ +package model + +import ( + "encoding/json" + "fmt" +) + +func UnmarshalOrganizationTypeSlice(input []any) ([]OrganizationType, error) { + out := []OrganizationType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := OrganizationType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalGroupTypeSlice(input []any) ([]GroupType, error) { + out := []GroupType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := GroupType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalPractitionerTypeSlice(input []any) ([]PractitionerType, error) { + out := []PractitionerType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := PractitionerType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalPractitionerRoleTypeSlice(input []any) ([]PractitionerRoleType, error) { + out := []PractitionerRoleType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := PractitionerRoleType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalResearchStudyTypeSlice(input []any) ([]ResearchStudyType, error) { + out := []ResearchStudyType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := ResearchStudyType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalPatientTypeSlice(input []any) ([]PatientType, error) { + out := []PatientType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := PatientType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalResearchSubjectTypeSlice(input []any) ([]ResearchSubjectType, error) { + out := []ResearchSubjectType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := ResearchSubjectType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalSubstanceTypeSlice(input []any) ([]SubstanceType, error) { + out := []SubstanceType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := SubstanceType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalSubstanceDefinitionTypeSlice(input []any) ([]SubstanceDefinitionType, error) { + out := []SubstanceDefinitionType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := SubstanceDefinitionType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalSpecimenTypeSlice(input []any) ([]SpecimenType, error) { + out := []SpecimenType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := SpecimenType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalObservationTypeSlice(input []any) ([]ObservationType, error) { + out := []ObservationType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := ObservationType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalDiagnosticReportTypeSlice(input []any) ([]DiagnosticReportType, error) { + out := []DiagnosticReportType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := DiagnosticReportType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalConditionTypeSlice(input []any) ([]ConditionType, error) { + out := []ConditionType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := ConditionType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalMedicationTypeSlice(input []any) ([]MedicationType, error) { + out := []MedicationType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := MedicationType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalMedicationAdministrationTypeSlice(input []any) ([]MedicationAdministrationType, error) { + out := []MedicationAdministrationType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := MedicationAdministrationType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalMedicationStatementTypeSlice(input []any) ([]MedicationStatementType, error) { + out := []MedicationStatementType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := MedicationStatementType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalMedicationRequestTypeSlice(input []any) ([]MedicationRequestType, error) { + out := []MedicationRequestType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := MedicationRequestType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalProcedureTypeSlice(input []any) ([]ProcedureType, error) { + out := []ProcedureType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := ProcedureType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalDocumentReferenceTypeSlice(input []any) ([]DocumentReferenceType, error) { + out := []DocumentReferenceType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := DocumentReferenceType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalTaskTypeSlice(input []any) ([]TaskType, error) { + out := []TaskType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := TaskType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalImagingStudyTypeSlice(input []any) ([]ImagingStudyType, error) { + out := []ImagingStudyType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := ImagingStudyType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalFamilyMemberHistoryTypeSlice(input []any) ([]FamilyMemberHistoryType, error) { + out := []FamilyMemberHistoryType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := FamilyMemberHistoryType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} + +func UnmarshalBodyStructureTypeSlice(input []any) ([]BodyStructureType, error) { + out := []BodyStructureType{} + for _, item := range input { + jsonData, err := json.Marshal(item) + if err != nil { + return nil, fmt.Errorf("failed to marshal item to JSON: %w", err) + } + typedItem := BodyStructureType{} + if err := json.Unmarshal(jsonData, &typedItem); err != nil { + return nil, fmt.Errorf("failed to unmarshal JSON into target type: %w", err) + } + out = append(out, typedItem) + } + return out, nil +} diff --git a/gql-gen/model/unmarshaller.go b/gql-gen/model/unmarshaller.go new file mode 100644 index 0000000..a1f51fb --- /dev/null +++ b/gql-gen/model/unmarshaller.go @@ -0,0 +1,87 @@ +package model + +import ( + "encoding/json" + "fmt" + "reflect" +) + +type TypedObject struct { + Typename string `json:"__typename"` +} + +/* +can unmarshal to any type on every union because graphql will error out before +unmarshaller attempts to resolve a union edge type that is not allowed on a specific type +*/ +func unmarshalUnion(b []byte, fieldName, typename string, target interface{}) error { + // if typename is empty, then field was not returned in query, so nothing to unmarshal. + if typename == "" { + return nil + } + var partial map[string]json.RawMessage + if err := json.Unmarshal(b, &partial); err != nil { + return err + } + rawField, ok := partial[fieldName] + if !ok { + return fmt.Errorf("field %s not found in JSON", fieldName) + } + var obj interface{} + switch typename { + case "PatientType": + obj = &PatientType{} + case "SpecimenType": + obj = &SpecimenType{} + case "MedicationType": + obj = &MedicationType{} + case "OrganizationType": + obj = &OrganizationType{} + case "GroupType": + obj = &GroupType{} + case "PractitionerType": + obj = &PractitionerType{} + case "PractitionerRoleType": + obj = &PractitionerRoleType{} + case "ResearchStudyType": + obj = &ResearchStudyType{} + case "ResearchSubjectType": + obj = &ResearchSubjectType{} + case "SubstanceType": + obj = &SubstanceType{} + case "SubstanceDefinitionType": + obj = &SubstanceDefinitionType{} + case "ObservationType": + obj = &ObservationType{} + case "DiagnosticReportType": + obj = &DiagnosticReportType{} + case "ConditionType": + obj = &ConditionType{} + case "MedicationAdministrationType": + obj = &MedicationAdministrationType{} + case "MedicationStatementType": + obj = &MedicationStatementType{} + case "MedicationRequestType": + obj = &MedicationRequestType{} + case "ProcedureType": + obj = &ProcedureType{} + case "DocumentReferenceType": + obj = &DocumentReferenceType{} + case "TaskType": + obj = &TaskType{} + case "ImagingStudyType": + obj = &ImagingStudyType{} + case "FamilyMemberHistoryType": + obj = &FamilyMemberHistoryType{} + case "BodyStructureType": + obj = &BodyStructureType{} + default: + return fmt.Errorf("unknown typename: %s", typename) + } + + if err := json.Unmarshal(rawField, obj); err != nil { + return fmt.Errorf("failed to unmarshal field %s as %s: %w", fieldName, typename, err) + } + reflect.ValueOf(target).Elem().Set(reflect.ValueOf(obj).Elem()) + return nil +}